pulp_container_client 1.0.0rc1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (102) hide show
  1. checksums.yaml +7 -0
  2. data/Gemfile +9 -0
  3. data/README.md +164 -0
  4. data/Rakefile +10 -0
  5. data/docs/AsyncOperationResponse.md +17 -0
  6. data/docs/ContainerBlob.md +25 -0
  7. data/docs/ContainerContainerDistribution.md +31 -0
  8. data/docs/ContainerContainerRemote.md +43 -0
  9. data/docs/ContainerContainerRepository.md +27 -0
  10. data/docs/ContainerManifest.md +33 -0
  11. data/docs/ContainerTag.md +25 -0
  12. data/docs/ContentBlobsApi.md +142 -0
  13. data/docs/ContentManifestsApi.md +142 -0
  14. data/docs/ContentSummary.md +21 -0
  15. data/docs/ContentTagsApi.md +144 -0
  16. data/docs/DistributionsContainerApi.md +362 -0
  17. data/docs/InlineResponse200.md +23 -0
  18. data/docs/InlineResponse2001.md +23 -0
  19. data/docs/InlineResponse2002.md +23 -0
  20. data/docs/InlineResponse2003.md +23 -0
  21. data/docs/InlineResponse2004.md +23 -0
  22. data/docs/InlineResponse2005.md +23 -0
  23. data/docs/InlineResponse2006.md +23 -0
  24. data/docs/ManifestCopy.md +23 -0
  25. data/docs/RecursiveManage.md +17 -0
  26. data/docs/RemotesContainerApi.md +366 -0
  27. data/docs/RepositoriesContainerApi.md +739 -0
  28. data/docs/RepositoriesContainerVersionsApi.md +214 -0
  29. data/docs/RepositorySyncURL.md +19 -0
  30. data/docs/RepositoryVersion.md +25 -0
  31. data/docs/TagCopy.md +21 -0
  32. data/docs/TagImage.md +19 -0
  33. data/docs/UnTagImage.md +17 -0
  34. data/git_push.sh +58 -0
  35. data/lib/pulp_container_client/api/content_blobs_api.rb +176 -0
  36. data/lib/pulp_container_client/api/content_manifests_api.rb +176 -0
  37. data/lib/pulp_container_client/api/content_tags_api.rb +179 -0
  38. data/lib/pulp_container_client/api/distributions_container_api.rb +442 -0
  39. data/lib/pulp_container_client/api/remotes_container_api.rb +448 -0
  40. data/lib/pulp_container_client/api/repositories_container_api.rb +906 -0
  41. data/lib/pulp_container_client/api/repositories_container_versions_api.rb +268 -0
  42. data/lib/pulp_container_client/api_client.rb +402 -0
  43. data/lib/pulp_container_client/api_error.rb +57 -0
  44. data/lib/pulp_container_client/configuration.rb +243 -0
  45. data/lib/pulp_container_client/models/async_operation_response.rb +212 -0
  46. data/lib/pulp_container_client/models/container_blob.rb +299 -0
  47. data/lib/pulp_container_client/models/container_container_distribution.rb +342 -0
  48. data/lib/pulp_container_client/models/container_container_remote.rb +526 -0
  49. data/lib/pulp_container_client/models/container_container_repository.rb +294 -0
  50. data/lib/pulp_container_client/models/container_manifest.rb +363 -0
  51. data/lib/pulp_container_client/models/container_tag.rb +280 -0
  52. data/lib/pulp_container_client/models/content_summary.rb +246 -0
  53. data/lib/pulp_container_client/models/inline_response200.rb +247 -0
  54. data/lib/pulp_container_client/models/inline_response2001.rb +247 -0
  55. data/lib/pulp_container_client/models/inline_response2002.rb +247 -0
  56. data/lib/pulp_container_client/models/inline_response2003.rb +247 -0
  57. data/lib/pulp_container_client/models/inline_response2004.rb +247 -0
  58. data/lib/pulp_container_client/models/inline_response2005.rb +247 -0
  59. data/lib/pulp_container_client/models/inline_response2006.rb +247 -0
  60. data/lib/pulp_container_client/models/manifest_copy.rb +263 -0
  61. data/lib/pulp_container_client/models/recursive_manage.rb +209 -0
  62. data/lib/pulp_container_client/models/repository_sync_url.rb +224 -0
  63. data/lib/pulp_container_client/models/repository_version.rb +244 -0
  64. data/lib/pulp_container_client/models/tag_copy.rb +229 -0
  65. data/lib/pulp_container_client/models/tag_image.rb +265 -0
  66. data/lib/pulp_container_client/models/un_tag_image.rb +231 -0
  67. data/lib/pulp_container_client/version.rb +15 -0
  68. data/lib/pulp_container_client.rb +68 -0
  69. data/pulp_container_client.gemspec +39 -0
  70. data/spec/api/content_blobs_api_spec.rb +70 -0
  71. data/spec/api/content_manifests_api_spec.rb +70 -0
  72. data/spec/api/content_tags_api_spec.rb +71 -0
  73. data/spec/api/distributions_container_api_spec.rb +120 -0
  74. data/spec/api/remotes_container_api_spec.rb +122 -0
  75. data/spec/api/repositories_container_api_spec.rb +200 -0
  76. data/spec/api/repositories_container_versions_api_spec.rb +91 -0
  77. data/spec/api_client_spec.rb +188 -0
  78. data/spec/configuration_spec.rb +42 -0
  79. data/spec/models/async_operation_response_spec.rb +41 -0
  80. data/spec/models/container_blob_spec.rb +65 -0
  81. data/spec/models/container_container_distribution_spec.rb +83 -0
  82. data/spec/models/container_container_remote_spec.rb +123 -0
  83. data/spec/models/container_container_repository_spec.rb +71 -0
  84. data/spec/models/container_manifest_spec.rb +89 -0
  85. data/spec/models/container_tag_spec.rb +65 -0
  86. data/spec/models/content_summary_spec.rb +53 -0
  87. data/spec/models/inline_response2001_spec.rb +59 -0
  88. data/spec/models/inline_response2002_spec.rb +59 -0
  89. data/spec/models/inline_response2003_spec.rb +59 -0
  90. data/spec/models/inline_response2004_spec.rb +59 -0
  91. data/spec/models/inline_response2005_spec.rb +59 -0
  92. data/spec/models/inline_response2006_spec.rb +59 -0
  93. data/spec/models/inline_response200_spec.rb +59 -0
  94. data/spec/models/manifest_copy_spec.rb +63 -0
  95. data/spec/models/recursive_manage_spec.rb +41 -0
  96. data/spec/models/repository_sync_url_spec.rb +47 -0
  97. data/spec/models/repository_version_spec.rb +65 -0
  98. data/spec/models/tag_copy_spec.rb +53 -0
  99. data/spec/models/tag_image_spec.rb +47 -0
  100. data/spec/models/un_tag_image_spec.rb +41 -0
  101. data/spec/spec_helper.rb +111 -0
  102. metadata +230 -0
