pulp_container_client 2.0.0b3 → 2.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (156) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +69 -57
  3. data/docs/{ContainerBlob.md → ContainerBlobResponse.md} +2 -2
  4. data/docs/ContainerContainerDistribution.md +6 -12
  5. data/docs/ContainerContainerDistributionResponse.md +31 -0
  6. data/docs/ContainerContainerPushRepository.md +4 -10
  7. data/docs/ContainerContainerPushRepositoryResponse.md +29 -0
  8. data/docs/ContainerContainerRemote.md +8 -12
  9. data/docs/ContainerContainerRemoteResponse.md +49 -0
  10. data/docs/ContainerContainerRepository.md +4 -10
  11. data/docs/ContainerContainerRepositoryResponse.md +29 -0
  12. data/docs/ContainerContentRedirectContentGuard.md +1 -5
  13. data/docs/ContainerContentRedirectContentGuardResponse.md +23 -0
  14. data/docs/{ContainerManifest.md → ContainerManifestResponse.md} +2 -2
  15. data/docs/{ContainerTag.md → ContainerTagResponse.md} +2 -4
  16. data/docs/ContentBlobsApi.md +24 -24
  17. data/docs/ContentManifestsApi.md +24 -24
  18. data/docs/ContentSummary.md +3 -3
  19. data/docs/ContentSummaryResponse.md +21 -0
  20. data/docs/ContentTagsApi.md +26 -26
  21. data/docs/ContentguardsContentRedirectApi.md +55 -55
  22. data/docs/DistributionsContainerApi.md +108 -60
  23. data/docs/InlineResponse200.md +3 -3
  24. data/docs/InlineResponse2001.md +3 -3
  25. data/docs/InlineResponse2002.md +3 -3
  26. data/docs/InlineResponse2003.md +3 -3
  27. data/docs/InlineResponse2004.md +3 -3
  28. data/docs/InlineResponse2005.md +3 -3
  29. data/docs/InlineResponse2006.md +3 -3
  30. data/docs/InlineResponse2007.md +3 -3
  31. data/docs/InlineResponse2008.md +3 -3
  32. data/docs/ManifestCopy.md +1 -1
  33. data/docs/OCIBuildImage.md +23 -0
  34. data/docs/PatchedcontainerContainerDistribution.md +25 -0
  35. data/docs/PatchedcontainerContainerRemote.md +43 -0
  36. data/docs/PatchedcontainerContainerRepository.md +21 -0
  37. data/docs/PatchedcontainerContentRedirectContentGuard.md +19 -0
  38. data/docs/PolicyEnum.md +16 -0
  39. data/docs/RecursiveManage.md +1 -1
  40. data/docs/RemotesContainerApi.md +125 -65
  41. data/docs/RepositoriesContainerApi.md +158 -134
  42. data/docs/RepositoriesContainerPushApi.md +44 -148
  43. data/docs/RepositoriesContainerVersionsApi.md +190 -126
  44. data/docs/RepositorySyncURL.md +1 -1
  45. data/docs/RepositoryVersion.md +1 -9
  46. data/docs/RepositoryVersionResponse.md +25 -0
  47. data/docs/TagCopy.md +1 -1
  48. data/docs/TokenApi.md +8 -16
  49. data/lib/pulp_container_client/api/content_blobs_api.rb +38 -34
  50. data/lib/pulp_container_client/api/content_manifests_api.rb +38 -34
  51. data/lib/pulp_container_client/api/content_tags_api.rb +41 -37
  52. data/lib/pulp_container_client/api/contentguards_content_redirect_api.rb +90 -90
  53. data/lib/pulp_container_client/api/distributions_container_api.rb +153 -90
  54. data/lib/pulp_container_client/api/remotes_container_api.rb +181 -100
  55. data/lib/pulp_container_client/api/repositories_container_api.rb +245 -222
  56. data/lib/pulp_container_client/api/repositories_container_push_api.rb +66 -197
  57. data/lib/pulp_container_client/api/repositories_container_versions_api.rb +278 -188
  58. data/lib/pulp_container_client/api/token_api.rb +8 -14
  59. data/lib/pulp_container_client/api_client.rb +2 -2
  60. data/lib/pulp_container_client/api_error.rb +2 -2
  61. data/lib/pulp_container_client/configuration.rb +3 -3
  62. data/lib/pulp_container_client/models/async_operation_response.rb +3 -2
  63. data/lib/pulp_container_client/models/{container_blob.rb → container_blob_response.rb} +6 -43
  64. data/lib/pulp_container_client/models/container_container_distribution.rb +29 -110
  65. data/lib/pulp_container_client/models/container_container_distribution_response.rb +289 -0
  66. data/lib/pulp_container_client/models/container_container_push_repository.rb +18 -78
  67. data/lib/pulp_container_client/models/container_container_push_repository_response.rb +271 -0
  68. data/lib/pulp_container_client/models/container_container_remote.rb +29 -227
  69. data/lib/pulp_container_client/models/container_container_remote_response.rb +409 -0
  70. data/lib/pulp_container_client/models/container_container_repository.rb +18 -78
  71. data/lib/pulp_container_client/models/container_container_repository_response.rb +271 -0
  72. data/lib/pulp_container_client/models/container_content_redirect_content_guard.rb +4 -56
  73. data/lib/pulp_container_client/models/container_content_redirect_content_guard_response.rb +243 -0
  74. data/lib/pulp_container_client/models/{container_manifest.rb → container_manifest_response.rb} +6 -43
  75. data/lib/pulp_container_client/models/{container_tag.rb → container_tag_response.rb} +7 -40
  76. data/lib/pulp_container_client/models/content_summary.rb +9 -15
  77. data/lib/pulp_container_client/models/content_summary_response.rb +240 -0
  78. data/lib/pulp_container_client/models/inline_response200.rb +3 -13
  79. data/lib/pulp_container_client/models/inline_response2001.rb +3 -13
  80. data/lib/pulp_container_client/models/inline_response2002.rb +3 -13
  81. data/lib/pulp_container_client/models/inline_response2003.rb +3 -13
  82. data/lib/pulp_container_client/models/inline_response2004.rb +3 -13
  83. data/lib/pulp_container_client/models/inline_response2005.rb +3 -13
  84. data/lib/pulp_container_client/models/inline_response2006.rb +3 -13
  85. data/lib/pulp_container_client/models/inline_response2007.rb +3 -13
  86. data/lib/pulp_container_client/models/inline_response2008.rb +3 -13
  87. data/lib/pulp_container_client/models/manifest_copy.rb +4 -3
  88. data/lib/pulp_container_client/models/oci_build_image.rb +240 -0
  89. data/lib/pulp_container_client/models/patchedcontainer_container_distribution.rb +250 -0
  90. data/lib/pulp_container_client/models/patchedcontainer_container_remote.rb +365 -0
  91. data/lib/pulp_container_client/models/patchedcontainer_container_repository.rb +229 -0
  92. data/lib/pulp_container_client/models/patchedcontainer_content_redirect_content_guard.rb +219 -0
  93. data/lib/pulp_container_client/models/policy_enum.rb +37 -0
  94. data/lib/pulp_container_client/models/recursive_manage.rb +4 -3
  95. data/lib/pulp_container_client/models/repository_sync_url.rb +3 -8
  96. data/lib/pulp_container_client/models/repository_version.rb +7 -43
  97. data/lib/pulp_container_client/models/repository_version_response.rb +246 -0
  98. data/lib/pulp_container_client/models/tag_copy.rb +4 -3
  99. data/lib/pulp_container_client/models/tag_image.rb +3 -40
  100. data/lib/pulp_container_client/models/un_tag_image.rb +3 -21
  101. data/lib/pulp_container_client/version.rb +3 -3
  102. data/lib/pulp_container_client.rb +18 -5
  103. data/pulp_container_client.gemspec +4 -4
  104. data/spec/api/content_blobs_api_spec.rb +11 -11
  105. data/spec/api/content_manifests_api_spec.rb +11 -11
  106. data/spec/api/content_tags_api_spec.rb +12 -12
  107. data/spec/api/contentguards_content_redirect_api_spec.rb +17 -17
  108. data/spec/api/distributions_container_api_spec.rb +39 -18
  109. data/spec/api/remotes_container_api_spec.rb +48 -21
  110. data/spec/api/repositories_container_api_spec.rb +41 -32
  111. data/spec/api/repositories_container_push_api_spec.rb +17 -40
  112. data/spec/api/repositories_container_versions_api_spec.rb +76 -46
  113. data/spec/api/token_api_spec.rb +4 -6
  114. data/spec/api_client_spec.rb +2 -2
  115. data/spec/configuration_spec.rb +2 -2
  116. data/spec/models/async_operation_response_spec.rb +2 -2
  117. data/spec/models/{container_blob_spec.rb → container_blob_response_spec.rb} +8 -8
  118. data/spec/models/container_container_distribution_response_spec.rb +83 -0
  119. data/spec/models/container_container_distribution_spec.rb +5 -23
  120. data/spec/models/container_container_push_repository_response_spec.rb +77 -0
  121. data/spec/models/container_container_push_repository_spec.rb +5 -23
  122. data/spec/models/container_container_remote_response_spec.rb +137 -0
  123. data/spec/models/container_container_remote_spec.rb +7 -23
  124. data/spec/models/container_container_repository_response_spec.rb +77 -0
  125. data/spec/models/container_container_repository_spec.rb +5 -23
  126. data/spec/models/container_content_redirect_content_guard_response_spec.rb +59 -0
  127. data/spec/models/container_content_redirect_content_guard_spec.rb +2 -14
  128. data/spec/models/{container_manifest_spec.rb → container_manifest_response_spec.rb} +8 -8
  129. data/spec/models/{container_tag_spec.rb → container_tag_response_spec.rb} +8 -14
  130. data/spec/models/content_summary_response_spec.rb +53 -0
  131. data/spec/models/content_summary_spec.rb +2 -2
  132. data/spec/models/inline_response2001_spec.rb +2 -2
  133. data/spec/models/inline_response2002_spec.rb +2 -2
  134. data/spec/models/inline_response2003_spec.rb +2 -2
  135. data/spec/models/inline_response2004_spec.rb +2 -2
  136. data/spec/models/inline_response2005_spec.rb +2 -2
  137. data/spec/models/inline_response2006_spec.rb +2 -2
  138. data/spec/models/inline_response2007_spec.rb +2 -2
  139. data/spec/models/inline_response2008_spec.rb +2 -2
  140. data/spec/models/inline_response200_spec.rb +2 -2
  141. data/spec/models/manifest_copy_spec.rb +2 -2
  142. data/spec/models/oci_build_image_spec.rb +59 -0
  143. data/spec/models/patchedcontainer_container_distribution_spec.rb +65 -0
  144. data/spec/models/patchedcontainer_container_remote_spec.rb +119 -0
  145. data/spec/models/patchedcontainer_container_repository_spec.rb +53 -0
  146. data/spec/models/patchedcontainer_content_redirect_content_guard_spec.rb +47 -0
  147. data/spec/models/policy_enum_spec.rb +35 -0
  148. data/spec/models/recursive_manage_spec.rb +2 -2
  149. data/spec/models/repository_sync_url_spec.rb +2 -2
  150. data/spec/models/repository_version_response_spec.rb +65 -0
  151. data/spec/models/repository_version_spec.rb +2 -26
  152. data/spec/models/tag_copy_spec.rb +2 -2
  153. data/spec/models/tag_image_spec.rb +2 -2
  154. data/spec/models/un_tag_image_spec.rb +2 -2
  155. data/spec/spec_helper.rb +2 -2
  156. metadata +93 -41
