pulp_container_client 2.24.0 → 2.24.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (64) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +14 -5
  3. data/docs/ContainerBlobResponse.md +2 -0
  4. data/docs/ContainerContainerDistribution.md +6 -6
  5. data/docs/ContainerContainerDistributionResponse.md +12 -12
  6. data/docs/ContainerContainerPullThroughDistribution.md +6 -6
  7. data/docs/ContainerContainerPullThroughDistributionResponse.md +12 -12
  8. data/docs/ContainerContainerPushRepository.md +3 -3
  9. data/docs/ContainerContainerPushRepositoryResponse.md +9 -9
  10. data/docs/ContainerManifestResponse.md +2 -0
  11. data/docs/ContainerManifestSignatureResponse.md +2 -0
  12. data/docs/ContainerTagResponse.md +2 -0
  13. data/docs/ContentBlobsApi.md +150 -2
  14. data/docs/ContentManifestsApi.md +150 -2
  15. data/docs/ContentSignaturesApi.md +150 -2
  16. data/docs/ContentTagsApi.md +150 -2
  17. data/docs/DistributionsContainerApi.md +6 -4
  18. data/docs/DistributionsPullThroughApi.md +6 -4
  19. data/docs/PatchedcontainerContainerDistribution.md +6 -6
  20. data/docs/PatchedcontainerContainerPullThroughDistribution.md +6 -6
  21. data/docs/PatchedcontainerContainerPushRepository.md +3 -3
  22. data/lib/pulp_container_client/api/content_blobs_api.rb +154 -3
  23. data/lib/pulp_container_client/api/content_manifests_api.rb +154 -3
  24. data/lib/pulp_container_client/api/content_signatures_api.rb +154 -3
  25. data/lib/pulp_container_client/api/content_tags_api.rb +154 -3
  26. data/lib/pulp_container_client/api/distributions_container_api.rb +6 -3
  27. data/lib/pulp_container_client/api/distributions_pull_through_api.rb +6 -3
  28. data/lib/pulp_container_client/models/container_blob_response.rb +13 -1
  29. data/lib/pulp_container_client/models/container_container_distribution.rb +55 -55
  30. data/lib/pulp_container_client/models/container_container_distribution_response.rb +61 -61
  31. data/lib/pulp_container_client/models/container_container_pull_through_distribution.rb +55 -55
  32. data/lib/pulp_container_client/models/container_container_pull_through_distribution_response.rb +61 -61
  33. data/lib/pulp_container_client/models/container_container_push_repository.rb +16 -16
  34. data/lib/pulp_container_client/models/container_container_push_repository_response.rb +37 -37
  35. data/lib/pulp_container_client/models/container_manifest_response.rb +13 -1
  36. data/lib/pulp_container_client/models/container_manifest_signature_response.rb +13 -1
  37. data/lib/pulp_container_client/models/container_tag_response.rb +13 -1
  38. data/lib/pulp_container_client/models/patchedcontainer_container_distribution.rb +49 -49
  39. data/lib/pulp_container_client/models/patchedcontainer_container_pull_through_distribution.rb +49 -49
  40. data/lib/pulp_container_client/models/patchedcontainer_container_push_repository.rb +16 -16
  41. data/lib/pulp_container_client/models/unset_label.rb +1 -1
  42. data/lib/pulp_container_client/models/unset_label_response.rb +1 -1
  43. data/lib/pulp_container_client/version.rb +1 -1
  44. data/pulp_container_client.gemspec +0 -1
  45. data/spec/api/content_blobs_api_spec.rb +28 -1
  46. data/spec/api/content_manifests_api_spec.rb +28 -1
  47. data/spec/api/content_signatures_api_spec.rb +28 -1
  48. data/spec/api/content_tags_api_spec.rb +28 -1
  49. data/spec/api/distributions_container_api_spec.rb +2 -1
  50. data/spec/api/distributions_pull_through_api_spec.rb +2 -1
  51. data/spec/models/container_blob_response_spec.rb +6 -0
  52. data/spec/models/container_container_distribution_response_spec.rb +10 -10
  53. data/spec/models/container_container_distribution_spec.rb +6 -6
  54. data/spec/models/container_container_pull_through_distribution_response_spec.rb +10 -10
  55. data/spec/models/container_container_pull_through_distribution_spec.rb +6 -6
  56. data/spec/models/container_container_push_repository_response_spec.rb +10 -10
  57. data/spec/models/container_container_push_repository_spec.rb +3 -3
  58. data/spec/models/container_manifest_response_spec.rb +6 -0
  59. data/spec/models/container_manifest_signature_response_spec.rb +6 -0
  60. data/spec/models/container_tag_response_spec.rb +6 -0
  61. data/spec/models/patchedcontainer_container_distribution_spec.rb +6 -6
  62. data/spec/models/patchedcontainer_container_pull_through_distribution_spec.rb +6 -6
  63. data/spec/models/patchedcontainer_container_push_repository_spec.rb +3 -3
  64. metadata +63 -83
@@ -111,7 +111,7 @@ PulpContainerClient.configure do |config|
111
111
  end
112
112
 
113
113
  api_instance = PulpContainerClient::DistributionsPullThroughApi.new
114
- container_container_pull_through_distribution = PulpContainerClient::ContainerContainerPullThroughDistribution.new({name: 'name_example', base_path: 'base_path_example', remote: 'remote_example'}) # ContainerContainerPullThroughDistribution |
114
+ container_container_pull_through_distribution = PulpContainerClient::ContainerContainerPullThroughDistribution.new({base_path: 'base_path_example', name: 'name_example', remote: 'remote_example'}) # ContainerContainerPullThroughDistribution |
115
115
 
116
116
  begin
117
117
  # Create a container pull through distribution
