pulp_container_client 2.0.0b2 → 2.0.0b3
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 +4 -4
- data/README.md +32 -20
- data/docs/{ContainerBlobRead.md → ContainerBlob.md} +2 -2
- data/docs/ContainerContainerDistribution.md +8 -8
- data/docs/{ContainerContainerRepositoryRead.md → ContainerContainerPushRepository.md} +2 -2
- data/docs/ContainerContentRedirectContentGuard.md +23 -0
- data/docs/{ContainerManifestRead.md → ContainerManifest.md} +2 -2
- data/docs/{ContainerTagRead.md → ContainerTag.md} +2 -2
- data/docs/ContentBlobsApi.md +2 -2
- data/docs/ContentManifestsApi.md +2 -2
- data/docs/ContentTagsApi.md +2 -2
- data/docs/ContentguardsContentRedirectApi.md +355 -0
- data/docs/DistributionsContainerApi.md +4 -4
- data/docs/InlineResponse200.md +1 -1
- data/docs/InlineResponse2001.md +1 -1
- data/docs/InlineResponse2002.md +1 -1
- data/docs/InlineResponse2003.md +1 -1
- data/docs/InlineResponse2004.md +1 -1
- data/docs/InlineResponse2005.md +1 -1
- data/docs/InlineResponse2006.md +1 -1
- data/docs/InlineResponse2007.md +23 -0
- data/docs/InlineResponse2008.md +23 -0
- data/docs/RemotesContainerApi.md +6 -6
- data/docs/RepositoriesContainerApi.md +6 -6
- data/docs/RepositoriesContainerPushApi.md +356 -0
- data/docs/RepositoriesContainerVersionsApi.md +285 -20
- data/docs/{V2Api.md → TokenApi.md} +5 -5
- data/lib/pulp_container_client.rb +10 -12
- data/lib/pulp_container_client/api/content_blobs_api.rb +3 -3
- data/lib/pulp_container_client/api/content_manifests_api.rb +3 -3
- data/lib/pulp_container_client/api/content_tags_api.rb +3 -3
- data/lib/pulp_container_client/api/contentguards_content_redirect_api.rb +431 -0
- data/lib/pulp_container_client/api/distributions_container_api.rb +6 -6
- data/lib/pulp_container_client/api/remotes_container_api.rb +9 -9
- data/lib/pulp_container_client/api/repositories_container_api.rb +9 -9
- data/lib/pulp_container_client/api/repositories_container_push_api.rb +433 -0
- data/lib/pulp_container_client/api/repositories_container_versions_api.rb +354 -34
- data/lib/pulp_container_client/api/{v2_api.rb → token_api.rb} +6 -6
- data/lib/pulp_container_client/models/{container_blob_read.rb → container_blob.rb} +3 -3
- data/lib/pulp_container_client/models/container_container_distribution.rb +60 -61
- data/lib/pulp_container_client/models/{container_container_repository_read.rb → container_container_push_repository.rb} +3 -3
- data/lib/pulp_container_client/models/container_content_redirect_content_guard.rb +276 -0
- data/lib/pulp_container_client/models/{container_manifest_read.rb → container_manifest.rb} +3 -3
- data/lib/pulp_container_client/models/{container_tag_read.rb → container_tag.rb} +3 -3
- data/lib/pulp_container_client/models/inline_response200.rb +1 -1
- data/lib/pulp_container_client/models/inline_response2001.rb +1 -1
- data/lib/pulp_container_client/models/inline_response2002.rb +1 -1
- data/lib/pulp_container_client/models/inline_response2003.rb +1 -1
- data/lib/pulp_container_client/models/inline_response2004.rb +1 -1
- data/lib/pulp_container_client/models/inline_response2005.rb +1 -1
- data/lib/pulp_container_client/models/inline_response2006.rb +1 -1
- data/lib/pulp_container_client/models/{repository_version_read.rb → inline_response2007.rb} +42 -39
- data/lib/pulp_container_client/models/inline_response2008.rb +247 -0
- data/lib/pulp_container_client/version.rb +1 -1
- data/spec/api/content_blobs_api_spec.rb +1 -1
- data/spec/api/content_manifests_api_spec.rb +1 -1
- data/spec/api/content_tags_api_spec.rb +1 -1
- data/spec/api/contentguards_content_redirect_api_spec.rb +117 -0
- data/spec/api/distributions_container_api_spec.rb +2 -2
- data/spec/api/remotes_container_api_spec.rb +3 -3
- data/spec/api/repositories_container_api_spec.rb +3 -3
- data/spec/api/repositories_container_push_api_spec.rb +117 -0
- data/spec/api/repositories_container_versions_api_spec.rb +77 -7
- data/spec/api/{v2_api_spec.rb → token_api_spec.rb} +7 -7
- data/spec/models/{container_blob_read_spec.rb → container_blob_spec.rb} +6 -6
- data/spec/models/container_container_distribution_spec.rb +7 -7
- data/spec/models/{container_container_repository_read_spec.rb → container_container_push_repository_spec.rb} +6 -6
- data/spec/models/{repository_version_read_spec.rb → container_content_redirect_content_guard_spec.rb} +8 -14
- data/spec/models/{container_manifest_read_spec.rb → container_manifest_spec.rb} +6 -6
- data/spec/models/{container_tag_read_spec.rb → container_tag_spec.rb} +6 -6
- data/spec/models/inline_response2007_spec.rb +59 -0
- data/spec/models/inline_response2008_spec.rb +59 -0
- metadata +42 -50
- data/docs/ContainerContainerDistributionRead.md +0 -31
- data/docs/ContainerContainerRemoteRead.md +0 -47
- data/docs/RepositoryVersionRead.md +0 -25
- data/docs/V2BlobsApi.md +0 -63
- data/docs/V2CatalogApi.md +0 -64
- data/docs/V2ListApi.md +0 -66
- data/docs/V2UploadsApi.md +0 -61
- data/lib/pulp_container_client/api/v2_blobs_api.rb +0 -88
- data/lib/pulp_container_client/api/v2_catalog_api.rb +0 -80
- data/lib/pulp_container_client/api/v2_list_api.rb +0 -86
- data/lib/pulp_container_client/api/v2_uploads_api.rb +0 -82
- data/lib/pulp_container_client/models/container_container_distribution_read.rb +0 -342
- data/lib/pulp_container_client/models/container_container_remote_read.rb +0 -578
- data/spec/api/v2_blobs_api_spec.rb +0 -48
- data/spec/api/v2_catalog_api_spec.rb +0 -47
- data/spec/api/v2_list_api_spec.rb +0 -48
- data/spec/api/v2_uploads_api_spec.rb +0 -47
- data/spec/models/container_container_distribution_read_spec.rb +0 -83
- data/spec/models/container_container_remote_read_spec.rb +0 -135
|
@@ -18,15 +18,14 @@ require 'pulp_container_client/configuration'
|
|
|
18
18
|
|
|
19
19
|
# Models
|
|
20
20
|
require 'pulp_container_client/models/async_operation_response'
|
|
21
|
-
require 'pulp_container_client/models/
|
|
21
|
+
require 'pulp_container_client/models/container_blob'
|
|
22
22
|
require 'pulp_container_client/models/container_container_distribution'
|
|
23
|
-
require 'pulp_container_client/models/
|
|
23
|
+
require 'pulp_container_client/models/container_container_push_repository'
|
|
24
24
|
require 'pulp_container_client/models/container_container_remote'
|
|
25
|
-
require 'pulp_container_client/models/container_container_remote_read'
|
|
26
25
|
require 'pulp_container_client/models/container_container_repository'
|
|
27
|
-
require 'pulp_container_client/models/
|
|
28
|
-
require 'pulp_container_client/models/
|
|
29
|
-
require 'pulp_container_client/models/
|
|
26
|
+
require 'pulp_container_client/models/container_content_redirect_content_guard'
|
|
27
|
+
require 'pulp_container_client/models/container_manifest'
|
|
28
|
+
require 'pulp_container_client/models/container_tag'
|
|
30
29
|
require 'pulp_container_client/models/content_summary'
|
|
31
30
|
require 'pulp_container_client/models/inline_response200'
|
|
32
31
|
require 'pulp_container_client/models/inline_response2001'
|
|
@@ -35,11 +34,12 @@ require 'pulp_container_client/models/inline_response2003'
|
|
|
35
34
|
require 'pulp_container_client/models/inline_response2004'
|
|
36
35
|
require 'pulp_container_client/models/inline_response2005'
|
|
37
36
|
require 'pulp_container_client/models/inline_response2006'
|
|
37
|
+
require 'pulp_container_client/models/inline_response2007'
|
|
38
|
+
require 'pulp_container_client/models/inline_response2008'
|
|
38
39
|
require 'pulp_container_client/models/manifest_copy'
|
|
39
40
|
require 'pulp_container_client/models/recursive_manage'
|
|
40
41
|
require 'pulp_container_client/models/repository_sync_url'
|
|
41
42
|
require 'pulp_container_client/models/repository_version'
|
|
42
|
-
require 'pulp_container_client/models/repository_version_read'
|
|
43
43
|
require 'pulp_container_client/models/tag_copy'
|
|
44
44
|
require 'pulp_container_client/models/tag_image'
|
|
45
45
|
require 'pulp_container_client/models/un_tag_image'
|
|
@@ -48,15 +48,13 @@ require 'pulp_container_client/models/un_tag_image'
|
|
|
48
48
|
require 'pulp_container_client/api/content_blobs_api'
|
|
49
49
|
require 'pulp_container_client/api/content_manifests_api'
|
|
50
50
|
require 'pulp_container_client/api/content_tags_api'
|
|
51
|
+
require 'pulp_container_client/api/contentguards_content_redirect_api'
|
|
51
52
|
require 'pulp_container_client/api/distributions_container_api'
|
|
52
53
|
require 'pulp_container_client/api/remotes_container_api'
|
|
53
54
|
require 'pulp_container_client/api/repositories_container_api'
|
|
55
|
+
require 'pulp_container_client/api/repositories_container_push_api'
|
|
54
56
|
require 'pulp_container_client/api/repositories_container_versions_api'
|
|
55
|
-
require 'pulp_container_client/api/
|
|
56
|
-
require 'pulp_container_client/api/v2_blobs_api'
|
|
57
|
-
require 'pulp_container_client/api/v2_catalog_api'
|
|
58
|
-
require 'pulp_container_client/api/v2_list_api'
|
|
59
|
-
require 'pulp_container_client/api/v2_uploads_api'
|
|
57
|
+
require 'pulp_container_client/api/token_api'
|
|
60
58
|
|
|
61
59
|
module PulpContainerClient
|
|
62
60
|
class << self
|
|
@@ -114,7 +114,7 @@ module PulpContainerClient
|
|
|
114
114
|
# @param [Hash] opts the optional parameters
|
|
115
115
|
# @option opts [String] :fields A list of fields to include in the response.
|
|
116
116
|
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
|
117
|
-
# @return [
|
|
117
|
+
# @return [ContainerBlob]
|
|
118
118
|
def read(blob_href, opts = {})
|
|
119
119
|
data, _status_code, _headers = read_with_http_info(blob_href, opts)
|
|
120
120
|
data
|
|
@@ -126,7 +126,7 @@ module PulpContainerClient
|
|
|
126
126
|
# @param [Hash] opts the optional parameters
|
|
127
127
|
# @option opts [String] :fields A list of fields to include in the response.
|
|
128
128
|
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
|
129
|
-
# @return [Array<(
|
|
129
|
+
# @return [Array<(ContainerBlob, Integer, Hash)>] ContainerBlob data, response status code and response headers
|
|
130
130
|
def read_with_http_info(blob_href, opts = {})
|
|
131
131
|
if @api_client.config.debugging
|
|
132
132
|
@api_client.config.logger.debug 'Calling API: ContentBlobsApi.read ...'
|
|
@@ -155,7 +155,7 @@ module PulpContainerClient
|
|
|
155
155
|
post_body = opts[:body]
|
|
156
156
|
|
|
157
157
|
# return_type
|
|
158
|
-
return_type = opts[:return_type] || '
|
|
158
|
+
return_type = opts[:return_type] || 'ContainerBlob'
|
|
159
159
|
|
|
160
160
|
# auth_names
|
|
161
161
|
auth_names = opts[:auth_names] || ['Basic']
|
|
@@ -114,7 +114,7 @@ module PulpContainerClient
|
|
|
114
114
|
# @param [Hash] opts the optional parameters
|
|
115
115
|
# @option opts [String] :fields A list of fields to include in the response.
|
|
116
116
|
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
|
117
|
-
# @return [
|
|
117
|
+
# @return [ContainerManifest]
|
|
118
118
|
def read(manifest_href, opts = {})
|
|
119
119
|
data, _status_code, _headers = read_with_http_info(manifest_href, opts)
|
|
120
120
|
data
|
|
@@ -126,7 +126,7 @@ module PulpContainerClient
|
|
|
126
126
|
# @param [Hash] opts the optional parameters
|
|
127
127
|
# @option opts [String] :fields A list of fields to include in the response.
|
|
128
128
|
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
|
129
|
-
# @return [Array<(
|
|
129
|
+
# @return [Array<(ContainerManifest, Integer, Hash)>] ContainerManifest data, response status code and response headers
|
|
130
130
|
def read_with_http_info(manifest_href, opts = {})
|
|
131
131
|
if @api_client.config.debugging
|
|
132
132
|
@api_client.config.logger.debug 'Calling API: ContentManifestsApi.read ...'
|
|
@@ -155,7 +155,7 @@ module PulpContainerClient
|
|
|
155
155
|
post_body = opts[:body]
|
|
156
156
|
|
|
157
157
|
# return_type
|
|
158
|
-
return_type = opts[:return_type] || '
|
|
158
|
+
return_type = opts[:return_type] || 'ContainerManifest'
|
|
159
159
|
|
|
160
160
|
# auth_names
|
|
161
161
|
auth_names = opts[:auth_names] || ['Basic']
|
|
@@ -117,7 +117,7 @@ module PulpContainerClient
|
|
|
117
117
|
# @param [Hash] opts the optional parameters
|
|
118
118
|
# @option opts [String] :fields A list of fields to include in the response.
|
|
119
119
|
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
|
120
|
-
# @return [
|
|
120
|
+
# @return [ContainerTag]
|
|
121
121
|
def read(tag_href, opts = {})
|
|
122
122
|
data, _status_code, _headers = read_with_http_info(tag_href, opts)
|
|
123
123
|
data
|
|
@@ -129,7 +129,7 @@ module PulpContainerClient
|
|
|
129
129
|
# @param [Hash] opts the optional parameters
|
|
130
130
|
# @option opts [String] :fields A list of fields to include in the response.
|
|
131
131
|
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
|
132
|
-
# @return [Array<(
|
|
132
|
+
# @return [Array<(ContainerTag, Integer, Hash)>] ContainerTag data, response status code and response headers
|
|
133
133
|
def read_with_http_info(tag_href, opts = {})
|
|
134
134
|
if @api_client.config.debugging
|
|
135
135
|
@api_client.config.logger.debug 'Calling API: ContentTagsApi.read ...'
|
|
@@ -158,7 +158,7 @@ module PulpContainerClient
|
|
|
158
158
|
post_body = opts[:body]
|
|
159
159
|
|
|
160
160
|
# return_type
|
|
161
|
-
return_type = opts[:return_type] || '
|
|
161
|
+
return_type = opts[:return_type] || 'ContainerTag'
|
|
162
162
|
|
|
163
163
|
# auth_names
|
|
164
164
|
auth_names = opts[:auth_names] || ['Basic']
|
|
@@ -0,0 +1,431 @@
|
|
|
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.3
|
|
10
|
+
|
|
11
|
+
=end
|
|
12
|
+
|
|
13
|
+
require 'cgi'
|
|
14
|
+
|
|
15
|
+
module PulpContainerClient
|
|
16
|
+
class ContentguardsContentRedirectApi
|
|
17
|
+
attr_accessor :api_client
|
|
18
|
+
|
|
19
|
+
def initialize(api_client = ApiClient.default)
|
|
20
|
+
@api_client = api_client
|
|
21
|
+
end
|
|
22
|
+
# Create a content redirect content guard
|
|
23
|
+
# Content guard to protect preauthenticated redirects to the content app.
|
|
24
|
+
# @param data [ContainerContentRedirectContentGuard]
|
|
25
|
+
# @param [Hash] opts the optional parameters
|
|
26
|
+
# @return [ContainerContentRedirectContentGuard]
|
|
27
|
+
def create(data, opts = {})
|
|
28
|
+
data, _status_code, _headers = create_with_http_info(data, opts)
|
|
29
|
+
data
|
|
30
|
+
end
|
|
31
|
+
|
|
32
|
+
# Create a content redirect content guard
|
|
33
|
+
# Content guard to protect preauthenticated redirects to the content app.
|
|
34
|
+
# @param data [ContainerContentRedirectContentGuard]
|
|
35
|
+
# @param [Hash] opts the optional parameters
|
|
36
|
+
# @return [Array<(ContainerContentRedirectContentGuard, Integer, Hash)>] ContainerContentRedirectContentGuard data, response status code and response headers
|
|
37
|
+
def create_with_http_info(data, opts = {})
|
|
38
|
+
if @api_client.config.debugging
|
|
39
|
+
@api_client.config.logger.debug 'Calling API: ContentguardsContentRedirectApi.create ...'
|
|
40
|
+
end
|
|
41
|
+
# verify the required parameter 'data' is set
|
|
42
|
+
if @api_client.config.client_side_validation && data.nil?
|
|
43
|
+
fail ArgumentError, "Missing the required parameter 'data' when calling ContentguardsContentRedirectApi.create"
|
|
44
|
+
end
|
|
45
|
+
# resource path
|
|
46
|
+
local_var_path = '/pulp/api/v3/contentguards/container/content_redirect/'
|
|
47
|
+
|
|
48
|
+
# query parameters
|
|
49
|
+
query_params = opts[:query_params] || {}
|
|
50
|
+
|
|
51
|
+
# header parameters
|
|
52
|
+
header_params = opts[:header_params] || {}
|
|
53
|
+
# HTTP header 'Accept' (if needed)
|
|
54
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
55
|
+
# HTTP header 'Content-Type'
|
|
56
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
|
57
|
+
|
|
58
|
+
# form parameters
|
|
59
|
+
form_params = opts[:form_params] || {}
|
|
60
|
+
|
|
61
|
+
# http body (model)
|
|
62
|
+
post_body = opts[:body] || @api_client.object_to_http_body(data)
|
|
63
|
+
|
|
64
|
+
# return_type
|
|
65
|
+
return_type = opts[:return_type] || 'ContainerContentRedirectContentGuard'
|
|
66
|
+
|
|
67
|
+
# auth_names
|
|
68
|
+
auth_names = opts[:auth_names] || ['Basic']
|
|
69
|
+
|
|
70
|
+
new_options = opts.merge(
|
|
71
|
+
:header_params => header_params,
|
|
72
|
+
:query_params => query_params,
|
|
73
|
+
:form_params => form_params,
|
|
74
|
+
:body => post_body,
|
|
75
|
+
:auth_names => auth_names,
|
|
76
|
+
:return_type => return_type
|
|
77
|
+
)
|
|
78
|
+
|
|
79
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
|
80
|
+
if @api_client.config.debugging
|
|
81
|
+
@api_client.config.logger.debug "API called: ContentguardsContentRedirectApi#create\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
82
|
+
end
|
|
83
|
+
return data, status_code, headers
|
|
84
|
+
end
|
|
85
|
+
|
|
86
|
+
# Delete a content redirect content guard
|
|
87
|
+
# Content guard to protect preauthenticated redirects to the content app.
|
|
88
|
+
# @param content_redirect_content_guard_href [String] URI of Content Redirect Content Guard. e.g.: /pulp/api/v3/contentguards/container/content_redirect/1/
|
|
89
|
+
# @param [Hash] opts the optional parameters
|
|
90
|
+
# @return [nil]
|
|
91
|
+
def delete(content_redirect_content_guard_href, opts = {})
|
|
92
|
+
delete_with_http_info(content_redirect_content_guard_href, opts)
|
|
93
|
+
nil
|
|
94
|
+
end
|
|
95
|
+
|
|
96
|
+
# Delete a content redirect content guard
|
|
97
|
+
# Content guard to protect preauthenticated redirects to the content app.
|
|
98
|
+
# @param content_redirect_content_guard_href [String] URI of Content Redirect Content Guard. e.g.: /pulp/api/v3/contentguards/container/content_redirect/1/
|
|
99
|
+
# @param [Hash] opts the optional parameters
|
|
100
|
+
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
|
101
|
+
def delete_with_http_info(content_redirect_content_guard_href, opts = {})
|
|
102
|
+
if @api_client.config.debugging
|
|
103
|
+
@api_client.config.logger.debug 'Calling API: ContentguardsContentRedirectApi.delete ...'
|
|
104
|
+
end
|
|
105
|
+
# verify the required parameter 'content_redirect_content_guard_href' is set
|
|
106
|
+
if @api_client.config.client_side_validation && content_redirect_content_guard_href.nil?
|
|
107
|
+
fail ArgumentError, "Missing the required parameter 'content_redirect_content_guard_href' when calling ContentguardsContentRedirectApi.delete"
|
|
108
|
+
end
|
|
109
|
+
# resource path
|
|
110
|
+
local_var_path = '{content_redirect_content_guard_href}'.sub('{' + 'content_redirect_content_guard_href' + '}', CGI.escape(content_redirect_content_guard_href.to_s).gsub('%2F', '/'))
|
|
111
|
+
|
|
112
|
+
# query parameters
|
|
113
|
+
query_params = opts[:query_params] || {}
|
|
114
|
+
|
|
115
|
+
# header parameters
|
|
116
|
+
header_params = opts[:header_params] || {}
|
|
117
|
+
|
|
118
|
+
# form parameters
|
|
119
|
+
form_params = opts[:form_params] || {}
|
|
120
|
+
|
|
121
|
+
# http body (model)
|
|
122
|
+
post_body = opts[:body]
|
|
123
|
+
|
|
124
|
+
# return_type
|
|
125
|
+
return_type = opts[:return_type]
|
|
126
|
+
|
|
127
|
+
# auth_names
|
|
128
|
+
auth_names = opts[:auth_names] || ['Basic']
|
|
129
|
+
|
|
130
|
+
new_options = opts.merge(
|
|
131
|
+
:header_params => header_params,
|
|
132
|
+
:query_params => query_params,
|
|
133
|
+
:form_params => form_params,
|
|
134
|
+
:body => post_body,
|
|
135
|
+
:auth_names => auth_names,
|
|
136
|
+
:return_type => return_type
|
|
137
|
+
)
|
|
138
|
+
|
|
139
|
+
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
|
|
140
|
+
if @api_client.config.debugging
|
|
141
|
+
@api_client.config.logger.debug "API called: ContentguardsContentRedirectApi#delete\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
142
|
+
end
|
|
143
|
+
return data, status_code, headers
|
|
144
|
+
end
|
|
145
|
+
|
|
146
|
+
# List content redirect content guards
|
|
147
|
+
# Content guard to protect preauthenticated redirects to the content app.
|
|
148
|
+
# @param [Hash] opts the optional parameters
|
|
149
|
+
# @option opts [String] :ordering Which field to use when ordering the results.
|
|
150
|
+
# @option opts [String] :name
|
|
151
|
+
# @option opts [String] :name__in Filter results where name is in a comma-separated list of values
|
|
152
|
+
# @option opts [Integer] :limit Number of results to return per page.
|
|
153
|
+
# @option opts [Integer] :offset The initial index from which to return the results.
|
|
154
|
+
# @option opts [String] :fields A list of fields to include in the response.
|
|
155
|
+
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
|
156
|
+
# @return [InlineResponse2003]
|
|
157
|
+
def list(opts = {})
|
|
158
|
+
data, _status_code, _headers = list_with_http_info(opts)
|
|
159
|
+
data
|
|
160
|
+
end
|
|
161
|
+
|
|
162
|
+
# List content redirect content guards
|
|
163
|
+
# Content guard to protect preauthenticated redirects to the content app.
|
|
164
|
+
# @param [Hash] opts the optional parameters
|
|
165
|
+
# @option opts [String] :ordering Which field to use when ordering the results.
|
|
166
|
+
# @option opts [String] :name
|
|
167
|
+
# @option opts [String] :name__in Filter results where name is in a comma-separated list of values
|
|
168
|
+
# @option opts [Integer] :limit Number of results to return per page.
|
|
169
|
+
# @option opts [Integer] :offset The initial index from which to return the results.
|
|
170
|
+
# @option opts [String] :fields A list of fields to include in the response.
|
|
171
|
+
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
|
172
|
+
# @return [Array<(InlineResponse2003, Integer, Hash)>] InlineResponse2003 data, response status code and response headers
|
|
173
|
+
def list_with_http_info(opts = {})
|
|
174
|
+
if @api_client.config.debugging
|
|
175
|
+
@api_client.config.logger.debug 'Calling API: ContentguardsContentRedirectApi.list ...'
|
|
176
|
+
end
|
|
177
|
+
# resource path
|
|
178
|
+
local_var_path = '/pulp/api/v3/contentguards/container/content_redirect/'
|
|
179
|
+
|
|
180
|
+
# query parameters
|
|
181
|
+
query_params = opts[:query_params] || {}
|
|
182
|
+
query_params[:'ordering'] = opts[:'ordering'] if !opts[:'ordering'].nil?
|
|
183
|
+
query_params[:'name'] = opts[:'name'] if !opts[:'name'].nil?
|
|
184
|
+
query_params[:'name__in'] = opts[:'name__in'] if !opts[:'name__in'].nil?
|
|
185
|
+
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
|
186
|
+
query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
|
|
187
|
+
query_params[:'fields'] = opts[:'fields'] if !opts[:'fields'].nil?
|
|
188
|
+
query_params[:'exclude_fields'] = opts[:'exclude_fields'] if !opts[:'exclude_fields'].nil?
|
|
189
|
+
|
|
190
|
+
# header parameters
|
|
191
|
+
header_params = opts[:header_params] || {}
|
|
192
|
+
# HTTP header 'Accept' (if needed)
|
|
193
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
194
|
+
|
|
195
|
+
# form parameters
|
|
196
|
+
form_params = opts[:form_params] || {}
|
|
197
|
+
|
|
198
|
+
# http body (model)
|
|
199
|
+
post_body = opts[:body]
|
|
200
|
+
|
|
201
|
+
# return_type
|
|
202
|
+
return_type = opts[:return_type] || 'InlineResponse2003'
|
|
203
|
+
|
|
204
|
+
# auth_names
|
|
205
|
+
auth_names = opts[:auth_names] || ['Basic']
|
|
206
|
+
|
|
207
|
+
new_options = opts.merge(
|
|
208
|
+
:header_params => header_params,
|
|
209
|
+
:query_params => query_params,
|
|
210
|
+
:form_params => form_params,
|
|
211
|
+
:body => post_body,
|
|
212
|
+
:auth_names => auth_names,
|
|
213
|
+
:return_type => return_type
|
|
214
|
+
)
|
|
215
|
+
|
|
216
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
217
|
+
if @api_client.config.debugging
|
|
218
|
+
@api_client.config.logger.debug "API called: ContentguardsContentRedirectApi#list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
219
|
+
end
|
|
220
|
+
return data, status_code, headers
|
|
221
|
+
end
|
|
222
|
+
|
|
223
|
+
# Partially update a content redirect content guard
|
|
224
|
+
# Content guard to protect preauthenticated redirects to the content app.
|
|
225
|
+
# @param content_redirect_content_guard_href [String] URI of Content Redirect Content Guard. e.g.: /pulp/api/v3/contentguards/container/content_redirect/1/
|
|
226
|
+
# @param data [ContainerContentRedirectContentGuard]
|
|
227
|
+
# @param [Hash] opts the optional parameters
|
|
228
|
+
# @return [ContainerContentRedirectContentGuard]
|
|
229
|
+
def partial_update(content_redirect_content_guard_href, data, opts = {})
|
|
230
|
+
data, _status_code, _headers = partial_update_with_http_info(content_redirect_content_guard_href, data, opts)
|
|
231
|
+
data
|
|
232
|
+
end
|
|
233
|
+
|
|
234
|
+
# Partially update a content redirect content guard
|
|
235
|
+
# Content guard to protect preauthenticated redirects to the content app.
|
|
236
|
+
# @param content_redirect_content_guard_href [String] URI of Content Redirect Content Guard. e.g.: /pulp/api/v3/contentguards/container/content_redirect/1/
|
|
237
|
+
# @param data [ContainerContentRedirectContentGuard]
|
|
238
|
+
# @param [Hash] opts the optional parameters
|
|
239
|
+
# @return [Array<(ContainerContentRedirectContentGuard, Integer, Hash)>] ContainerContentRedirectContentGuard data, response status code and response headers
|
|
240
|
+
def partial_update_with_http_info(content_redirect_content_guard_href, data, opts = {})
|
|
241
|
+
if @api_client.config.debugging
|
|
242
|
+
@api_client.config.logger.debug 'Calling API: ContentguardsContentRedirectApi.partial_update ...'
|
|
243
|
+
end
|
|
244
|
+
# verify the required parameter 'content_redirect_content_guard_href' is set
|
|
245
|
+
if @api_client.config.client_side_validation && content_redirect_content_guard_href.nil?
|
|
246
|
+
fail ArgumentError, "Missing the required parameter 'content_redirect_content_guard_href' when calling ContentguardsContentRedirectApi.partial_update"
|
|
247
|
+
end
|
|
248
|
+
# verify the required parameter 'data' is set
|
|
249
|
+
if @api_client.config.client_side_validation && data.nil?
|
|
250
|
+
fail ArgumentError, "Missing the required parameter 'data' when calling ContentguardsContentRedirectApi.partial_update"
|
|
251
|
+
end
|
|
252
|
+
# resource path
|
|
253
|
+
local_var_path = '{content_redirect_content_guard_href}'.sub('{' + 'content_redirect_content_guard_href' + '}', CGI.escape(content_redirect_content_guard_href.to_s).gsub('%2F', '/'))
|
|
254
|
+
|
|
255
|
+
# query parameters
|
|
256
|
+
query_params = opts[:query_params] || {}
|
|
257
|
+
|
|
258
|
+
# header parameters
|
|
259
|
+
header_params = opts[:header_params] || {}
|
|
260
|
+
# HTTP header 'Accept' (if needed)
|
|
261
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
262
|
+
# HTTP header 'Content-Type'
|
|
263
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
|
264
|
+
|
|
265
|
+
# form parameters
|
|
266
|
+
form_params = opts[:form_params] || {}
|
|
267
|
+
|
|
268
|
+
# http body (model)
|
|
269
|
+
post_body = opts[:body] || @api_client.object_to_http_body(data)
|
|
270
|
+
|
|
271
|
+
# return_type
|
|
272
|
+
return_type = opts[:return_type] || 'ContainerContentRedirectContentGuard'
|
|
273
|
+
|
|
274
|
+
# auth_names
|
|
275
|
+
auth_names = opts[:auth_names] || ['Basic']
|
|
276
|
+
|
|
277
|
+
new_options = opts.merge(
|
|
278
|
+
:header_params => header_params,
|
|
279
|
+
:query_params => query_params,
|
|
280
|
+
:form_params => form_params,
|
|
281
|
+
:body => post_body,
|
|
282
|
+
:auth_names => auth_names,
|
|
283
|
+
:return_type => return_type
|
|
284
|
+
)
|
|
285
|
+
|
|
286
|
+
data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, new_options)
|
|
287
|
+
if @api_client.config.debugging
|
|
288
|
+
@api_client.config.logger.debug "API called: ContentguardsContentRedirectApi#partial_update\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
289
|
+
end
|
|
290
|
+
return data, status_code, headers
|
|
291
|
+
end
|
|
292
|
+
|
|
293
|
+
# Inspect a content redirect content guard
|
|
294
|
+
# Content guard to protect preauthenticated redirects to the content app.
|
|
295
|
+
# @param content_redirect_content_guard_href [String] URI of Content Redirect Content Guard. e.g.: /pulp/api/v3/contentguards/container/content_redirect/1/
|
|
296
|
+
# @param [Hash] opts the optional parameters
|
|
297
|
+
# @option opts [String] :fields A list of fields to include in the response.
|
|
298
|
+
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
|
299
|
+
# @return [ContainerContentRedirectContentGuard]
|
|
300
|
+
def read(content_redirect_content_guard_href, opts = {})
|
|
301
|
+
data, _status_code, _headers = read_with_http_info(content_redirect_content_guard_href, opts)
|
|
302
|
+
data
|
|
303
|
+
end
|
|
304
|
+
|
|
305
|
+
# Inspect a content redirect content guard
|
|
306
|
+
# Content guard to protect preauthenticated redirects to the content app.
|
|
307
|
+
# @param content_redirect_content_guard_href [String] URI of Content Redirect Content Guard. e.g.: /pulp/api/v3/contentguards/container/content_redirect/1/
|
|
308
|
+
# @param [Hash] opts the optional parameters
|
|
309
|
+
# @option opts [String] :fields A list of fields to include in the response.
|
|
310
|
+
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
|
311
|
+
# @return [Array<(ContainerContentRedirectContentGuard, Integer, Hash)>] ContainerContentRedirectContentGuard data, response status code and response headers
|
|
312
|
+
def read_with_http_info(content_redirect_content_guard_href, opts = {})
|
|
313
|
+
if @api_client.config.debugging
|
|
314
|
+
@api_client.config.logger.debug 'Calling API: ContentguardsContentRedirectApi.read ...'
|
|
315
|
+
end
|
|
316
|
+
# verify the required parameter 'content_redirect_content_guard_href' is set
|
|
317
|
+
if @api_client.config.client_side_validation && content_redirect_content_guard_href.nil?
|
|
318
|
+
fail ArgumentError, "Missing the required parameter 'content_redirect_content_guard_href' when calling ContentguardsContentRedirectApi.read"
|
|
319
|
+
end
|
|
320
|
+
# resource path
|
|
321
|
+
local_var_path = '{content_redirect_content_guard_href}'.sub('{' + 'content_redirect_content_guard_href' + '}', CGI.escape(content_redirect_content_guard_href.to_s).gsub('%2F', '/'))
|
|
322
|
+
|
|
323
|
+
# query parameters
|
|
324
|
+
query_params = opts[:query_params] || {}
|
|
325
|
+
query_params[:'fields'] = opts[:'fields'] if !opts[:'fields'].nil?
|
|
326
|
+
query_params[:'exclude_fields'] = opts[:'exclude_fields'] if !opts[:'exclude_fields'].nil?
|
|
327
|
+
|
|
328
|
+
# header parameters
|
|
329
|
+
header_params = opts[:header_params] || {}
|
|
330
|
+
# HTTP header 'Accept' (if needed)
|
|
331
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
332
|
+
|
|
333
|
+
# form parameters
|
|
334
|
+
form_params = opts[:form_params] || {}
|
|
335
|
+
|
|
336
|
+
# http body (model)
|
|
337
|
+
post_body = opts[:body]
|
|
338
|
+
|
|
339
|
+
# return_type
|
|
340
|
+
return_type = opts[:return_type] || 'ContainerContentRedirectContentGuard'
|
|
341
|
+
|
|
342
|
+
# auth_names
|
|
343
|
+
auth_names = opts[:auth_names] || ['Basic']
|
|
344
|
+
|
|
345
|
+
new_options = opts.merge(
|
|
346
|
+
:header_params => header_params,
|
|
347
|
+
:query_params => query_params,
|
|
348
|
+
:form_params => form_params,
|
|
349
|
+
:body => post_body,
|
|
350
|
+
:auth_names => auth_names,
|
|
351
|
+
:return_type => return_type
|
|
352
|
+
)
|
|
353
|
+
|
|
354
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
|
355
|
+
if @api_client.config.debugging
|
|
356
|
+
@api_client.config.logger.debug "API called: ContentguardsContentRedirectApi#read\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
357
|
+
end
|
|
358
|
+
return data, status_code, headers
|
|
359
|
+
end
|
|
360
|
+
|
|
361
|
+
# Update a content redirect content guard
|
|
362
|
+
# Content guard to protect preauthenticated redirects to the content app.
|
|
363
|
+
# @param content_redirect_content_guard_href [String] URI of Content Redirect Content Guard. e.g.: /pulp/api/v3/contentguards/container/content_redirect/1/
|
|
364
|
+
# @param data [ContainerContentRedirectContentGuard]
|
|
365
|
+
# @param [Hash] opts the optional parameters
|
|
366
|
+
# @return [ContainerContentRedirectContentGuard]
|
|
367
|
+
def update(content_redirect_content_guard_href, data, opts = {})
|
|
368
|
+
data, _status_code, _headers = update_with_http_info(content_redirect_content_guard_href, data, opts)
|
|
369
|
+
data
|
|
370
|
+
end
|
|
371
|
+
|
|
372
|
+
# Update a content redirect content guard
|
|
373
|
+
# Content guard to protect preauthenticated redirects to the content app.
|
|
374
|
+
# @param content_redirect_content_guard_href [String] URI of Content Redirect Content Guard. e.g.: /pulp/api/v3/contentguards/container/content_redirect/1/
|
|
375
|
+
# @param data [ContainerContentRedirectContentGuard]
|
|
376
|
+
# @param [Hash] opts the optional parameters
|
|
377
|
+
# @return [Array<(ContainerContentRedirectContentGuard, Integer, Hash)>] ContainerContentRedirectContentGuard data, response status code and response headers
|
|
378
|
+
def update_with_http_info(content_redirect_content_guard_href, data, opts = {})
|
|
379
|
+
if @api_client.config.debugging
|
|
380
|
+
@api_client.config.logger.debug 'Calling API: ContentguardsContentRedirectApi.update ...'
|
|
381
|
+
end
|
|
382
|
+
# verify the required parameter 'content_redirect_content_guard_href' is set
|
|
383
|
+
if @api_client.config.client_side_validation && content_redirect_content_guard_href.nil?
|
|
384
|
+
fail ArgumentError, "Missing the required parameter 'content_redirect_content_guard_href' when calling ContentguardsContentRedirectApi.update"
|
|
385
|
+
end
|
|
386
|
+
# verify the required parameter 'data' is set
|
|
387
|
+
if @api_client.config.client_side_validation && data.nil?
|
|
388
|
+
fail ArgumentError, "Missing the required parameter 'data' when calling ContentguardsContentRedirectApi.update"
|
|
389
|
+
end
|
|
390
|
+
# resource path
|
|
391
|
+
local_var_path = '{content_redirect_content_guard_href}'.sub('{' + 'content_redirect_content_guard_href' + '}', CGI.escape(content_redirect_content_guard_href.to_s).gsub('%2F', '/'))
|
|
392
|
+
|
|
393
|
+
# query parameters
|
|
394
|
+
query_params = opts[:query_params] || {}
|
|
395
|
+
|
|
396
|
+
# header parameters
|
|
397
|
+
header_params = opts[:header_params] || {}
|
|
398
|
+
# HTTP header 'Accept' (if needed)
|
|
399
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
400
|
+
# HTTP header 'Content-Type'
|
|
401
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
|
402
|
+
|
|
403
|
+
# form parameters
|
|
404
|
+
form_params = opts[:form_params] || {}
|
|
405
|
+
|
|
406
|
+
# http body (model)
|
|
407
|
+
post_body = opts[:body] || @api_client.object_to_http_body(data)
|
|
408
|
+
|
|
409
|
+
# return_type
|
|
410
|
+
return_type = opts[:return_type] || 'ContainerContentRedirectContentGuard'
|
|
411
|
+
|
|
412
|
+
# auth_names
|
|
413
|
+
auth_names = opts[:auth_names] || ['Basic']
|
|
414
|
+
|
|
415
|
+
new_options = opts.merge(
|
|
416
|
+
:header_params => header_params,
|
|
417
|
+
:query_params => query_params,
|
|
418
|
+
:form_params => form_params,
|
|
419
|
+
:body => post_body,
|
|
420
|
+
:auth_names => auth_names,
|
|
421
|
+
:return_type => return_type
|
|
422
|
+
)
|
|
423
|
+
|
|
424
|
+
data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
|
|
425
|
+
if @api_client.config.debugging
|
|
426
|
+
@api_client.config.logger.debug "API called: ContentguardsContentRedirectApi#update\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
427
|
+
end
|
|
428
|
+
return data, status_code, headers
|
|
429
|
+
end
|
|
430
|
+
end
|
|
431
|
+
end
|