@@ -4,22 +4,14 @@
4
4
 
5
5
  Name | Type | Description | Notes
6
6
  ------------ | ------------- | ------------- | -------------
7
- **pulp_href** | **String** | | [optional] [readonly]
8
- **pulp_created** | **DateTime** | Timestamp of creation. | [optional] [readonly]
9
- **number** | **Integer** | | [optional] [readonly]
10
7
  **base_version** | **String** | A repository version whose content was used as the initial set of content for this repository version | [optional]
11
- **content_summary** | [**ContentSummary**](ContentSummary.md) | | [optional]
12
8
 
13
9
  ## Code Sample
14
10
 
15
11
  ```ruby
16
12
  require 'PulpContainerClient'
17
13
 
18
- instance = PulpContainerClient::RepositoryVersion.new(pulp_href: null,
19
- pulp_created: null,
20
- number: null,
21
- base_version: null,
22
- content_summary: null)
14
+ instance = PulpContainerClient::RepositoryVersion.new(base_version: null)
23
15
  ```
24
16
 
25
17
 
@@ -0,0 +1,25 @@
1
+ # PulpContainerClient::RepositoryVersionResponse
2
+
3
+ ## Properties
4
+
5
+ Name | Type | Description | Notes
6
+ ------------ | ------------- | ------------- | -------------
7
+ **pulp_href** | **String** | | [optional] [readonly]
8
+ **pulp_created** | **DateTime** | Timestamp of creation. | [optional] [readonly]
9
+ **number** | **Integer** | | [optional] [readonly]
10
+ **base_version** | **String** | A repository version whose content was used as the initial set of content for this repository version | [optional]
11
+ **content_summary** | [**ContentSummaryResponse**](ContentSummaryResponse.md) | Various count summaries of the content in the version and the HREF to view them. | [optional] [readonly]
12
+
13
+ ## Code Sample
14
+
15
+ ```ruby
16
+ require 'PulpContainerClient'
17
+
18
+ instance = PulpContainerClient::RepositoryVersionResponse.new(pulp_href: null,
19
+ pulp_created: null,
20
+ number: null,
21
+ base_version: null,
22
+ content_summary: null)
23
+ ```
24
+
25
+
data/docs/TagCopy.md CHANGED
@@ -6,7 +6,7 @@ Name | Type | Description | Notes
6
6
  ------------ | ------------- | ------------- | -------------