@@ -0,0 +1,214 @@
1
+ # PulpContainerClient::RepositoriesContainerVersionsApi
2
+
3
+ All URIs are relative to *http://localhost:24817*
4
+
5
+ Method | HTTP request | Description
6
+ ------------- | ------------- | -------------
7
+ [**delete**](RepositoriesContainerVersionsApi.md#delete) | **DELETE** {container_repository_version_href} | Delete a repository version
8
+ [**list**](RepositoriesContainerVersionsApi.md#list) | **GET** {container_repository_href}versions/ | List repository versions
9
+ [**read**](RepositoriesContainerVersionsApi.md#read) | **GET** {container_repository_version_href} | Inspect a repository version
10
+
11
+
12
+
13
+ ## delete
14
+
15
+ > AsyncOperationResponse delete(container_repository_version_href)
16
+
17
+ Delete a repository version
18
+
19
+ Trigger an asynchronous task to delete a repositroy version.
20
+
21
+ ### Example
22
+
23
+ ```ruby
24
+ # load the gem
25
+ require 'pulp_container_client'
26
+ # setup authorization
27
+ PulpContainerClient.configure do |config|
28
+ # Configure HTTP basic authorization: Basic
29
+ config.username = 'YOUR USERNAME'
30
+ config.password = 'YOUR PASSWORD'
31
+ end
32
+
33
+ api_instance = PulpContainerClient::RepositoriesContainerVersionsApi.new
34
+ container_repository_version_href = 'container_repository_version_href_example' # String | URI of Repository Version. e.g.: /pulp/api/v3/repositories/container/container/1/versions/1/
35
+
36
+ begin
37
+ #Delete a repository version
38
+ result = api_instance.delete(container_repository_version_href)
39
+ p result
40
+ rescue PulpContainerClient::ApiError => e
41
+ puts "Exception when calling RepositoriesContainerVersionsApi->delete: #{e}"
42
+ end
43
+ ```
44
+
45
+ ### Parameters
46
+
47
+
48
+ Name | Type | Description | Notes
49
+ ------------- | ------------- | ------------- | -------------
50
+ **container_repository_version_href** | **String**| URI of Repository Version. e.g.: /pulp/api/v3/repositories/container/container/1/versions/1/ |
51
+
52
+ ### Return type
53
+
54
+ [**AsyncOperationResponse**](AsyncOperationResponse.md)
55
+
56
+ ### Authorization
57
+
58
+ [Basic](../README.md#Basic)
59
+
60
+ ### HTTP request headers
61
+
62
+ - **Content-Type**: Not defined
63
+ - **Accept**: application/json
64
+
65
+
66
+ ## list
67
+
68
+ > InlineResponse2006 list(container_container_repository_href, opts)
69
+
70
+ List repository versions
71
+
72
+ ContainerRepositoryVersion represents a single container repository version.
73
+
74
+ ### Example
75
+
76
+ ```ruby
77
+ # load the gem
78
+ require 'pulp_container_client'
79
+ # setup authorization
80
+ PulpContainerClient.configure do |config|
81
+ # Configure HTTP basic authorization: Basic
82
+ config.username = 'YOUR USERNAME'
83
+ config.password = 'YOUR PASSWORD'
84
+ end
85
+
86
+ api_instance = PulpContainerClient::RepositoriesContainerVersionsApi.new
87
+ container_container_repository_href = 'container_container_repository_href_example' # String | URI of Container Repository. e.g.: /pulp/api/v3/repositories/container/container/1/
88
+ opts = {
89
+ ordering: 'ordering_example', # String | Which field to use when ordering the results.
90
+ number: 3.4, # Float |
91
+ number__lt: 3.4, # Float | Filter results where number is less than value
92
+ number__lte: 3.4, # Float | Filter results where number is less than or equal to value
93
+ number__gt: 3.4, # Float | Filter results where number is greater than value
94
+ number__gte: 3.4, # Float | Filter results where number is greater than or equal to value
95
+ number__range: 3.4, # Float | Filter results where number is between two comma separated values
96
+ pulp_created__lt: 'pulp_created__lt_example', # String | Filter results where pulp_created is less than value
97
+ pulp_created__lte: 'pulp_created__lte_example', # String | Filter results where pulp_created is less than or equal to value
98
+ pulp_created__gt: 'pulp_created__gt_example', # String | Filter results where pulp_created is greater than value
99
+ pulp_created__gte: 'pulp_created__gte_example', # String | Filter results where pulp_created is greater than or equal to value
100
+ pulp_created__range: 'pulp_created__range_example', # String | Filter results where pulp_created is between two comma separated values
101
+ content: 'content_example', # String | Content Unit referenced by HREF
102
+ pulp_created: 'pulp_created_example', # String | ISO 8601 formatted dates are supported
103
+ limit: 56, # Integer | Number of results to return per page.
104
+ offset: 56, # Integer | The initial index from which to return the results.
105
+ fields: 'fields_example', # String | A list of fields to include in the response.
106
+ exclude_fields: 'exclude_fields_example' # String | A list of fields to exclude from the response.
107
+ }
108
+
109
+ begin
110
+ #List repository versions
111
+ result = api_instance.list(container_container_repository_href, opts)
112
+ p result
113
+ rescue PulpContainerClient::ApiError => e
114
+ puts "Exception when calling RepositoriesContainerVersionsApi->list: #{e}"
115
+ end
116
+ ```
117
+
118
+ ### Parameters
119
+
120
+
121
+ Name | Type | Description | Notes
122
+ ------------- | ------------- | ------------- | -------------
123
+ **container_container_repository_href** | **String**| URI of Container Repository. e.g.: /pulp/api/v3/repositories/container/container/1/ |
124
+ **ordering** | **String**| Which field to use when ordering the results. | [optional]
125
+ **number** | **Float**| | [optional]
126
+ **number__lt** | **Float**| Filter results where number is less than value | [optional]
127
+ **number__lte** | **Float**| Filter results where number is less than or equal to value | [optional]
128
+ **number__gt** | **Float**| Filter results where number is greater than value | [optional]
129
+ **number__gte** | **Float**| Filter results where number is greater than or equal to value | [optional]
130
+ **number__range** | **Float**| Filter results where number is between two comma separated values | [optional]
131
+ **pulp_created__lt** | **String**| Filter results where pulp_created is less than value | [optional]
132
+ **pulp_created__lte** | **String**| Filter results where pulp_created is less than or equal to value | [optional]
133
+ **pulp_created__gt** | **String**| Filter results where pulp_created is greater than value | [optional]
134
+ **pulp_created__gte** | **String**| Filter results where pulp_created is greater than or equal to value | [optional]
135
+ **pulp_created__range** | **String**| Filter results where pulp_created is between two comma separated values | [optional]
136
+ **content** | **String**| Content Unit referenced by HREF | [optional]
137
+ **pulp_created** | **String**| ISO 8601 formatted dates are supported | [optional]
138
+ **limit** | **Integer**| Number of results to return per page. | [optional]
139
+ **offset** | **Integer**| The initial index from which to return the results. | [optional]
140
+ **fields** | **String**| A list of fields to include in the response. | [optional]
141
+ **exclude_fields** | **String**| A list of fields to exclude from the response. | [optional]
142
+
143
+ ### Return type
144
+
145
+ [**InlineResponse2006**](InlineResponse2006.md)
146
+
147
+ ### Authorization
148
+
149
+ [Basic](../README.md#Basic)
150
+
151
+ ### HTTP request headers
152
+
153
+ - **Content-Type**: Not defined
154
+ - **Accept**: application/json
155
+
156
+
157
+ ## read
158
+
159
+ > RepositoryVersion read(container_repository_version_href, opts)
160
+
161
+ Inspect a repository version
162
+
163
+ ContainerRepositoryVersion represents a single container repository version.
164
+
165
+ ### Example
166
+
167
+ ```ruby
168
+ # load the gem
169
+ require 'pulp_container_client'
170
+ # setup authorization
171
+ PulpContainerClient.configure do |config|
172
+ # Configure HTTP basic authorization: Basic
173
+ config.username = 'YOUR USERNAME'
174
+ config.password = 'YOUR PASSWORD'
175
+ end
176
+
177
+ api_instance = PulpContainerClient::RepositoriesContainerVersionsApi.new
178
+ container_repository_version_href = 'container_repository_version_href_example' # String | URI of Repository Version. e.g.: /pulp/api/v3/repositories/container/container/1/versions/1/
179
+ opts = {
180
+ fields: 'fields_example', # String | A list of fields to include in the response.
181
+ exclude_fields: 'exclude_fields_example' # String | A list of fields to exclude from the response.
182
+ }
183
+
184
+ begin
185
+ #Inspect a repository version
186
+ result = api_instance.read(container_repository_version_href, opts)
187
+ p result
188
+ rescue PulpContainerClient::ApiError => e
189
+ puts "Exception when calling RepositoriesContainerVersionsApi->read: #{e}"
190
+ end
191
+ ```
192
+
193
+ ### Parameters
194
+
195
+
196
+ Name | Type | Description | Notes
197
+ ------------- | ------------- | ------------- | -------------
198
+ **container_repository_version_href** | **String**| URI of Repository Version. e.g.: /pulp/api/v3/repositories/container/container/1/versions/1/ |
199
+ **fields** | **String**| A list of fields to include in the response. | [optional]
200
+ **exclude_fields** | **String**| A list of fields to exclude from the response. | [optional]
201
+
202
+ ### Return type
203
+
204
+ [**RepositoryVersion**](RepositoryVersion.md)
205
+
206
+ ### Authorization
207
+
208
+ [Basic](../README.md#Basic)
209
+
210
+ ### HTTP request headers
211
+
212
+ - **Content-Type**: Not defined
213
+ - **Accept**: application/json
214
+
@@ -0,0 +1,19 @@
1
+ # PulpContainerClient::RepositorySyncURL
2
+
3
+ ## Properties
4
+
5
+ Name | Type | Description | Notes
6
+ ------------ | ------------- | ------------- | -------------
7
+ **remote** | **String** | A URI of the repository to be synchronized. |
8
+ **mirror** | **Boolean** | If ``True``, synchronization will remove all content that is not present in the remote repository. If ``False``, sync will be additive only. | [optional] [default to false]
9
+
10
+ ## Code Sample
11
+
12
+ ```ruby
13
+ require 'PulpContainerClient'
14
+
15
+ instance = PulpContainerClient::RepositorySyncURL.new(remote: null,
16
+ mirror: null)
17
+ ```
18
+
19
+
@@ -0,0 +1,25 @@
1
+ # PulpContainerClient::RepositoryVersion
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** | [**ContentSummary**](ContentSummary.md) | | [optional]
12
+
13
+ ## Code Sample
14
+
15
+ ```ruby
16
+ require 'PulpContainerClient'
17
+
18
+ instance = PulpContainerClient::RepositoryVersion.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 ADDED
@@ -0,0 +1,21 @@
1
+ # PulpContainerClient::TagCopy
2
+
3
+ ## Properties
4
+
5
+ Name | Type | Description | Notes
6
+ ------------ | ------------- | ------------- | -------------
7
+ **source_repository** | **String** | A URI of the repository to copy content from. | [optional]
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]
10
+
11
+ ## Code Sample
12
+
13
+ ```ruby
14
+ require 'PulpContainerClient'
15
+
16
+ instance = PulpContainerClient::TagCopy.new(source_repository: null,
17
+ source_repository_version: null,
18
+ names: null)
19
+ ```
20
+
21
+
data/docs/TagImage.md ADDED
@@ -0,0 +1,19 @@
1
+ # PulpContainerClient::TagImage
2
+
3
+ ## Properties
4
+
5
+ Name | Type | Description | Notes
6
+ ------------ | ------------- | ------------- | -------------
7
+ **tag** | **String** | A tag name |
8
+ **digest** | **String** | sha256 of the Manifest file |
9
+
10
+ ## Code Sample
11
+
12
+ ```ruby
13
+ require 'PulpContainerClient'
14
+
15
+ instance = PulpContainerClient::TagImage.new(tag: null,
16
+ digest: null)
17
+ ```
18
+
19
+
@@ -0,0 +1,17 @@
1
+ # PulpContainerClient::UnTagImage
2
+
3
+ ## Properties
4
+
5
+ Name | Type | Description | Notes
6
+ ------------ | ------------- | ------------- | -------------
7
+ **tag** | **String** | A tag name |
8
+
9
+ ## Code Sample
10
+
11
+ ```ruby
12
+ require 'PulpContainerClient'
13
+
14
+ instance = PulpContainerClient::UnTagImage.new(tag: null)
15
+ ```
16
+
17
+
data/git_push.sh ADDED
@@ -0,0 +1,58 @@
1
+ #!/bin/sh
2
+ # ref: https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/
3
+ #
4
+ # Usage example: /bin/sh ./git_push.sh wing328 openapi-pestore-perl "minor update" "gitlab.com"
5
+
6
+ git_user_id=$1
7
+ git_repo_id=$2
8
+ release_note=$3
9
+ git_host=$4
10
+
11
+ if [ "$git_host" = "" ]; then
12
+ git_host="github.com"
13
+ echo "[INFO] No command line input provided. Set \$git_host to $git_host"
14
+ fi
15
+
16
+ if [ "$git_user_id" = "" ]; then
17
+ git_user_id="GIT_USER_ID"
18
+ echo "[INFO] No command line input provided. Set \$git_user_id to $git_user_id"
19
+ fi
20
+
21
+ if [ "$git_repo_id" = "" ]; then
22
+ git_repo_id="GIT_REPO_ID"
23
+ echo "[INFO] No command line input provided. Set \$git_repo_id to $git_repo_id"
24
+ fi
25
+
26
+ if [ "$release_note" = "" ]; then
27
+ release_note="Minor update"
28
+ echo "[INFO] No command line input provided. Set \$release_note to $release_note"
29
+ fi
30
+
31
+ # Initialize the local directory as a Git repository
32
+ git init
33
+
34
+ # Adds the files in the local repository and stages them for commit.
35
+ git add .
36
+
37
+ # Commits the tracked changes and prepares them to be pushed to a remote repository.
38
+ git commit -m "$release_note"
39
+
40
+ # Sets the new remote
41
+ git_remote=`git remote`
42
+ if [ "$git_remote" = "" ]; then # git remote not defined
43
+
44
+ if [ "$GIT_TOKEN" = "" ]; then
45
+ echo "[INFO] \$GIT_TOKEN (environment variable) is not set. Using the git credential in your environment."
46
+ git remote add origin https://${git_host}/${git_user_id}/${git_repo_id}.git
47
+ else
48
+ git remote add origin https://${git_user_id}:${GIT_TOKEN}@${git_host}/${git_user_id}/${git_repo_id}.git
49
+ fi
50
+
51
+ fi
52
+
53
+ git pull origin master
54
+
55
+ # Pushes (Forces) the changes in the local repository up to the remote repository
56
+ echo "Git pushing to https://${git_host}/${git_user_id}/${git_repo_id}.git"
57
+ git push origin master 2>&1 | grep -v 'To https'
58
+
@@ -0,0 +1,176 @@
1
+ =begin
2
+ #Pulp 3 API
3
+
4
+ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
5
+
6
+ The version of the OpenAPI document: v3
7
+
8
+ Generated by: https://openapi-generator.tech
9
+ OpenAPI Generator version: 4.2.2-SNAPSHOT
10
+
11
+ =end
12
+
13
+ require 'cgi'
14
+
15
+ module PulpContainerClient
16
+ class ContentBlobsApi
17
+ attr_accessor :api_client
18
+
19
+ def initialize(api_client = ApiClient.default)
20
+ @api_client = api_client
21
+ end
22
+ # List blobs
23
+ # ViewSet for Blobs.
24
+ # @param [Hash] opts the optional parameters
25
+ # @option opts [String] :digest Filter results where digest matches value
26
+ # @option opts [String] :digest__in Filter results where digest is in a comma-separated list of values
27
+ # @option opts [String] :repository_version Repository Version referenced by HREF
28
+ # @option opts [String] :repository_version_added Repository Version referenced by HREF
29
+ # @option opts [String] :repository_version_removed Repository Version referenced by HREF
30
+ # @option opts [String] :media_type
31
+ # @option opts [Integer] :limit Number of results to return per page.
32
+ # @option opts [Integer] :offset The initial index from which to return the results.
33
+ # @option opts [String] :fields A list of fields to include in the response.
34
+ # @option opts [String] :exclude_fields A list of fields to exclude from the response.
35
+ # @return [InlineResponse200]
36
+ def list(opts = {})
37
+ data, _status_code, _headers = list_with_http_info(opts)
38
+ data
39
+ end
40
+
41
+ # List blobs
42
+ # ViewSet for Blobs.
43
+ # @param [Hash] opts the optional parameters
44
+ # @option opts [String] :digest Filter results where digest matches value
45
+ # @option opts [String] :digest__in Filter results where digest is in a comma-separated list of values
46
+ # @option opts [String] :repository_version Repository Version referenced by HREF
47
+ # @option opts [String] :repository_version_added Repository Version referenced by HREF
48
+ # @option opts [String] :repository_version_removed Repository Version referenced by HREF
49
+ # @option opts [String] :media_type
50
+ # @option opts [Integer] :limit Number of results to return per page.
51
+ # @option opts [Integer] :offset The initial index from which to return the results.
52
+ # @option opts [String] :fields A list of fields to include in the response.
53
+ # @option opts [String] :exclude_fields A list of fields to exclude from the response.
54
+ # @return [Array<(InlineResponse200, Integer, Hash)>] InlineResponse200 data, response status code and response headers
55
+ def list_with_http_info(opts = {})
56
+ if @api_client.config.debugging
57
+ @api_client.config.logger.debug 'Calling API: ContentBlobsApi.list ...'
58
+ end
59
+ # resource path
60
+ local_var_path = '/pulp/api/v3/content/container/blobs/'
61
+
62
+ # query parameters
63
+ query_params = opts[:query_params] || {}
64
+ query_params[:'digest'] = opts[:'digest'] if !opts[:'digest'].nil?
65
+ query_params[:'digest__in'] = opts[:'digest__in'] if !opts[:'digest__in'].nil?
66
+ query_params[:'repository_version'] = opts[:'repository_version'] if !opts[:'repository_version'].nil?
67
+ query_params[:'repository_version_added'] = opts[:'repository_version_added'] if !opts[:'repository_version_added'].nil?
68
+ query_params[:'repository_version_removed'] = opts[:'repository_version_removed'] if !opts[:'repository_version_removed'].nil?
69
+ query_params[:'media_type'] = opts[:'media_type'] if !opts[:'media_type'].nil?
70
+ query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
71
+ query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
72
+ query_params[:'fields'] = opts[:'fields'] if !opts[:'fields'].nil?
73
+ query_params[:'exclude_fields'] = opts[:'exclude_fields'] if !opts[:'exclude_fields'].nil?
74
+
75
+ # header parameters
76
+ header_params = opts[:header_params] || {}
77
+ # HTTP header 'Accept' (if needed)
78
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
79
+
80
+ # form parameters
81
+ form_params = opts[:form_params] || {}
82
+
83
+ # http body (model)
84
+ post_body = opts[:body]
85
+
86
+ # return_type
87
+ return_type = opts[:return_type] || 'InlineResponse200'
88
+
89
+ # auth_names
90
+ auth_names = opts[:auth_names] || ['Basic']
91
+
92
+ new_options = opts.merge(
93
+ :header_params => header_params,
94
+ :query_params => query_params,
95
+ :form_params => form_params,
96
+ :body => post_body,
97
+ :auth_names => auth_names,
98
+ :return_type => return_type
99
+ )
100
+
101
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
102
+ if @api_client.config.debugging
103
+ @api_client.config.logger.debug "API called: ContentBlobsApi#list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
104
+ end
105
+ return data, status_code, headers
106
+ end
107
+
108
+ # Inspect a blob
109
+ # ViewSet for Blobs.
110
+ # @param blob_href [String] URI of Blob. e.g.: /pulp/api/v3/content/container/blobs/1/
111
+ # @param [Hash] opts the optional parameters
112
+ # @option opts [String] :fields A list of fields to include in the response.
113
+ # @option opts [String] :exclude_fields A list of fields to exclude from the response.
114
+ # @return [ContainerBlob]
115
+ def read(blob_href, opts = {})
116
+ data, _status_code, _headers = read_with_http_info(blob_href, opts)
117
+ data
118
+ end
119
+
120
+ # Inspect a blob
121
+ # ViewSet for Blobs.
122
+ # @param blob_href [String] URI of Blob. e.g.: /pulp/api/v3/content/container/blobs/1/
123
+ # @param [Hash] opts the optional parameters
124
+ # @option opts [String] :fields A list of fields to include in the response.
125
+ # @option opts [String] :exclude_fields A list of fields to exclude from the response.
126
+ # @return [Array<(ContainerBlob, Integer, Hash)>] ContainerBlob data, response status code and response headers
127
+ def read_with_http_info(blob_href, opts = {})
128
+ if @api_client.config.debugging
129
+ @api_client.config.logger.debug 'Calling API: ContentBlobsApi.read ...'
130
+ end
131
+ # verify the required parameter 'blob_href' is set
132
+ if @api_client.config.client_side_validation && blob_href.nil?
133
+ fail ArgumentError, "Missing the required parameter 'blob_href' when calling ContentBlobsApi.read"
134
+ end
135
+ # resource path
136
+ local_var_path = '{blob_href}'.sub('{' + 'blob_href' + '}', CGI.escape(blob_href.to_s).gsub('%2F', '/'))
137
+
138
+ # query parameters
139
+ query_params = opts[:query_params] || {}
140
+ query_params[:'fields'] = opts[:'fields'] if !opts[:'fields'].nil?
141
+ query_params[:'exclude_fields'] = opts[:'exclude_fields'] if !opts[:'exclude_fields'].nil?
142
+
143
+ # header parameters
144
+ header_params = opts[:header_params] || {}
145
+ # HTTP header 'Accept' (if needed)
146
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
147
+
148
+ # form parameters
149
+ form_params = opts[:form_params] || {}
150
+
151
+ # http body (model)
152
+ post_body = opts[:body]
153
+
154
+ # return_type
155
+ return_type = opts[:return_type] || 'ContainerBlob'
156
+
157
+ # auth_names
158
+ auth_names = opts[:auth_names] || ['Basic']
159
+
160
+ new_options = opts.merge(
161
+ :header_params => header_params,
162
+ :query_params => query_params,
163
+ :form_params => form_params,
164
+ :body => post_body,
165
+ :auth_names => auth_names,
166
+ :return_type => return_type
167
+ )
168
+
169
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
170
+ if @api_client.config.debugging
171
+ @api_client.config.logger.debug "API called: ContentBlobsApi#read\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
172
+ end
173
+ return data, status_code, headers
174
+ end
175
+ end
176
+ end