@@ -256,6 +256,7 @@ opts = {
256
256
  base_path__contains: 'base_path__contains_example', # String | Filter results where base_path contains value
257
257
  base_path__icontains: 'base_path__icontains_example', # String | Filter results where base_path contains value
258
258
  base_path__in: ['inner_example'], # Array<String> | Filter results where base_path is in a comma-separated list of values
259
+ checkpoint: true, # Boolean | Filter results where checkpoint matches value
259
260
  limit: 56, # Integer | Number of results to return per page.
260
261
  name: 'name_example', # String | Filter results where name matches value
261
262
  name__contains: 'name__contains_example', # String | Filter results where name contains value
@@ -267,7 +268,7 @@ opts = {
267
268
  name__regex: 'name__regex_example', # String | Filter results where name matches regex value
268
269
  name__startswith: 'name__startswith_example', # String | Filter results where name starts with value
269
270
  offset: 56, # Integer | The initial index from which to return the results.
270
- ordering: ['-base_path'], # Array<String> | Ordering * `pulp_id` - Pulp id * `-pulp_id` - Pulp id (descending) * `pulp_created` - Pulp created * `-pulp_created` - Pulp created (descending) * `pulp_last_updated` - Pulp last updated * `-pulp_last_updated` - Pulp last updated (descending) * `pulp_type` - Pulp type * `-pulp_type` - Pulp type (descending) * `name` - Name * `-name` - Name (descending) * `pulp_labels` - Pulp labels * `-pulp_labels` - Pulp labels (descending) * `base_path` - Base path * `-base_path` - Base path (descending) * `hidden` - Hidden * `-hidden` - Hidden (descending) * `pk` - Pk * `-pk` - Pk (descending)
271
+ ordering: ['-base_path'], # Array<String> | Ordering * `pulp_id` - Pulp id * `-pulp_id` - Pulp id (descending) * `pulp_created` - Pulp created * `-pulp_created` - Pulp created (descending) * `pulp_last_updated` - Pulp last updated * `-pulp_last_updated` - Pulp last updated (descending) * `pulp_type` - Pulp type * `-pulp_type` - Pulp type (descending) * `name` - Name * `-name` - Name (descending) * `pulp_labels` - Pulp labels * `-pulp_labels` - Pulp labels (descending) * `base_path` - Base path * `-base_path` - Base path (descending) * `hidden` - Hidden * `-hidden` - Hidden (descending) * `checkpoint` - Checkpoint * `-checkpoint` - Checkpoint (descending) * `pk` - Pk * `-pk` - Pk (descending)
271
272
  prn__in: ['inner_example'], # Array<String> | Multiple values may be separated by commas.
272
273
  pulp_href__in: ['inner_example'], # Array<String> | Multiple values may be separated by commas.
273
274
  pulp_id__in: ['inner_example'], # Array<String> | Multiple values may be separated by commas.
@@ -315,6 +316,7 @@ end
315
316
  | **base_path__contains** | **String** | Filter results where base_path contains value | [optional] |
316
317
  | **base_path__icontains** | **String** | Filter results where base_path contains value | [optional] |
317
318
  | **base_path__in** | [**Array&lt;String&gt;**](String.md) | Filter results where base_path is in a comma-separated list of values | [optional] |
319
+ | **checkpoint** | **Boolean** | Filter results where checkpoint matches value | [optional] |
318
320
  | **limit** | **Integer** | Number of results to return per page. | [optional] |
319
321
  | **name** | **String** | Filter results where name matches value | [optional] |
320
322
  | **name__contains** | **String** | Filter results where name contains value | [optional] |
@@ -326,7 +328,7 @@ end
326
328
  | **name__regex** | **String** | Filter results where name matches regex value | [optional] |
327
329
  | **name__startswith** | **String** | Filter results where name starts with value | [optional] |
328
330
  | **offset** | **Integer** | The initial index from which to return the results. | [optional] |
329
- | **ordering** | [**Array&lt;String&gt;**](String.md) | 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;base_path&#x60; - Base path * &#x60;-base_path&#x60; - Base path (descending) * &#x60;hidden&#x60; - Hidden * &#x60;-hidden&#x60; - Hidden (descending) * &#x60;pk&#x60; - Pk * &#x60;-pk&#x60; - Pk (descending) | [optional] |
331
+ | **ordering** | [**Array&lt;String&gt;**](String.md) | 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;base_path&#x60; - Base path * &#x60;-base_path&#x60; - Base path (descending) * &#x60;hidden&#x60; - Hidden * &#x60;-hidden&#x60; - Hidden (descending) * &#x60;checkpoint&#x60; - Checkpoint * &#x60;-checkpoint&#x60; - Checkpoint (descending) * &#x60;pk&#x60; - Pk * &#x60;-pk&#x60; - Pk (descending) | [optional] |
330
332
  | **prn__in** | [**Array&lt;String&gt;**](String.md) | Multiple values may be separated by commas. | [optional] |
331
333
  | **pulp_href__in** | [**Array&lt;String&gt;**](String.md) | Multiple values may be separated by commas. | [optional] |
332
334
  | **pulp_id__in** | [**Array&lt;String&gt;**](String.md) | Multiple values may be separated by commas. | [optional] |
@@ -890,7 +892,7 @@ end
890
892
 
891
893
  api_instance = PulpContainerClient::DistributionsPullThroughApi.new
892
894
  container_container_pull_through_distribution_href = 'container_container_pull_through_distribution_href_example' # String |
893
- container_container_pull_through_distribution = PulpContainerClient::ContainerContainerPullThroughDistribution.new({name: 'name_example', base_path: 'base_path_example', remote: 'remote_example'}) # ContainerContainerPullThroughDistribution |
895
+ container_container_pull_through_distribution = PulpContainerClient::ContainerContainerPullThroughDistribution.new({base_path: 'base_path_example', name: 'name_example', remote: 'remote_example'}) # ContainerContainerPullThroughDistribution |
894
896
 
895
897
  begin
896
898
  # Update a container pull through distribution
@@ -4,12 +4,12 @@
4
4
 
5
5
  | Name | Type | Description | Notes |
6
6
  | ---- | ---- | ----------- | ----- |
7
+ | **hidden** | **Boolean** | Whether this distribution should be shown in the content app. | [optional][default to false] |
8
+ | **content_guard** | **String** | An optional content-guard. If none is specified, a default one will be used. | [optional] |
7
9
  | **pulp_labels** | **Hash&lt;String, String&gt;** | | [optional] |
8
10
  | **repository** | **String** | The latest RepositoryVersion for this Repository will be served. | [optional] |
9
- | **content_guard** | **String** | An optional content-guard. If none is specified, a default one will be used. | [optional] |
10
- | **hidden** | **Boolean** | Whether this distribution should be shown in the content app. | [optional][default to false] |
11
- | **name** | **String** | A unique name. Ex, &#x60;rawhide&#x60; and &#x60;stable&#x60;. | [optional] |
12
11
  | **base_path** | **String** | The base (relative) path component of the published url. Avoid paths that overlap with other distribution base paths (e.g. \&quot;foo\&quot; and \&quot;foo/bar\&quot;) | [optional] |
12
+ | **name** | **String** | A unique name. Ex, &#x60;rawhide&#x60; and &#x60;stable&#x60;. | [optional] |
13
13
  | **repository_version** | **String** | RepositoryVersion to be served | [optional] |
14
14
  | **private** | **Boolean** | Restrict pull access to explicitly authorized users. Defaults to unrestricted pull access. | [optional] |
15
15
  | **description** | **String** | An optional description. | [optional] |
@@ -20,12 +20,12 @@
20
20
  require 'pulp_container_client'
21
21
 
22
22
  instance = PulpContainerClient::PatchedcontainerContainerDistribution.new(
23
+ hidden: null,
24
+ content_guard: null,
23
25
  pulp_labels: null,
24
26
  repository: null,
25
- content_guard: null,
26
- hidden: null,
27
- name: null,
28
27
  base_path: null,
28
+ name: null,
29
29
  repository_version: null,
30
30
  private: null,
31
31
  description: null
@@ -4,12 +4,12 @@
4
4
 
5
5
  | Name | Type | Description | Notes |
6
6
  | ---- | ---- | ----------- | ----- |
7
+ | **hidden** | **Boolean** | Whether this distribution should be shown in the content app. | [optional][default to false] |
8
+ | **content_guard** | **String** | An optional content-guard. If none is specified, a default one will be used. | [optional] |
7
9
  | **pulp_labels** | **Hash&lt;String, String&gt;** | | [optional] |
8
10
  | **repository** | **String** | The latest RepositoryVersion for this Repository will be served. | [optional] |
9
- | **content_guard** | **String** | An optional content-guard. If none is specified, a default one will be used. | [optional] |
10
- | **hidden** | **Boolean** | Whether this distribution should be shown in the content app. | [optional][default to false] |
11
- | **name** | **String** | A unique name. Ex, &#x60;rawhide&#x60; and &#x60;stable&#x60;. | [optional] |
12
11
  | **base_path** | **String** | The base (relative) path component of the published url. Avoid paths that overlap with other distribution base paths (e.g. \&quot;foo\&quot; and \&quot;foo/bar\&quot;) | [optional] |
12
+ | **name** | **String** | A unique name. Ex, &#x60;rawhide&#x60; and &#x60;stable&#x60;. | [optional] |
13
13
  | **remote** | **String** | Remote that can be used to fetch content when using pull-through caching. | [optional] |
14
14
  | **distributions** | **Array&lt;String&gt;** | Distributions created after pulling content through cache | [optional] |
15
15
  | **private** | **Boolean** | Restrict pull access to explicitly authorized users. Related distributions inherit this value. Defaults to unrestricted pull access. | [optional] |
@@ -21,12 +21,12 @@
21
21
  require 'pulp_container_client'
22
22
 
23
23
  instance = PulpContainerClient::PatchedcontainerContainerPullThroughDistribution.new(
24
+ hidden: null,
25
+ content_guard: null,
24
26
  pulp_labels: null,
25
27
  repository: null,
26
- content_guard: null,
27
- hidden: null,
28
- name: null,
29
28
  base_path: null,
29
+ name: null,
30
30
  remote: null,
31
31
  distributions: null,
32
32
  private: null,
@@ -6,9 +6,9 @@
6
6
  | ---- | ---- | ----------- | ----- |
7
7
  | **pulp_labels** | **Hash&lt;String, String&gt;** | | [optional] |
8
8
  | **description** | **String** | An optional description. | [optional] |
9
+ | **manifest_signing_service** | **String** | A reference to an associated signing service. | [optional] |
9
10
  | **name** | **String** | A unique name for this repository. | [optional] |
10
11
  | **retain_repo_versions** | **Integer** | Retain X versions of the repository. Default is null which retains all versions. | [optional] |
11
- | **manifest_signing_service** | **String** | A reference to an associated signing service. | [optional] |
12
12
 
13
13
  ## Example
14
14
 
@@ -18,9 +18,9 @@ require 'pulp_container_client'
18
18
  instance = PulpContainerClient::PatchedcontainerContainerPushRepository.new(
19
19
  pulp_labels: null,
20
20
  description: null,
21
+ manifest_signing_service: null,
21
22
  name: null,
22
- retain_repo_versions: null,
23
- manifest_signing_service: null
23
+ retain_repo_versions: null
24
24
  )
25
25
  ```
26
26
 
@@ -26,11 +26,12 @@ module PulpContainerClient
26
26
  # @option opts [Array<String>] :digest__in Filter results where digest is in a comma-separated list of values
27
27
  # @option opts [Integer] :limit Number of results to return per page.
28
28
  # @option opts [Integer] :offset The initial index from which to return the results.
29
- # @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;upstream_id&#x60; - Upstream id * &#x60;-upstream_id&#x60; - Upstream id (descending) * &#x60;timestamp_of_interest&#x60; - Timestamp of interest * &#x60;-timestamp_of_interest&#x60; - Timestamp of interest (descending) * &#x60;digest&#x60; - Digest * &#x60;-digest&#x60; - Digest (descending) * &#x60;pk&#x60; - Pk * &#x60;-pk&#x60; - Pk (descending)
29
+ # @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;upstream_id&#x60; - Upstream id * &#x60;-upstream_id&#x60; - Upstream id (descending) * &#x60;pulp_labels&#x60; - Pulp labels * &#x60;-pulp_labels&#x60; - Pulp labels (descending) * &#x60;timestamp_of_interest&#x60; - Timestamp of interest * &#x60;-timestamp_of_interest&#x60; - Timestamp of interest (descending) * &#x60;digest&#x60; - Digest * &#x60;-digest&#x60; - Digest (descending) * &#x60;pk&#x60; - Pk * &#x60;-pk&#x60; - Pk (descending)
30
30
  # @option opts [Float] :orphaned_for Minutes Content has been orphaned for. -1 uses ORPHAN_PROTECTION_TIME.
31
31
  # @option opts [Array<String>] :prn__in Multiple values may be separated by commas.
32
32
  # @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
33
33
  # @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
34
+ # @option opts [String] :pulp_label_select Filter labels by search string
34
35
  # @option opts [String] :q Filter results by using NOT, AND and OR operations on other filters
35
36
  # @option opts [String] :repository_version Repository Version referenced by HREF/PRN
36
37
  # @option opts [String] :repository_version_added Repository Version referenced by HREF/PRN
@@ -50,11 +51,12 @@ module PulpContainerClient
50
51
  # @option opts [Array<String>] :digest__in Filter results where digest is in a comma-separated list of values
51
52
  # @option opts [Integer] :limit Number of results to return per page.
52
53
  # @option opts [Integer] :offset The initial index from which to return the results.
53
- # @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;upstream_id&#x60; - Upstream id * &#x60;-upstream_id&#x60; - Upstream id (descending) * &#x60;timestamp_of_interest&#x60; - Timestamp of interest * &#x60;-timestamp_of_interest&#x60; - Timestamp of interest (descending) * &#x60;digest&#x60; - Digest * &#x60;-digest&#x60; - Digest (descending) * &#x60;pk&#x60; - Pk * &#x60;-pk&#x60; - Pk (descending)
54
+ # @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;upstream_id&#x60; - Upstream id * &#x60;-upstream_id&#x60; - Upstream id (descending) * &#x60;pulp_labels&#x60; - Pulp labels * &#x60;-pulp_labels&#x60; - Pulp labels (descending) * &#x60;timestamp_of_interest&#x60; - Timestamp of interest * &#x60;-timestamp_of_interest&#x60; - Timestamp of interest (descending) * &#x60;digest&#x60; - Digest * &#x60;-digest&#x60; - Digest (descending) * &#x60;pk&#x60; - Pk * &#x60;-pk&#x60; - Pk (descending)
54
55
  # @option opts [Float] :orphaned_for Minutes Content has been orphaned for. -1 uses ORPHAN_PROTECTION_TIME.
55
56
  # @option opts [Array<String>] :prn__in Multiple values may be separated by commas.
56
57
  # @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
57
58
  # @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
59
+ # @option opts [String] :pulp_label_select Filter labels by search string
58
60
  # @option opts [String] :q Filter results by using NOT, AND and OR operations on other filters
59
61
  # @option opts [String] :repository_version Repository Version referenced by HREF/PRN
60
62
  # @option opts [String] :repository_version_added Repository Version referenced by HREF/PRN
@@ -66,7 +68,7 @@ module PulpContainerClient
66
68
  if @api_client.config.debugging
67
69
  @api_client.config.logger.debug 'Calling API: ContentBlobsApi.list ...'
68
70
  end
69
- allowable_values = ["-digest", "-pk", "-pulp_created", "-pulp_id", "-pulp_last_updated", "-pulp_type", "-timestamp_of_interest", "-upstream_id", "digest", "pk", "pulp_created", "pulp_id", "pulp_last_updated", "pulp_type", "timestamp_of_interest", "upstream_id"]
71
+ allowable_values = ["-digest", "-pk", "-pulp_created", "-pulp_id", "-pulp_labels", "-pulp_last_updated", "-pulp_type", "-timestamp_of_interest", "-upstream_id", "digest", "pk", "pulp_created", "pulp_id", "pulp_labels", "pulp_last_updated", "pulp_type", "timestamp_of_interest", "upstream_id"]
70
72
  if @api_client.config.client_side_validation && opts[:'ordering'] && !opts[:'ordering'].all? { |item| allowable_values.include?(item) }
71
73
  fail ArgumentError, "invalid value for \"ordering\", must include one of #{allowable_values}"
72
74
  end
@@ -84,6 +86,7 @@ module PulpContainerClient
84
86
  query_params[:'prn__in'] = @api_client.build_collection_param(opts[:'prn__in'], :csv) if !opts[:'prn__in'].nil?
85
87
  query_params[:'pulp_href__in'] = @api_client.build_collection_param(opts[:'pulp_href__in'], :csv) if !opts[:'pulp_href__in'].nil?
86
88
  query_params[:'pulp_id__in'] = @api_client.build_collection_param(opts[:'pulp_id__in'], :csv) if !opts[:'pulp_id__in'].nil?
89
+ query_params[:'pulp_label_select'] = opts[:'pulp_label_select'] if !opts[:'pulp_label_select'].nil?
87
90
  query_params[:'q'] = opts[:'q'] if !opts[:'q'].nil?
88
91
  query_params[:'repository_version'] = opts[:'repository_version'] if !opts[:'repository_version'].nil?
89
92
  query_params[:'repository_version_added'] = opts[:'repository_version_added'] if !opts[:'repository_version_added'].nil?
@@ -193,5 +196,153 @@ module PulpContainerClient
193
196
  end
194
197
  return data, status_code, headers
195
198
  end
199
+
200
+ # Set a label
201
+ # Set a single pulp_label on the object to a specific value or null.
202
+ # @param container_blob_href [String]
203
+ # @param set_label [SetLabel]
204
+ # @param [Hash] opts the optional parameters
205
+ # @return [SetLabelResponse]
206
+ def set_label(container_blob_href, set_label, opts = {})
207
+ data, _status_code, _headers = set_label_with_http_info(container_blob_href, set_label, opts)
208
+ data
209
+ end
210
+
211
+ # Set a label
212
+ # Set a single pulp_label on the object to a specific value or null.
213
+ # @param container_blob_href [String]
214
+ # @param set_label [SetLabel]
215
+ # @param [Hash] opts the optional parameters
216
+ # @return [Array<(SetLabelResponse, Integer, Hash)>] SetLabelResponse data, response status code and response headers
217
+ def set_label_with_http_info(container_blob_href, set_label, opts = {})
218
+ if @api_client.config.debugging
219
+ @api_client.config.logger.debug 'Calling API: ContentBlobsApi.set_label ...'
220
+ end
221
+ # verify the required parameter 'container_blob_href' is set
222
+ if @api_client.config.client_side_validation && container_blob_href.nil?
223
+ fail ArgumentError, "Missing the required parameter 'container_blob_href' when calling ContentBlobsApi.set_label"
224
+ end
225
+ # verify the required parameter 'set_label' is set
226
+ if @api_client.config.client_side_validation && set_label.nil?
227
+ fail ArgumentError, "Missing the required parameter 'set_label' when calling ContentBlobsApi.set_label"
228
+ end
229
+ # resource path
230
+ local_var_path = '{container_blob_href}set_label/'.sub('{' + 'container_blob_href' + '}', CGI.escape(container_blob_href.to_s).gsub('%2F', '/'))
231
+
232
+ # query parameters
233
+ query_params = opts[:query_params] || {}
234
+
235
+ # header parameters
236
+ header_params = opts[:header_params] || {}
237
+ # HTTP header 'Accept' (if needed)
238
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
239
+ # HTTP header 'Content-Type'
240
+ content_type = @api_client.select_header_content_type(['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'])
241
+ if !content_type.nil?
242
+ header_params['Content-Type'] = content_type
243
+ end
244
+
245
+ # form parameters
246
+ form_params = opts[:form_params] || {}
247
+
248
+ # http body (model)
249
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(set_label)
250
+
251
+ # return_type
252
+ return_type = opts[:debug_return_type] || 'SetLabelResponse'
253
+
254
+ # auth_names
255
+ auth_names = opts[:debug_auth_names] || ['basicAuth']
256
+
257
+ new_options = opts.merge(
258
+ :operation => :"ContentBlobsApi.set_label",
259
+ :header_params => header_params,
260
+ :query_params => query_params,
261
+ :form_params => form_params,
262
+ :body => post_body,
263
+ :auth_names => auth_names,
264
+ :return_type => return_type
265
+ )
266
+
267
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
268
+ if @api_client.config.debugging
269
+ @api_client.config.logger.debug "API called: ContentBlobsApi#set_label\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
270
+ end
271
+ return data, status_code, headers
272
+ end
273
+
274
+ # Unset a label
275
+ # Unset a single pulp_label on the object.
276
+ # @param container_blob_href [String]
277
+ # @param unset_label [UnsetLabel]
278
+ # @param [Hash] opts the optional parameters
279
+ # @return [UnsetLabelResponse]
280
+ def unset_label(container_blob_href, unset_label, opts = {})
281
+ data, _status_code, _headers = unset_label_with_http_info(container_blob_href, unset_label, opts)
282
+ data
283
+ end
284
+
285
+ # Unset a label
286
+ # Unset a single pulp_label on the object.
287
+ # @param container_blob_href [String]
288
+ # @param unset_label [UnsetLabel]
289
+ # @param [Hash] opts the optional parameters
290
+ # @return [Array<(UnsetLabelResponse, Integer, Hash)>] UnsetLabelResponse data, response status code and response headers
291
+ def unset_label_with_http_info(container_blob_href, unset_label, opts = {})
292
+ if @api_client.config.debugging
293
+ @api_client.config.logger.debug 'Calling API: ContentBlobsApi.unset_label ...'
294
+ end
295
+ # verify the required parameter 'container_blob_href' is set
296
+ if @api_client.config.client_side_validation && container_blob_href.nil?
297
+ fail ArgumentError, "Missing the required parameter 'container_blob_href' when calling ContentBlobsApi.unset_label"
298
+ end
299
+ # verify the required parameter 'unset_label' is set
300
+ if @api_client.config.client_side_validation && unset_label.nil?
301
+ fail ArgumentError, "Missing the required parameter 'unset_label' when calling ContentBlobsApi.unset_label"
302
+ end
303
+ # resource path
304
+ local_var_path = '{container_blob_href}unset_label/'.sub('{' + 'container_blob_href' + '}', CGI.escape(container_blob_href.to_s).gsub('%2F', '/'))
305
+
306
+ # query parameters
307
+ query_params = opts[:query_params] || {}
308
+
309
+ # header parameters
310
+ header_params = opts[:header_params] || {}
311
+ # HTTP header 'Accept' (if needed)
312
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
313
+ # HTTP header 'Content-Type'
314
+ content_type = @api_client.select_header_content_type(['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'])
315
+ if !content_type.nil?
316
+ header_params['Content-Type'] = content_type
317
+ end
318
+
319
+ # form parameters
320
+ form_params = opts[:form_params] || {}
321
+
322
+ # http body (model)
323
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(unset_label)
324
+
325
+ # return_type
326
+ return_type = opts[:debug_return_type] || 'UnsetLabelResponse'
327
+
328
+ # auth_names
329
+ auth_names = opts[:debug_auth_names] || ['basicAuth']
330
+
331
+ new_options = opts.merge(
332
+ :operation => :"ContentBlobsApi.unset_label",
333
+ :header_params => header_params,
334
+ :query_params => query_params,
335
+ :form_params => form_params,
336
+ :body => post_body,
337
+ :auth_names => auth_names,
338
+ :return_type => return_type
339
+ )
340
+
341
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
342
+ if @api_client.config.debugging
343
+ @api_client.config.logger.debug "API called: ContentBlobsApi#unset_label\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
344
+ end
345
+ return data, status_code, headers
346
+ end
196
347
  end
197
348
  end
@@ -29,11 +29,12 @@ module PulpContainerClient
29
29
  # @option opts [Integer] :limit Number of results to return per page.
30
30
  # @option opts [Array<String>] :media_type * &#x60;application/vnd.docker.distribution.manifest.v1+json&#x60; - application/vnd.docker.distribution.manifest.v1+json * &#x60;application/vnd.docker.distribution.manifest.v2+json&#x60; - application/vnd.docker.distribution.manifest.v2+json * &#x60;application/vnd.docker.distribution.manifest.list.v2+json&#x60; - application/vnd.docker.distribution.manifest.list.v2+json * &#x60;application/vnd.oci.image.manifest.v1+json&#x60; - application/vnd.oci.image.manifest.v1+json * &#x60;application/vnd.oci.image.index.v1+json&#x60; - application/vnd.oci.image.index.v1+json
31
31
  # @option opts [Integer] :offset The initial index from which to return the results.
32
- # @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;upstream_id&#x60; - Upstream id * &#x60;-upstream_id&#x60; - Upstream id (descending) * &#x60;timestamp_of_interest&#x60; - Timestamp of interest * &#x60;-timestamp_of_interest&#x60; - Timestamp of interest (descending) * &#x60;digest&#x60; - Digest * &#x60;-digest&#x60; - Digest (descending) * &#x60;schema_version&#x60; - Schema version * &#x60;-schema_version&#x60; - Schema version (descending) * &#x60;media_type&#x60; - Media type * &#x60;-media_type&#x60; - Media type (descending) * &#x60;type&#x60; - Type * &#x60;-type&#x60; - Type (descending) * &#x60;data&#x60; - Data * &#x60;-data&#x60; - Data (descending) * &#x60;annotations&#x60; - Annotations * &#x60;-annotations&#x60; - Annotations (descending) * &#x60;labels&#x60; - Labels * &#x60;-labels&#x60; - Labels (descending) * &#x60;architecture&#x60; - Architecture * &#x60;-architecture&#x60; - Architecture (descending) * &#x60;os&#x60; - Os * &#x60;-os&#x60; - Os (descending) * &#x60;compressed_image_size&#x60; - Compressed image size * &#x60;-compressed_image_size&#x60; - Compressed image size (descending) * &#x60;is_bootable&#x60; - Is bootable * &#x60;-is_bootable&#x60; - Is bootable (descending) * &#x60;is_flatpak&#x60; - Is flatpak * &#x60;-is_flatpak&#x60; - Is flatpak (descending) * &#x60;pk&#x60; - Pk * &#x60;-pk&#x60; - Pk (descending)
32
+ # @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;upstream_id&#x60; - Upstream id * &#x60;-upstream_id&#x60; - Upstream id (descending) * &#x60;pulp_labels&#x60; - Pulp labels * &#x60;-pulp_labels&#x60; - Pulp labels (descending) * &#x60;timestamp_of_interest&#x60; - Timestamp of interest * &#x60;-timestamp_of_interest&#x60; - Timestamp of interest (descending) * &#x60;digest&#x60; - Digest * &#x60;-digest&#x60; - Digest (descending) * &#x60;schema_version&#x60; - Schema version * &#x60;-schema_version&#x60; - Schema version (descending) * &#x60;media_type&#x60; - Media type * &#x60;-media_type&#x60; - Media type (descending) * &#x60;type&#x60; - Type * &#x60;-type&#x60; - Type (descending) * &#x60;data&#x60; - Data * &#x60;-data&#x60; - Data (descending) * &#x60;annotations&#x60; - Annotations * &#x60;-annotations&#x60; - Annotations (descending) * &#x60;labels&#x60; - Labels * &#x60;-labels&#x60; - Labels (descending) * &#x60;architecture&#x60; - Architecture * &#x60;-architecture&#x60; - Architecture (descending) * &#x60;os&#x60; - Os * &#x60;-os&#x60; - Os (descending) * &#x60;compressed_image_size&#x60; - Compressed image size * &#x60;-compressed_image_size&#x60; - Compressed image size (descending) * &#x60;is_bootable&#x60; - Is bootable * &#x60;-is_bootable&#x60; - Is bootable (descending) * &#x60;is_flatpak&#x60; - Is flatpak * &#x60;-is_flatpak&#x60; - Is flatpak (descending) * &#x60;pk&#x60; - Pk * &#x60;-pk&#x60; - Pk (descending)
33
33
  # @option opts [Float] :orphaned_for Minutes Content has been orphaned for. -1 uses ORPHAN_PROTECTION_TIME.
34
34
  # @option opts [Array<String>] :prn__in Multiple values may be separated by commas.
35
35
  # @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
36
36
  # @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
37
+ # @option opts [String] :pulp_label_select Filter labels by search string
37
38
  # @option opts [String] :q Filter results by using NOT, AND and OR operations on other filters
38
39
  # @option opts [String] :repository_version Repository Version referenced by HREF/PRN
39
40
  # @option opts [String] :repository_version_added Repository Version referenced by HREF/PRN
@@ -56,11 +57,12 @@ module PulpContainerClient
56
57
  # @option opts [Integer] :limit Number of results to return per page.
57
58
  # @option opts [Array<String>] :media_type * &#x60;application/vnd.docker.distribution.manifest.v1+json&#x60; - application/vnd.docker.distribution.manifest.v1+json * &#x60;application/vnd.docker.distribution.manifest.v2+json&#x60; - application/vnd.docker.distribution.manifest.v2+json * &#x60;application/vnd.docker.distribution.manifest.list.v2+json&#x60; - application/vnd.docker.distribution.manifest.list.v2+json * &#x60;application/vnd.oci.image.manifest.v1+json&#x60; - application/vnd.oci.image.manifest.v1+json * &#x60;application/vnd.oci.image.index.v1+json&#x60; - application/vnd.oci.image.index.v1+json
58
59
  # @option opts [Integer] :offset The initial index from which to return the results.
59
- # @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;upstream_id&#x60; - Upstream id * &#x60;-upstream_id&#x60; - Upstream id (descending) * &#x60;timestamp_of_interest&#x60; - Timestamp of interest * &#x60;-timestamp_of_interest&#x60; - Timestamp of interest (descending) * &#x60;digest&#x60; - Digest * &#x60;-digest&#x60; - Digest (descending) * &#x60;schema_version&#x60; - Schema version * &#x60;-schema_version&#x60; - Schema version (descending) * &#x60;media_type&#x60; - Media type * &#x60;-media_type&#x60; - Media type (descending) * &#x60;type&#x60; - Type * &#x60;-type&#x60; - Type (descending) * &#x60;data&#x60; - Data * &#x60;-data&#x60; - Data (descending) * &#x60;annotations&#x60; - Annotations * &#x60;-annotations&#x60; - Annotations (descending) * &#x60;labels&#x60; - Labels * &#x60;-labels&#x60; - Labels (descending) * &#x60;architecture&#x60; - Architecture * &#x60;-architecture&#x60; - Architecture (descending) * &#x60;os&#x60; - Os * &#x60;-os&#x60; - Os (descending) * &#x60;compressed_image_size&#x60; - Compressed image size * &#x60;-compressed_image_size&#x60; - Compressed image size (descending) * &#x60;is_bootable&#x60; - Is bootable * &#x60;-is_bootable&#x60; - Is bootable (descending) * &#x60;is_flatpak&#x60; - Is flatpak * &#x60;-is_flatpak&#x60; - Is flatpak (descending) * &#x60;pk&#x60; - Pk * &#x60;-pk&#x60; - Pk (descending)
60
+ # @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;upstream_id&#x60; - Upstream id * &#x60;-upstream_id&#x60; - Upstream id (descending) * &#x60;pulp_labels&#x60; - Pulp labels * &#x60;-pulp_labels&#x60; - Pulp labels (descending) * &#x60;timestamp_of_interest&#x60; - Timestamp of interest * &#x60;-timestamp_of_interest&#x60; - Timestamp of interest (descending) * &#x60;digest&#x60; - Digest * &#x60;-digest&#x60; - Digest (descending) * &#x60;schema_version&#x60; - Schema version * &#x60;-schema_version&#x60; - Schema version (descending) * &#x60;media_type&#x60; - Media type * &#x60;-media_type&#x60; - Media type (descending) * &#x60;type&#x60; - Type * &#x60;-type&#x60; - Type (descending) * &#x60;data&#x60; - Data * &#x60;-data&#x60; - Data (descending) * &#x60;annotations&#x60; - Annotations * &#x60;-annotations&#x60; - Annotations (descending) * &#x60;labels&#x60; - Labels * &#x60;-labels&#x60; - Labels (descending) * &#x60;architecture&#x60; - Architecture * &#x60;-architecture&#x60; - Architecture (descending) * &#x60;os&#x60; - Os * &#x60;-os&#x60; - Os (descending) * &#x60;compressed_image_size&#x60; - Compressed image size * &#x60;-compressed_image_size&#x60; - Compressed image size (descending) * &#x60;is_bootable&#x60; - Is bootable * &#x60;-is_bootable&#x60; - Is bootable (descending) * &#x60;is_flatpak&#x60; - Is flatpak * &#x60;-is_flatpak&#x60; - Is flatpak (descending) * &#x60;pk&#x60; - Pk * &#x60;-pk&#x60; - Pk (descending)
60
61
  # @option opts [Float] :orphaned_for Minutes Content has been orphaned for. -1 uses ORPHAN_PROTECTION_TIME.
61
62
  # @option opts [Array<String>] :prn__in Multiple values may be separated by commas.
62
63
  # @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
63
64
  # @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
65
+ # @option opts [String] :pulp_label_select Filter labels by search string
64
66
  # @option opts [String] :q Filter results by using NOT, AND and OR operations on other filters
65
67
  # @option opts [String] :repository_version Repository Version referenced by HREF/PRN
66
68
  # @option opts [String] :repository_version_added Repository Version referenced by HREF/PRN
@@ -76,7 +78,7 @@ module PulpContainerClient
76
78
  if @api_client.config.client_side_validation && opts[:'media_type'] && !opts[:'media_type'].all? { |item| allowable_values.include?(item) }
77
79
  fail ArgumentError, "invalid value for \"media_type\", must include one of #{allowable_values}"
78
80
  end
79
- allowable_values = ["-annotations", "-architecture", "-compressed_image_size", "-data", "-digest", "-is_bootable", "-is_flatpak", "-labels", "-media_type", "-os", "-pk", "-pulp_created", "-pulp_id", "-pulp_last_updated", "-pulp_type", "-schema_version", "-timestamp_of_interest", "-type", "-upstream_id", "annotations", "architecture", "compressed_image_size", "data", "digest", "is_bootable", "is_flatpak", "labels", "media_type", "os", "pk", "pulp_created", "pulp_id", "pulp_last_updated", "pulp_type", "schema_version", "timestamp_of_interest", "type", "upstream_id"]
81
+ allowable_values = ["-annotations", "-architecture", "-compressed_image_size", "-data", "-digest", "-is_bootable", "-is_flatpak", "-labels", "-media_type", "-os", "-pk", "-pulp_created", "-pulp_id", "-pulp_labels", "-pulp_last_updated", "-pulp_type", "-schema_version", "-timestamp_of_interest", "-type", "-upstream_id", "annotations", "architecture", "compressed_image_size", "data", "digest", "is_bootable", "is_flatpak", "labels", "media_type", "os", "pk", "pulp_created", "pulp_id", "pulp_labels", "pulp_last_updated", "pulp_type", "schema_version", "timestamp_of_interest", "type", "upstream_id"]
80
82
  if @api_client.config.client_side_validation && opts[:'ordering'] && !opts[:'ordering'].all? { |item| allowable_values.include?(item) }
81
83
  fail ArgumentError, "invalid value for \"ordering\", must include one of #{allowable_values}"
82
84
  end
@@ -97,6 +99,7 @@ module PulpContainerClient
97
99
  query_params[:'prn__in'] = @api_client.build_collection_param(opts[:'prn__in'], :csv) if !opts[:'prn__in'].nil?
98
100
  query_params[:'pulp_href__in'] = @api_client.build_collection_param(opts[:'pulp_href__in'], :csv) if !opts[:'pulp_href__in'].nil?
99
101
  query_params[:'pulp_id__in'] = @api_client.build_collection_param(opts[:'pulp_id__in'], :csv) if !opts[:'pulp_id__in'].nil?
102
+ query_params[:'pulp_label_select'] = opts[:'pulp_label_select'] if !opts[:'pulp_label_select'].nil?
100
103
  query_params[:'q'] = opts[:'q'] if !opts[:'q'].nil?
101
104
  query_params[:'repository_version'] = opts[:'repository_version'] if !opts[:'repository_version'].nil?
102
105
  query_params[:'repository_version_added'] = opts[:'repository_version_added'] if !opts[:'repository_version_added'].nil?
@@ -206,5 +209,153 @@ module PulpContainerClient
206
209
  end
207
210
  return data, status_code, headers
208
211
  end
212
+
213
+ # Set a label
214
+ # Set a single pulp_label on the object to a specific value or null.
215
+ # @param container_manifest_href [String]
216
+ # @param set_label [SetLabel]
217
+ # @param [Hash] opts the optional parameters
218
+ # @return [SetLabelResponse]
219
+ def set_label(container_manifest_href, set_label, opts = {})
220
+ data, _status_code, _headers = set_label_with_http_info(container_manifest_href, set_label, opts)
221
+ data
222
+ end
223
+
224
+ # Set a label
225
+ # Set a single pulp_label on the object to a specific value or null.
226
+ # @param container_manifest_href [String]
227
+ # @param set_label [SetLabel]
228
+ # @param [Hash] opts the optional parameters
229
+ # @return [Array<(SetLabelResponse, Integer, Hash)>] SetLabelResponse data, response status code and response headers
230
+ def set_label_with_http_info(container_manifest_href, set_label, opts = {})
231
+ if @api_client.config.debugging
232
+ @api_client.config.logger.debug 'Calling API: ContentManifestsApi.set_label ...'
233
+ end
234
+ # verify the required parameter 'container_manifest_href' is set
235
+ if @api_client.config.client_side_validation && container_manifest_href.nil?
236
+ fail ArgumentError, "Missing the required parameter 'container_manifest_href' when calling ContentManifestsApi.set_label"
237
+ end
238
+ # verify the required parameter 'set_label' is set
239
+ if @api_client.config.client_side_validation && set_label.nil?
240
+ fail ArgumentError, "Missing the required parameter 'set_label' when calling ContentManifestsApi.set_label"
241
+ end
242
+ # resource path
243
+ local_var_path = '{container_manifest_href}set_label/'.sub('{' + 'container_manifest_href' + '}', CGI.escape(container_manifest_href.to_s).gsub('%2F', '/'))
244
+
245
+ # query parameters
246
+ query_params = opts[:query_params] || {}
247
+
248
+ # header parameters
249
+ header_params = opts[:header_params] || {}
250
+ # HTTP header 'Accept' (if needed)
251
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
252
+ # HTTP header 'Content-Type'
253
+ content_type = @api_client.select_header_content_type(['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'])
254
+ if !content_type.nil?
255
+ header_params['Content-Type'] = content_type
256
+ end
257
+
258
+ # form parameters
259
+ form_params = opts[:form_params] || {}
260
+
261
+ # http body (model)
262
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(set_label)
263
+
264
+ # return_type
265
+ return_type = opts[:debug_return_type] || 'SetLabelResponse'
266
+
267
+ # auth_names
268
+ auth_names = opts[:debug_auth_names] || ['basicAuth']
269
+
270
+ new_options = opts.merge(
271
+ :operation => :"ContentManifestsApi.set_label",
272
+ :header_params => header_params,
273
+ :query_params => query_params,
274
+ :form_params => form_params,
275
+ :body => post_body,
276
+ :auth_names => auth_names,
277
+ :return_type => return_type
278
+ )
279
+
280
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
281
+ if @api_client.config.debugging
282
+ @api_client.config.logger.debug "API called: ContentManifestsApi#set_label\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
283
+ end
284
+ return data, status_code, headers
285
+ end
286
+
287
+ # Unset a label
288
+ # Unset a single pulp_label on the object.
289
+ # @param container_manifest_href [String]
290
+ # @param unset_label [UnsetLabel]
291
+ # @param [Hash] opts the optional parameters
292
+ # @return [UnsetLabelResponse]
293
+ def unset_label(container_manifest_href, unset_label, opts = {})
294
+ data, _status_code, _headers = unset_label_with_http_info(container_manifest_href, unset_label, opts)
295
+ data
296
+ end
297
+
298
+ # Unset a label
299
+ # Unset a single pulp_label on the object.
300
+ # @param container_manifest_href [String]
301
+ # @param unset_label [UnsetLabel]
302
+ # @param [Hash] opts the optional parameters
303
+ # @return [Array<(UnsetLabelResponse, Integer, Hash)>] UnsetLabelResponse data, response status code and response headers
304
+ def unset_label_with_http_info(container_manifest_href, unset_label, opts = {})
305
+ if @api_client.config.debugging
306
+ @api_client.config.logger.debug 'Calling API: ContentManifestsApi.unset_label ...'
307
+ end
308
+ # verify the required parameter 'container_manifest_href' is set
309
+ if @api_client.config.client_side_validation && container_manifest_href.nil?
310
+ fail ArgumentError, "Missing the required parameter 'container_manifest_href' when calling ContentManifestsApi.unset_label"
311
+ end
312
+ # verify the required parameter 'unset_label' is set
313
+ if @api_client.config.client_side_validation && unset_label.nil?
314
+ fail ArgumentError, "Missing the required parameter 'unset_label' when calling ContentManifestsApi.unset_label"
315
+ end
316
+ # resource path
317
+ local_var_path = '{container_manifest_href}unset_label/'.sub('{' + 'container_manifest_href' + '}', CGI.escape(container_manifest_href.to_s).gsub('%2F', '/'))
318
+
319
+ # query parameters
320
+ query_params = opts[:query_params] || {}
321
+
322
+ # header parameters
323
+ header_params = opts[:header_params] || {}
324
+ # HTTP header 'Accept' (if needed)
325
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
326
+ # HTTP header 'Content-Type'
327
+ content_type = @api_client.select_header_content_type(['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'])
328
+ if !content_type.nil?
329
+ header_params['Content-Type'] = content_type
330
+ end
331
+
332
+ # form parameters
333
+ form_params = opts[:form_params] || {}
334
+
335
+ # http body (model)
336
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(unset_label)
337
+
338
+ # return_type
339
+ return_type = opts[:debug_return_type] || 'UnsetLabelResponse'
340
+
341
+ # auth_names
342
+ auth_names = opts[:debug_auth_names] || ['basicAuth']
343
+
344
+ new_options = opts.merge(
345
+ :operation => :"ContentManifestsApi.unset_label",
346
+ :header_params => header_params,
347
+ :query_params => query_params,
348
+ :form_params => form_params,
349
+ :body => post_body,
350
+ :auth_names => auth_names,
351
+ :return_type => return_type
352
+ )
353
+
354
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
355
+ if @api_client.config.debugging
356
+ @api_client.config.logger.debug "API called: ContentManifestsApi#unset_label\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
357
+ end
358
+ return data, status_code, headers
359
+ end
209
360
  end
210
361
  end