7
7
  **source_repository** | **String** | A URI of the repository to copy content from. | [optional]
8
8
  **source_repository_version** | **String** | A URI of the repository version to copy content from. | [optional]
9
- **names** | **Array<String>** | A list of tag names to copy. | [optional]
9
+ **names** | **Array<Object>** | A list of tag names to copy. | [optional]
10
10
 
11
11
  ## Code Sample
12
12
 
data/docs/TokenApi.md CHANGED
@@ -4,13 +4,13 @@ All URIs are relative to *http://pulp*
4
4
 
5
5
  Method | HTTP request | Description
6
6
  ------------- | ------------- | -------------
7
- [**list**](TokenApi.md#list) | **GET** /token/ |
7
+ [**read**](TokenApi.md#read) | **GET** /token/ |
8
8
 
9
9
 
10
10
 
11
- ## list
11
+ ## read
12
12
 
13
- > list(opts)
13
+ > read
14
14
 
15
15
 
16
16
 
@@ -23,31 +23,23 @@ Handles GET requests for the /token/ endpoint.
23
23
  require 'pulp_container_client'
24
24
  # setup authorization
25
25
  PulpContainerClient.configure do |config|
26
- # Configure HTTP basic authorization: Basic
26
+ # Configure HTTP basic authorization: basicAuth
27
27
  config.username = 'YOUR USERNAME'
28
28
  config.password = 'YOUR PASSWORD'
29
29
  end
30
30
 
31
31
  api_instance = PulpContainerClient::TokenApi.new
32
- opts = {
33
- fields: 'fields_example', # String | A list of fields to include in the response.
34
- exclude_fields: 'exclude_fields_example' # String | A list of fields to exclude from the response.
35
- }
36
32
 
37
33
  begin
38
- api_instance.list(opts)
34
+ api_instance.read
39
35
  rescue PulpContainerClient::ApiError => e
40
- puts "Exception when calling TokenApi->list: #{e}"
36
+ puts "Exception when calling TokenApi->read: #{e}"
41
37
  end
42
38
  ```
43
39
 
44
40
  ### Parameters
45
41
 
46
-
47
- Name | Type | Description | Notes
48
- ------------- | ------------- | ------------- | -------------
49
- **fields** | **String**| A list of fields to include in the response. | [optional]
50
- **exclude_fields** | **String**| A list of fields to exclude from the response. | [optional]
42
+ This endpoint does not need any parameter.
51
43
 
52
44
  ### Return type
53
45
 
@@ -55,7 +47,7 @@ nil (empty response body)
55
47
 
56
48
  ### Authorization
57
49
 
58
- [Basic](../README.md#Basic)
50
+ [basicAuth](../README.md#basicAuth)
59
51
 
60
52
  ### HTTP request headers
61
53
 
@@ -1,10 +1,10 @@
1
1
  =begin
2
2
  #Pulp 3 API
3
3
 
4
- #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4
+ #Fetch, Upload, Organize, and Distribute Software Packages
5
5
 
6
6
  The version of the OpenAPI document: v3
7
-
7
+ Contact: pulp-list@redhat.com
8
8
  Generated by: https://openapi-generator.tech
9
9
  OpenAPI Generator version: 4.2.3
10
10
 
@@ -22,15 +22,15 @@ module PulpContainerClient
22
22
  # List blobs
23
23
  # ViewSet for Blobs.
24
24
  # @param [Hash] opts the optional parameters
25
- # @option opts [String] :ordering Which field to use when ordering the results.
26
- # @option opts [String] :digest Filter results where digest matches value
27
- # @option opts [String] :digest__in Filter results where digest is in a comma-separated list of values
28
- # @option opts [String] :repository_version Repository Version referenced by HREF
29
- # @option opts [String] :repository_version_added Repository Version referenced by HREF
30
- # @option opts [String] :repository_version_removed Repository Version referenced by HREF
31
- # @option opts [String] :media_type
25
+ # @option opts [String] :digest digest
26
+ # @option opts [String] :digest__in digest__in
32
27
  # @option opts [Integer] :limit Number of results to return per page.
28
+ # @option opts [String] :media_type media_type
33
29
  # @option opts [Integer] :offset The initial index from which to return the results.
30
+ # @option opts [String] :ordering Which field to use when ordering the results.
31
+ # @option opts [String] :repository_version repository_version
32
+ # @option opts [String] :repository_version_added repository_version_added
33
+ # @option opts [String] :repository_version_removed repository_version_removed
34
34
  # @option opts [String] :fields A list of fields to include in the response.
35
35
  # @option opts [String] :exclude_fields A list of fields to exclude from the response.
36
36
  # @return [InlineResponse200]
@@ -42,15 +42,15 @@ module PulpContainerClient
42
42
  # List blobs
43
43
  # ViewSet for Blobs.
44
44
  # @param [Hash] opts the optional parameters
45
- # @option opts [String] :ordering Which field to use when ordering the results.
46
- # @option opts [String] :digest Filter results where digest matches value
47
- # @option opts [String] :digest__in Filter results where digest is in a comma-separated list of values
48
- # @option opts [String] :repository_version Repository Version referenced by HREF
49
- # @option opts [String] :repository_version_added Repository Version referenced by HREF
50
- # @option opts [String] :repository_version_removed Repository Version referenced by HREF
51
- # @option opts [String] :media_type
45
+ # @option opts [String] :digest digest
46
+ # @option opts [String] :digest__in digest__in
52
47
  # @option opts [Integer] :limit Number of results to return per page.
48
+ # @option opts [String] :media_type media_type
53
49
  # @option opts [Integer] :offset The initial index from which to return the results.
50
+ # @option opts [String] :ordering Which field to use when ordering the results.
51
+ # @option opts [String] :repository_version repository_version
52
+ # @option opts [String] :repository_version_added repository_version_added
53
+ # @option opts [String] :repository_version_removed repository_version_removed
54
54
  # @option opts [String] :fields A list of fields to include in the response.
55
55
  # @option opts [String] :exclude_fields A list of fields to exclude from the response.
56
56
  # @return [Array<(InlineResponse200, Integer, Hash)>] InlineResponse200 data, response status code and response headers
@@ -58,20 +58,24 @@ module PulpContainerClient
58
58
  if @api_client.config.debugging
59
59
  @api_client.config.logger.debug 'Calling API: ContentBlobsApi.list ...'
60
60
  end
61
+ allowable_values = ["application/vnd.docker.container.image.v1+json", "application/vnd.docker.image.rootfs.diff.tar.gzip", "application/vnd.docker.image.rootfs.foreign.diff.tar.gzip", "application/vnd.oci.image.config.v1+json", "application/vnd.oci.image.layer.v1.tar+gzip", "application/vnd.oci.image.layer.nondistributable.v1.tar+gzip"]
62
+ if @api_client.config.client_side_validation && opts[:'media_type'] && !allowable_values.include?(opts[:'media_type'])
63
+ fail ArgumentError, "invalid value for \"media_type\", must be one of #{allowable_values}"
64
+ end
61
65
  # resource path
62
66
  local_var_path = '/pulp/api/v3/content/container/blobs/'
63
67
 
64
68
  # query parameters
65
69
  query_params = opts[:query_params] || {}
66
- query_params[:'ordering'] = opts[:'ordering'] if !opts[:'ordering'].nil?
67
70
  query_params[:'digest'] = opts[:'digest'] if !opts[:'digest'].nil?
68
71
  query_params[:'digest__in'] = opts[:'digest__in'] if !opts[:'digest__in'].nil?
72
+ query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
73
+ query_params[:'media_type'] = opts[:'media_type'] if !opts[:'media_type'].nil?
74
+ query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
75
+ query_params[:'ordering'] = opts[:'ordering'] if !opts[:'ordering'].nil?
69
76
  query_params[:'repository_version'] = opts[:'repository_version'] if !opts[:'repository_version'].nil?
70
77
  query_params[:'repository_version_added'] = opts[:'repository_version_added'] if !opts[:'repository_version_added'].nil?
71
78
  query_params[:'repository_version_removed'] = opts[:'repository_version_removed'] if !opts[:'repository_version_removed'].nil?
72
- query_params[:'media_type'] = opts[:'media_type'] if !opts[:'media_type'].nil?
73
- query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
74
- query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
75
79
  query_params[:'fields'] = opts[:'fields'] if !opts[:'fields'].nil?
76
80
  query_params[:'exclude_fields'] = opts[:'exclude_fields'] if !opts[:'exclude_fields'].nil?
77
81
 
@@ -90,7 +94,7 @@ module PulpContainerClient
90
94
  return_type = opts[:return_type] || 'InlineResponse200'
91
95
 
92
96
  # auth_names
93
- auth_names = opts[:auth_names] || ['Basic']
97
+ auth_names = opts[:auth_names] || ['basicAuth']
94
98
 
95
99
  new_options = opts.merge(
96
100
  :header_params => header_params,
@@ -110,33 +114,33 @@ module PulpContainerClient
110
114
 
111
115
  # Inspect a blob
112
116
  # ViewSet for Blobs.
113
- # @param blob_href [String] URI of Blob. e.g.: /pulp/api/v3/content/container/blobs/1/
117
+ # @param container_blob_href [String]
114
118
  # @param [Hash] opts the optional parameters
115
119
  # @option opts [String] :fields A list of fields to include in the response.
116
120
  # @option opts [String] :exclude_fields A list of fields to exclude from the response.
117
- # @return [ContainerBlob]
118
- def read(blob_href, opts = {})
119
- data, _status_code, _headers = read_with_http_info(blob_href, opts)
121
+ # @return [ContainerBlobResponse]
122
+ def read(container_blob_href, opts = {})
123
+ data, _status_code, _headers = read_with_http_info(container_blob_href, opts)
120
124
  data
121
125
  end
122
126
 
123
127
  # Inspect a blob
124
128
  # ViewSet for Blobs.
125
- # @param blob_href [String] URI of Blob. e.g.: /pulp/api/v3/content/container/blobs/1/
129
+ # @param container_blob_href [String]
126
130
  # @param [Hash] opts the optional parameters
127
131
  # @option opts [String] :fields A list of fields to include in the response.
128
132
  # @option opts [String] :exclude_fields A list of fields to exclude from the response.
129
- # @return [Array<(ContainerBlob, Integer, Hash)>] ContainerBlob data, response status code and response headers
130
- def read_with_http_info(blob_href, opts = {})
133
+ # @return [Array<(ContainerBlobResponse, Integer, Hash)>] ContainerBlobResponse data, response status code and response headers
134
+ def read_with_http_info(container_blob_href, opts = {})
131
135
  if @api_client.config.debugging
132
136
  @api_client.config.logger.debug 'Calling API: ContentBlobsApi.read ...'
133
137
  end
134
- # verify the required parameter 'blob_href' is set
135
- if @api_client.config.client_side_validation && blob_href.nil?
136
- fail ArgumentError, "Missing the required parameter 'blob_href' when calling ContentBlobsApi.read"
138
+ # verify the required parameter 'container_blob_href' is set
139
+ if @api_client.config.client_side_validation && container_blob_href.nil?
140
+ fail ArgumentError, "Missing the required parameter 'container_blob_href' when calling ContentBlobsApi.read"
137
141
  end
138
142
  # resource path
139
- local_var_path = '{blob_href}'.sub('{' + 'blob_href' + '}', CGI.escape(blob_href.to_s).gsub('%2F', '/'))
143
+ local_var_path = '{container_blob_href}'.sub('{' + 'container_blob_href' + '}', CGI.escape(container_blob_href.to_s).gsub('%2F', '/'))
140
144
 
141
145
  # query parameters
142
146
  query_params = opts[:query_params] || {}
@@ -155,10 +159,10 @@ module PulpContainerClient
155
159
  post_body = opts[:body]
156
160
 
157
161
  # return_type
158
- return_type = opts[:return_type] || 'ContainerBlob'
162
+ return_type = opts[:return_type] || 'ContainerBlobResponse'
159
163
 
160
164
  # auth_names
161
- auth_names = opts[:auth_names] || ['Basic']
165
+ auth_names = opts[:auth_names] || ['basicAuth']
162
166
 
163
167
  new_options = opts.merge(
164
168
  :header_params => header_params,
@@ -1,10 +1,10 @@
1
1
  =begin
2
2
  #Pulp 3 API
3
3
 
4
- #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4
+ #Fetch, Upload, Organize, and Distribute Software Packages
5
5
 
6
6
  The version of the OpenAPI document: v3
7
-
7
+ Contact: pulp-list@redhat.com
8
8
  Generated by: https://openapi-generator.tech
9
9
  OpenAPI Generator version: 4.2.3
10
10
 
@@ -22,15 +22,15 @@ module PulpContainerClient
22
22
  # List manifests
23
23
  # ViewSet for Manifest.
24
24
  # @param [Hash] opts the optional parameters
25
- # @option opts [String] :ordering Which field to use when ordering the results.
26
- # @option opts [String] :digest Filter results where digest matches value
27
- # @option opts [String] :digest__in Filter results where digest is in a comma-separated list of values
28
- # @option opts [String] :repository_version Repository Version referenced by HREF
29
- # @option opts [String] :repository_version_added Repository Version referenced by HREF
30
- # @option opts [String] :repository_version_removed Repository Version referenced by HREF
31
- # @option opts [String] :media_type
25
+ # @option opts [String] :digest digest
26
+ # @option opts [String] :digest__in digest__in
32
27
  # @option opts [Integer] :limit Number of results to return per page.
28
+ # @option opts [String] :media_type media_type
33
29
  # @option opts [Integer] :offset The initial index from which to return the results.
30
+ # @option opts [String] :ordering Which field to use when ordering the results.
31
+ # @option opts [String] :repository_version repository_version
32
+ # @option opts [String] :repository_version_added repository_version_added
33
+ # @option opts [String] :repository_version_removed repository_version_removed
34
34
  # @option opts [String] :fields A list of fields to include in the response.
35
35
  # @option opts [String] :exclude_fields A list of fields to exclude from the response.
36
36
  # @return [InlineResponse2001]
@@ -42,15 +42,15 @@ module PulpContainerClient
42
42
  # List manifests
43
43
  # ViewSet for Manifest.
44
44
  # @param [Hash] opts the optional parameters
45
- # @option opts [String] :ordering Which field to use when ordering the results.
46
- # @option opts [String] :digest Filter results where digest matches value
47
- # @option opts [String] :digest__in Filter results where digest is in a comma-separated list of values
48
- # @option opts [String] :repository_version Repository Version referenced by HREF
49
- # @option opts [String] :repository_version_added Repository Version referenced by HREF
50
- # @option opts [String] :repository_version_removed Repository Version referenced by HREF
51
- # @option opts [String] :media_type
45
+ # @option opts [String] :digest digest
46
+ # @option opts [String] :digest__in digest__in
52
47
  # @option opts [Integer] :limit Number of results to return per page.
48
+ # @option opts [String] :media_type media_type
53
49
  # @option opts [Integer] :offset The initial index from which to return the results.
50
+ # @option opts [String] :ordering Which field to use when ordering the results.
51
+ # @option opts [String] :repository_version repository_version
52
+ # @option opts [String] :repository_version_added repository_version_added
53
+ # @option opts [String] :repository_version_removed repository_version_removed
54
54
  # @option opts [String] :fields A list of fields to include in the response.
55
55
  # @option opts [String] :exclude_fields A list of fields to exclude from the response.
56
56
  # @return [Array<(InlineResponse2001, Integer, Hash)>] InlineResponse2001 data, response status code and response headers
@@ -58,20 +58,24 @@ module PulpContainerClient
58
58
  if @api_client.config.debugging
59
59
  @api_client.config.logger.debug 'Calling API: ContentManifestsApi.list ...'
60
60
  end
61
+ allowable_values = ["application/vnd.docker.distribution.manifest.v1+json", "application/vnd.docker.distribution.manifest.v2+json", "application/vnd.docker.distribution.manifest.list.v2+json", "application/vnd.oci.image.manifest.v1+json", "application/vnd.oci.image.index.v1+json"]
62
+ if @api_client.config.client_side_validation && opts[:'media_type'] && !allowable_values.include?(opts[:'media_type'])
63
+ fail ArgumentError, "invalid value for \"media_type\", must be one of #{allowable_values}"
64
+ end
61
65
  # resource path
62
66
  local_var_path = '/pulp/api/v3/content/container/manifests/'
63
67
 
64
68
  # query parameters
65
69
  query_params = opts[:query_params] || {}
66
- query_params[:'ordering'] = opts[:'ordering'] if !opts[:'ordering'].nil?
67
70
  query_params[:'digest'] = opts[:'digest'] if !opts[:'digest'].nil?
68
71
  query_params[:'digest__in'] = opts[:'digest__in'] if !opts[:'digest__in'].nil?
72
+ query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
73
+ query_params[:'media_type'] = opts[:'media_type'] if !opts[:'media_type'].nil?
74
+ query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
75
+ query_params[:'ordering'] = opts[:'ordering'] if !opts[:'ordering'].nil?
69
76
  query_params[:'repository_version'] = opts[:'repository_version'] if !opts[:'repository_version'].nil?
70
77
  query_params[:'repository_version_added'] = opts[:'repository_version_added'] if !opts[:'repository_version_added'].nil?
71
78
  query_params[:'repository_version_removed'] = opts[:'repository_version_removed'] if !opts[:'repository_version_removed'].nil?
72
- query_params[:'media_type'] = opts[:'media_type'] if !opts[:'media_type'].nil?
73
- query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
74
- query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
75
79
  query_params[:'fields'] = opts[:'fields'] if !opts[:'fields'].nil?
76
80
  query_params[:'exclude_fields'] = opts[:'exclude_fields'] if !opts[:'exclude_fields'].nil?
77
81
 
@@ -90,7 +94,7 @@ module PulpContainerClient
90
94
  return_type = opts[:return_type] || 'InlineResponse2001'
91
95
 
92
96
  # auth_names
93
- auth_names = opts[:auth_names] || ['Basic']
97
+ auth_names = opts[:auth_names] || ['basicAuth']
94
98
 
95
99
  new_options = opts.merge(
96
100
  :header_params => header_params,
@@ -110,33 +114,33 @@ module PulpContainerClient
110
114
 
111
115
  # Inspect a manifest
112
116
  # ViewSet for Manifest.
113
- # @param manifest_href [String] URI of Manifest. e.g.: /pulp/api/v3/content/container/manifests/1/
117
+ # @param container_manifest_href [String]
114
118
  # @param [Hash] opts the optional parameters
115
119
  # @option opts [String] :fields A list of fields to include in the response.
116
120
  # @option opts [String] :exclude_fields A list of fields to exclude from the response.
117
- # @return [ContainerManifest]
118
- def read(manifest_href, opts = {})
119
- data, _status_code, _headers = read_with_http_info(manifest_href, opts)
121
+ # @return [ContainerManifestResponse]
122
+ def read(container_manifest_href, opts = {})
123
+ data, _status_code, _headers = read_with_http_info(container_manifest_href, opts)
120
124
  data
121
125
  end
122
126
 
123
127
  # Inspect a manifest
124
128
  # ViewSet for Manifest.
125
- # @param manifest_href [String] URI of Manifest. e.g.: /pulp/api/v3/content/container/manifests/1/
129
+ # @param container_manifest_href [String]
126
130
  # @param [Hash] opts the optional parameters
127
131
  # @option opts [String] :fields A list of fields to include in the response.
128
132
  # @option opts [String] :exclude_fields A list of fields to exclude from the response.
129
- # @return [Array<(ContainerManifest, Integer, Hash)>] ContainerManifest data, response status code and response headers
130
- def read_with_http_info(manifest_href, opts = {})
133
+ # @return [Array<(ContainerManifestResponse, Integer, Hash)>] ContainerManifestResponse data, response status code and response headers
134
+ def read_with_http_info(container_manifest_href, opts = {})
131
135
  if @api_client.config.debugging
132
136
  @api_client.config.logger.debug 'Calling API: ContentManifestsApi.read ...'
133
137
  end
134
- # verify the required parameter 'manifest_href' is set
135
- if @api_client.config.client_side_validation && manifest_href.nil?
136
- fail ArgumentError, "Missing the required parameter 'manifest_href' when calling ContentManifestsApi.read"
138
+ # verify the required parameter 'container_manifest_href' is set
139
+ if @api_client.config.client_side_validation && container_manifest_href.nil?
140
+ fail ArgumentError, "Missing the required parameter 'container_manifest_href' when calling ContentManifestsApi.read"
137
141
  end
138
142
  # resource path
139
- local_var_path = '{manifest_href}'.sub('{' + 'manifest_href' + '}', CGI.escape(manifest_href.to_s).gsub('%2F', '/'))
143
+ local_var_path = '{container_manifest_href}'.sub('{' + 'container_manifest_href' + '}', CGI.escape(container_manifest_href.to_s).gsub('%2F', '/'))
140
144
 
141
145
  # query parameters
142
146
  query_params = opts[:query_params] || {}
@@ -155,10 +159,10 @@ module PulpContainerClient
155
159
  post_body = opts[:body]
156
160
 
157
161
  # return_type
158
- return_type = opts[:return_type] || 'ContainerManifest'
162
+ return_type = opts[:return_type] || 'ContainerManifestResponse'
159
163
 
160
164
  # auth_names
161
- auth_names = opts[:auth_names] || ['Basic']
165
+ auth_names = opts[:auth_names] || ['basicAuth']
162
166
 
163
167
  new_options = opts.merge(
164
168
  :header_params => header_params,
@@ -1,10 +1,10 @@
1
1
  =begin
2
2
  #Pulp 3 API
3
3
 
4
- #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4
+ #Fetch, Upload, Organize, and Distribute Software Packages
5
5
 
6
6
  The version of the OpenAPI document: v3
7
-
7
+ Contact: pulp-list@redhat.com
8
8
  Generated by: https://openapi-generator.tech
9
9
  OpenAPI Generator version: 4.2.3
10
10
 
@@ -22,16 +22,16 @@ module PulpContainerClient
22
22
  # List tags
23
23
  # ViewSet for Tag.
24
24
  # @param [Hash] opts the optional parameters
25
- # @option opts [String] :ordering Which field to use when ordering the results.
26
- # @option opts [String] :name Filter results where name matches value
27
- # @option opts [String] :name__in Filter results where name is in a comma-separated list of values
28
- # @option opts [String] :repository_version Repository Version referenced by HREF
29
- # @option opts [String] :repository_version_added Repository Version referenced by HREF
30
- # @option opts [String] :repository_version_removed Repository Version referenced by HREF
31
- # @option opts [String] :media_type
32
- # @option opts [String] :digest Multiple values may be separated by commas.
25
+ # @option opts [String] :digest digest
33
26
  # @option opts [Integer] :limit Number of results to return per page.
27
+ # @option opts [String] :media_type media_type
28
+ # @option opts [String] :name name
29
+ # @option opts [String] :name__in name__in
34
30
  # @option opts [Integer] :offset The initial index from which to return the results.
31
+ # @option opts [String] :ordering Which field to use when ordering the results.
32
+ # @option opts [String] :repository_version repository_version
33
+ # @option opts [String] :repository_version_added repository_version_added
34
+ # @option opts [String] :repository_version_removed repository_version_removed
35
35
  # @option opts [String] :fields A list of fields to include in the response.
36
36
  # @option opts [String] :exclude_fields A list of fields to exclude from the response.
37
37
  # @return [InlineResponse2002]
@@ -43,16 +43,16 @@ module PulpContainerClient
43
43
  # List tags
44
44
  # ViewSet for Tag.
45
45
  # @param [Hash] opts the optional parameters
46
- # @option opts [String] :ordering Which field to use when ordering the results.
47
- # @option opts [String] :name Filter results where name matches value
48
- # @option opts [String] :name__in Filter results where name is in a comma-separated list of values
49
- # @option opts [String] :repository_version Repository Version referenced by HREF
50
- # @option opts [String] :repository_version_added Repository Version referenced by HREF
51
- # @option opts [String] :repository_version_removed Repository Version referenced by HREF
52
- # @option opts [String] :media_type
53
- # @option opts [String] :digest Multiple values may be separated by commas.
46
+ # @option opts [String] :digest digest
54
47
  # @option opts [Integer] :limit Number of results to return per page.
48
+ # @option opts [String] :media_type media_type
49
+ # @option opts [String] :name name
50
+ # @option opts [String] :name__in name__in
55
51
  # @option opts [Integer] :offset The initial index from which to return the results.
52
+ # @option opts [String] :ordering Which field to use when ordering the results.
53
+ # @option opts [String] :repository_version repository_version
54
+ # @option opts [String] :repository_version_added repository_version_added
55
+ # @option opts [String] :repository_version_removed repository_version_removed
56
56
  # @option opts [String] :fields A list of fields to include in the response.
57
57
  # @option opts [String] :exclude_fields A list of fields to exclude from the response.
58
58
  # @return [Array<(InlineResponse2002, Integer, Hash)>] InlineResponse2002 data, response status code and response headers
@@ -60,21 +60,25 @@ module PulpContainerClient
60
60
  if @api_client.config.debugging
61
61
  @api_client.config.logger.debug 'Calling API: ContentTagsApi.list ...'
62
62
  end
63
+ allowable_values = ["application/vnd.docker.distribution.manifest.v1+json", "application/vnd.docker.distribution.manifest.v2+json", "application/vnd.docker.distribution.manifest.list.v2+json", "application/vnd.oci.image.manifest.v1+json", "application/vnd.oci.image.index.v1+json"]
64
+ if @api_client.config.client_side_validation && opts[:'media_type'] && !allowable_values.include?(opts[:'media_type'])
65
+ fail ArgumentError, "invalid value for \"media_type\", must be one of #{allowable_values}"
66
+ end
63
67
  # resource path
64
68
  local_var_path = '/pulp/api/v3/content/container/tags/'
65
69
 
66
70
  # query parameters
67
71
  query_params = opts[:query_params] || {}
68
- query_params[:'ordering'] = opts[:'ordering'] if !opts[:'ordering'].nil?
72
+ query_params[:'digest'] = opts[:'digest'] if !opts[:'digest'].nil?
73
+ query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
74
+ query_params[:'media_type'] = opts[:'media_type'] if !opts[:'media_type'].nil?
69
75
  query_params[:'name'] = opts[:'name'] if !opts[:'name'].nil?
70
76
  query_params[:'name__in'] = opts[:'name__in'] if !opts[:'name__in'].nil?
77
+ query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
78
+ query_params[:'ordering'] = opts[:'ordering'] if !opts[:'ordering'].nil?
71
79
  query_params[:'repository_version'] = opts[:'repository_version'] if !opts[:'repository_version'].nil?
72
80
  query_params[:'repository_version_added'] = opts[:'repository_version_added'] if !opts[:'repository_version_added'].nil?
73
81
  query_params[:'repository_version_removed'] = opts[:'repository_version_removed'] if !opts[:'repository_version_removed'].nil?
74
- query_params[:'media_type'] = opts[:'media_type'] if !opts[:'media_type'].nil?
75
- query_params[:'digest'] = opts[:'digest'] if !opts[:'digest'].nil?
76
- query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
77
- query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
78
82
  query_params[:'fields'] = opts[:'fields'] if !opts[:'fields'].nil?
79
83
  query_params[:'exclude_fields'] = opts[:'exclude_fields'] if !opts[:'exclude_fields'].nil?
80
84
 
@@ -93,7 +97,7 @@ module PulpContainerClient
93
97
  return_type = opts[:return_type] || 'InlineResponse2002'
94
98
 
95
99
  # auth_names
96
- auth_names = opts[:auth_names] || ['Basic']
100
+ auth_names = opts[:auth_names] || ['basicAuth']
97
101
 
98
102
  new_options = opts.merge(
99
103
  :header_params => header_params,
@@ -113,33 +117,33 @@ module PulpContainerClient
113
117
 
114
118
  # Inspect a tag
115
119
  # ViewSet for Tag.
116
- # @param tag_href [String] URI of Tag. e.g.: /pulp/api/v3/content/container/tags/1/
120
+ # @param container_tag_href [String]
117
121
  # @param [Hash] opts the optional parameters
118
122
  # @option opts [String] :fields A list of fields to include in the response.
119
123
  # @option opts [String] :exclude_fields A list of fields to exclude from the response.
120
- # @return [ContainerTag]
121
- def read(tag_href, opts = {})
122
- data, _status_code, _headers = read_with_http_info(tag_href, opts)
124
+ # @return [ContainerTagResponse]
125
+ def read(container_tag_href, opts = {})
126
+ data, _status_code, _headers = read_with_http_info(container_tag_href, opts)
123
127
  data
124
128
  end
125
129
 
126
130
  # Inspect a tag
127
131
  # ViewSet for Tag.
128
- # @param tag_href [String] URI of Tag. e.g.: /pulp/api/v3/content/container/tags/1/
132
+ # @param container_tag_href [String]
129
133
  # @param [Hash] opts the optional parameters
130
134
  # @option opts [String] :fields A list of fields to include in the response.
131
135
  # @option opts [String] :exclude_fields A list of fields to exclude from the response.
132
- # @return [Array<(ContainerTag, Integer, Hash)>] ContainerTag data, response status code and response headers
133
- def read_with_http_info(tag_href, opts = {})
136
+ # @return [Array<(ContainerTagResponse, Integer, Hash)>] ContainerTagResponse data, response status code and response headers
137
+ def read_with_http_info(container_tag_href, opts = {})
134
138
  if @api_client.config.debugging
135
139
  @api_client.config.logger.debug 'Calling API: ContentTagsApi.read ...'
136
140
  end
137
- # verify the required parameter 'tag_href' is set
138
- if @api_client.config.client_side_validation && tag_href.nil?
139
- fail ArgumentError, "Missing the required parameter 'tag_href' when calling ContentTagsApi.read"
141
+ # verify the required parameter 'container_tag_href' is set
142
+ if @api_client.config.client_side_validation && container_tag_href.nil?
143
+ fail ArgumentError, "Missing the required parameter 'container_tag_href' when calling ContentTagsApi.read"
140
144
  end
141
145
  # resource path
142
- local_var_path = '{tag_href}'.sub('{' + 'tag_href' + '}', CGI.escape(tag_href.to_s).gsub('%2F', '/'))
146
+ local_var_path = '{container_tag_href}'.sub('{' + 'container_tag_href' + '}', CGI.escape(container_tag_href.to_s).gsub('%2F', '/'))
143
147
 
144
148
  # query parameters
145
149
  query_params = opts[:query_params] || {}
@@ -158,10 +162,10 @@ module PulpContainerClient
158
162
  post_body = opts[:body]
159
163
 
160
164
  # return_type
161
- return_type = opts[:return_type] || 'ContainerTag'
165
+ return_type = opts[:return_type] || 'ContainerTagResponse'
162
166
 
163
167
  # auth_names
164
- auth_names = opts[:auth_names] || ['Basic']
168
+ auth_names = opts[:auth_names] || ['basicAuth']
165
169
 
166
170
  new_options = opts.merge(
167
171
  :header_params => header_params,