pulp_container_client 1.0.0rc1
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.
- checksums.yaml +7 -0
- data/Gemfile +9 -0
- data/README.md +164 -0
- data/Rakefile +10 -0
- data/docs/AsyncOperationResponse.md +17 -0
- data/docs/ContainerBlob.md +25 -0
- data/docs/ContainerContainerDistribution.md +31 -0
- data/docs/ContainerContainerRemote.md +43 -0
- data/docs/ContainerContainerRepository.md +27 -0
- data/docs/ContainerManifest.md +33 -0
- data/docs/ContainerTag.md +25 -0
- data/docs/ContentBlobsApi.md +142 -0
- data/docs/ContentManifestsApi.md +142 -0
- data/docs/ContentSummary.md +21 -0
- data/docs/ContentTagsApi.md +144 -0
- data/docs/DistributionsContainerApi.md +362 -0
- data/docs/InlineResponse200.md +23 -0
- data/docs/InlineResponse2001.md +23 -0
- data/docs/InlineResponse2002.md +23 -0
- data/docs/InlineResponse2003.md +23 -0
- data/docs/InlineResponse2004.md +23 -0
- data/docs/InlineResponse2005.md +23 -0
- data/docs/InlineResponse2006.md +23 -0
- data/docs/ManifestCopy.md +23 -0
- data/docs/RecursiveManage.md +17 -0
- data/docs/RemotesContainerApi.md +366 -0
- data/docs/RepositoriesContainerApi.md +739 -0
- data/docs/RepositoriesContainerVersionsApi.md +214 -0
- data/docs/RepositorySyncURL.md +19 -0
- data/docs/RepositoryVersion.md +25 -0
- data/docs/TagCopy.md +21 -0
- data/docs/TagImage.md +19 -0
- data/docs/UnTagImage.md +17 -0
- data/git_push.sh +58 -0
- data/lib/pulp_container_client/api/content_blobs_api.rb +176 -0
- data/lib/pulp_container_client/api/content_manifests_api.rb +176 -0
- data/lib/pulp_container_client/api/content_tags_api.rb +179 -0
- data/lib/pulp_container_client/api/distributions_container_api.rb +442 -0
- data/lib/pulp_container_client/api/remotes_container_api.rb +448 -0
- data/lib/pulp_container_client/api/repositories_container_api.rb +906 -0
- data/lib/pulp_container_client/api/repositories_container_versions_api.rb +268 -0
- data/lib/pulp_container_client/api_client.rb +402 -0
- data/lib/pulp_container_client/api_error.rb +57 -0
- data/lib/pulp_container_client/configuration.rb +243 -0
- data/lib/pulp_container_client/models/async_operation_response.rb +212 -0
- data/lib/pulp_container_client/models/container_blob.rb +299 -0
- data/lib/pulp_container_client/models/container_container_distribution.rb +342 -0
- data/lib/pulp_container_client/models/container_container_remote.rb +526 -0
- data/lib/pulp_container_client/models/container_container_repository.rb +294 -0
- data/lib/pulp_container_client/models/container_manifest.rb +363 -0
- data/lib/pulp_container_client/models/container_tag.rb +280 -0
- data/lib/pulp_container_client/models/content_summary.rb +246 -0
- data/lib/pulp_container_client/models/inline_response200.rb +247 -0
- data/lib/pulp_container_client/models/inline_response2001.rb +247 -0
- data/lib/pulp_container_client/models/inline_response2002.rb +247 -0
- data/lib/pulp_container_client/models/inline_response2003.rb +247 -0
- data/lib/pulp_container_client/models/inline_response2004.rb +247 -0
- data/lib/pulp_container_client/models/inline_response2005.rb +247 -0
- data/lib/pulp_container_client/models/inline_response2006.rb +247 -0
- data/lib/pulp_container_client/models/manifest_copy.rb +263 -0
- data/lib/pulp_container_client/models/recursive_manage.rb +209 -0
- data/lib/pulp_container_client/models/repository_sync_url.rb +224 -0
- data/lib/pulp_container_client/models/repository_version.rb +244 -0
- data/lib/pulp_container_client/models/tag_copy.rb +229 -0
- data/lib/pulp_container_client/models/tag_image.rb +265 -0
- data/lib/pulp_container_client/models/un_tag_image.rb +231 -0
- data/lib/pulp_container_client/version.rb +15 -0
- data/lib/pulp_container_client.rb +68 -0
- data/pulp_container_client.gemspec +39 -0
- data/spec/api/content_blobs_api_spec.rb +70 -0
- data/spec/api/content_manifests_api_spec.rb +70 -0
- data/spec/api/content_tags_api_spec.rb +71 -0
- data/spec/api/distributions_container_api_spec.rb +120 -0
- data/spec/api/remotes_container_api_spec.rb +122 -0
- data/spec/api/repositories_container_api_spec.rb +200 -0
- data/spec/api/repositories_container_versions_api_spec.rb +91 -0
- data/spec/api_client_spec.rb +188 -0
- data/spec/configuration_spec.rb +42 -0
- data/spec/models/async_operation_response_spec.rb +41 -0
- data/spec/models/container_blob_spec.rb +65 -0
- data/spec/models/container_container_distribution_spec.rb +83 -0
- data/spec/models/container_container_remote_spec.rb +123 -0
- data/spec/models/container_container_repository_spec.rb +71 -0
- data/spec/models/container_manifest_spec.rb +89 -0
- data/spec/models/container_tag_spec.rb +65 -0
- data/spec/models/content_summary_spec.rb +53 -0
- data/spec/models/inline_response2001_spec.rb +59 -0
- data/spec/models/inline_response2002_spec.rb +59 -0
- data/spec/models/inline_response2003_spec.rb +59 -0
- data/spec/models/inline_response2004_spec.rb +59 -0
- data/spec/models/inline_response2005_spec.rb +59 -0
- data/spec/models/inline_response2006_spec.rb +59 -0
- data/spec/models/inline_response200_spec.rb +59 -0
- data/spec/models/manifest_copy_spec.rb +63 -0
- data/spec/models/recursive_manage_spec.rb +41 -0
- data/spec/models/repository_sync_url_spec.rb +47 -0
- data/spec/models/repository_version_spec.rb +65 -0
- data/spec/models/tag_copy_spec.rb +53 -0
- data/spec/models/tag_image_spec.rb +47 -0
- data/spec/models/un_tag_image_spec.rb +41 -0
- data/spec/spec_helper.rb +111 -0
- metadata +230 -0
|
@@ -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 ContentManifestsApi
|
|
17
|
+
attr_accessor :api_client
|
|
18
|
+
|
|
19
|
+
def initialize(api_client = ApiClient.default)
|
|
20
|
+
@api_client = api_client
|
|
21
|
+
end
|
|
22
|
+
# List manifests
|
|
23
|
+
# ViewSet for Manifest.
|
|
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 [InlineResponse2001]
|
|
36
|
+
def list(opts = {})
|
|
37
|
+
data, _status_code, _headers = list_with_http_info(opts)
|
|
38
|
+
data
|
|
39
|
+
end
|
|
40
|
+
|
|
41
|
+
# List manifests
|
|
42
|
+
# ViewSet for Manifest.
|
|
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<(InlineResponse2001, Integer, Hash)>] InlineResponse2001 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: ContentManifestsApi.list ...'
|
|
58
|
+
end
|
|
59
|
+
# resource path
|
|
60
|
+
local_var_path = '/pulp/api/v3/content/container/manifests/'
|
|
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] || 'InlineResponse2001'
|
|
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: ContentManifestsApi#list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
104
|
+
end
|
|
105
|
+
return data, status_code, headers
|
|
106
|
+
end
|
|
107
|
+
|
|
108
|
+
# Inspect a manifest
|
|
109
|
+
# ViewSet for Manifest.
|
|
110
|
+
# @param manifest_href [String] URI of Manifest. e.g.: /pulp/api/v3/content/container/manifests/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 [ContainerManifest]
|
|
115
|
+
def read(manifest_href, opts = {})
|
|
116
|
+
data, _status_code, _headers = read_with_http_info(manifest_href, opts)
|
|
117
|
+
data
|
|
118
|
+
end
|
|
119
|
+
|
|
120
|
+
# Inspect a manifest
|
|
121
|
+
# ViewSet for Manifest.
|
|
122
|
+
# @param manifest_href [String] URI of Manifest. e.g.: /pulp/api/v3/content/container/manifests/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<(ContainerManifest, Integer, Hash)>] ContainerManifest data, response status code and response headers
|
|
127
|
+
def read_with_http_info(manifest_href, opts = {})
|
|
128
|
+
if @api_client.config.debugging
|
|
129
|
+
@api_client.config.logger.debug 'Calling API: ContentManifestsApi.read ...'
|
|
130
|
+
end
|
|
131
|
+
# verify the required parameter 'manifest_href' is set
|
|
132
|
+
if @api_client.config.client_side_validation && manifest_href.nil?
|
|
133
|
+
fail ArgumentError, "Missing the required parameter 'manifest_href' when calling ContentManifestsApi.read"
|
|
134
|
+
end
|
|
135
|
+
# resource path
|
|
136
|
+
local_var_path = '{manifest_href}'.sub('{' + 'manifest_href' + '}', CGI.escape(manifest_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] || 'ContainerManifest'
|
|
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: ContentManifestsApi#read\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
172
|
+
end
|
|
173
|
+
return data, status_code, headers
|
|
174
|
+
end
|
|
175
|
+
end
|
|
176
|
+
end
|
|
@@ -0,0 +1,179 @@
|
|
|
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 ContentTagsApi
|
|
17
|
+
attr_accessor :api_client
|
|
18
|
+
|
|
19
|
+
def initialize(api_client = ApiClient.default)
|
|
20
|
+
@api_client = api_client
|
|
21
|
+
end
|
|
22
|
+
# List tags
|
|
23
|
+
# ViewSet for Tag.
|
|
24
|
+
# @param [Hash] opts the optional parameters
|
|
25
|
+
# @option opts [String] :name Filter results where name matches value
|
|
26
|
+
# @option opts [String] :name__in Filter results where name 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 [String] :digest Multiple values may be separated by commas.
|
|
32
|
+
# @option opts [Integer] :limit Number of results to return per page.
|
|
33
|
+
# @option opts [Integer] :offset The initial index from which to return the results.
|
|
34
|
+
# @option opts [String] :fields A list of fields to include in the response.
|
|
35
|
+
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
|
36
|
+
# @return [InlineResponse2002]
|
|
37
|
+
def list(opts = {})
|
|
38
|
+
data, _status_code, _headers = list_with_http_info(opts)
|
|
39
|
+
data
|
|
40
|
+
end
|
|
41
|
+
|
|
42
|
+
# List tags
|
|
43
|
+
# ViewSet for Tag.
|
|
44
|
+
# @param [Hash] opts the optional parameters
|
|
45
|
+
# @option opts [String] :name Filter results where name matches value
|
|
46
|
+
# @option opts [String] :name__in Filter results where name is in a comma-separated list of values
|
|
47
|
+
# @option opts [String] :repository_version Repository Version referenced by HREF
|
|
48
|
+
# @option opts [String] :repository_version_added Repository Version referenced by HREF
|
|
49
|
+
# @option opts [String] :repository_version_removed Repository Version referenced by HREF
|
|
50
|
+
# @option opts [String] :media_type
|
|
51
|
+
# @option opts [String] :digest Multiple values may be separated by commas.
|
|
52
|
+
# @option opts [Integer] :limit Number of results to return per page.
|
|
53
|
+
# @option opts [Integer] :offset The initial index from which to return the results.
|
|
54
|
+
# @option opts [String] :fields A list of fields to include in the response.
|
|
55
|
+
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
|
56
|
+
# @return [Array<(InlineResponse2002, Integer, Hash)>] InlineResponse2002 data, response status code and response headers
|
|
57
|
+
def list_with_http_info(opts = {})
|
|
58
|
+
if @api_client.config.debugging
|
|
59
|
+
@api_client.config.logger.debug 'Calling API: ContentTagsApi.list ...'
|
|
60
|
+
end
|
|
61
|
+
# resource path
|
|
62
|
+
local_var_path = '/pulp/api/v3/content/container/tags/'
|
|
63
|
+
|
|
64
|
+
# query parameters
|
|
65
|
+
query_params = opts[:query_params] || {}
|
|
66
|
+
query_params[:'name'] = opts[:'name'] if !opts[:'name'].nil?
|
|
67
|
+
query_params[:'name__in'] = opts[:'name__in'] if !opts[:'name__in'].nil?
|
|
68
|
+
query_params[:'repository_version'] = opts[:'repository_version'] if !opts[:'repository_version'].nil?
|
|
69
|
+
query_params[:'repository_version_added'] = opts[:'repository_version_added'] if !opts[:'repository_version_added'].nil?
|
|
70
|
+
query_params[:'repository_version_removed'] = opts[:'repository_version_removed'] if !opts[:'repository_version_removed'].nil?
|
|
71
|
+
query_params[:'media_type'] = opts[:'media_type'] if !opts[:'media_type'].nil?
|
|
72
|
+
query_params[:'digest'] = opts[:'digest'] if !opts[:'digest'].nil?
|
|
73
|
+
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
|
74
|
+
query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
|
|
75
|
+
query_params[:'fields'] = opts[:'fields'] if !opts[:'fields'].nil?
|
|
76
|
+
query_params[:'exclude_fields'] = opts[:'exclude_fields'] if !opts[:'exclude_fields'].nil?
|
|
77
|
+
|
|
78
|
+
# header parameters
|
|
79
|
+
header_params = opts[:header_params] || {}
|
|
80
|
+
# HTTP header 'Accept' (if needed)
|
|
81
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
82
|
+
|
|
83
|
+
# form parameters
|
|
84
|
+
form_params = opts[:form_params] || {}
|
|
85
|
+
|
|
86
|
+
# http body (model)
|
|
87
|
+
post_body = opts[:body]
|
|
88
|
+
|
|
89
|
+
# return_type
|
|
90
|
+
return_type = opts[:return_type] || 'InlineResponse2002'
|
|
91
|
+
|
|
92
|
+
# auth_names
|
|
93
|
+
auth_names = opts[:auth_names] || ['Basic']
|
|
94
|
+
|
|
95
|
+
new_options = opts.merge(
|
|
96
|
+
:header_params => header_params,
|
|
97
|
+
:query_params => query_params,
|
|
98
|
+
:form_params => form_params,
|
|
99
|
+
:body => post_body,
|
|
100
|
+
:auth_names => auth_names,
|
|
101
|
+
:return_type => return_type
|
|
102
|
+
)
|
|
103
|
+
|
|
104
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
105
|
+
if @api_client.config.debugging
|
|
106
|
+
@api_client.config.logger.debug "API called: ContentTagsApi#list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
107
|
+
end
|
|
108
|
+
return data, status_code, headers
|
|
109
|
+
end
|
|
110
|
+
|
|
111
|
+
# Inspect a tag
|
|
112
|
+
# ViewSet for Tag.
|
|
113
|
+
# @param tag_href [String] URI of Tag. e.g.: /pulp/api/v3/content/container/tags/1/
|
|
114
|
+
# @param [Hash] opts the optional parameters
|
|
115
|
+
# @option opts [String] :fields A list of fields to include in the response.
|
|
116
|
+
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
|
117
|
+
# @return [ContainerTag]
|
|
118
|
+
def read(tag_href, opts = {})
|
|
119
|
+
data, _status_code, _headers = read_with_http_info(tag_href, opts)
|
|
120
|
+
data
|
|
121
|
+
end
|
|
122
|
+
|
|
123
|
+
# Inspect a tag
|
|
124
|
+
# ViewSet for Tag.
|
|
125
|
+
# @param tag_href [String] URI of Tag. e.g.: /pulp/api/v3/content/container/tags/1/
|
|
126
|
+
# @param [Hash] opts the optional parameters
|
|
127
|
+
# @option opts [String] :fields A list of fields to include in the response.
|
|
128
|
+
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
|
129
|
+
# @return [Array<(ContainerTag, Integer, Hash)>] ContainerTag data, response status code and response headers
|
|
130
|
+
def read_with_http_info(tag_href, opts = {})
|
|
131
|
+
if @api_client.config.debugging
|
|
132
|
+
@api_client.config.logger.debug 'Calling API: ContentTagsApi.read ...'
|
|
133
|
+
end
|
|
134
|
+
# verify the required parameter 'tag_href' is set
|
|
135
|
+
if @api_client.config.client_side_validation && tag_href.nil?
|
|
136
|
+
fail ArgumentError, "Missing the required parameter 'tag_href' when calling ContentTagsApi.read"
|
|
137
|
+
end
|
|
138
|
+
# resource path
|
|
139
|
+
local_var_path = '{tag_href}'.sub('{' + 'tag_href' + '}', CGI.escape(tag_href.to_s).gsub('%2F', '/'))
|
|
140
|
+
|
|
141
|
+
# query parameters
|
|
142
|
+
query_params = opts[:query_params] || {}
|
|
143
|
+
query_params[:'fields'] = opts[:'fields'] if !opts[:'fields'].nil?
|
|
144
|
+
query_params[:'exclude_fields'] = opts[:'exclude_fields'] if !opts[:'exclude_fields'].nil?
|
|
145
|
+
|
|
146
|
+
# header parameters
|
|
147
|
+
header_params = opts[:header_params] || {}
|
|
148
|
+
# HTTP header 'Accept' (if needed)
|
|
149
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
150
|
+
|
|
151
|
+
# form parameters
|
|
152
|
+
form_params = opts[:form_params] || {}
|
|
153
|
+
|
|
154
|
+
# http body (model)
|
|
155
|
+
post_body = opts[:body]
|
|
156
|
+
|
|
157
|
+
# return_type
|
|
158
|
+
return_type = opts[:return_type] || 'ContainerTag'
|
|
159
|
+
|
|
160
|
+
# auth_names
|
|
161
|
+
auth_names = opts[:auth_names] || ['Basic']
|
|
162
|
+
|
|
163
|
+
new_options = opts.merge(
|
|
164
|
+
:header_params => header_params,
|
|
165
|
+
:query_params => query_params,
|
|
166
|
+
:form_params => form_params,
|
|
167
|
+
:body => post_body,
|
|
168
|
+
:auth_names => auth_names,
|
|
169
|
+
:return_type => return_type
|
|
170
|
+
)
|
|
171
|
+
|
|
172
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
173
|
+
if @api_client.config.debugging
|
|
174
|
+
@api_client.config.logger.debug "API called: ContentTagsApi#read\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
175
|
+
end
|
|
176
|
+
return data, status_code, headers
|
|
177
|
+
end
|
|
178
|
+
end
|
|
179
|
+
end
|