pulp_container_client 1.4.0.dev01590601231 → 2.0.0b1
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 +9 -4
- data/docs/ContainerContainerDistribution.md +8 -8
- data/docs/ContainerContainerDistributionRead.md +8 -8
- data/docs/V2Api.md +64 -0
- data/docs/V2BlobsApi.md +63 -0
- data/docs/V2CatalogApi.md +64 -0
- data/docs/V2ListApi.md +66 -0
- data/docs/V2UploadsApi.md +61 -0
- data/lib/pulp_container_client.rb +5 -0
- data/lib/pulp_container_client/api/v2_api.rb +80 -0
- data/lib/pulp_container_client/api/v2_blobs_api.rb +88 -0
- data/lib/pulp_container_client/api/v2_catalog_api.rb +80 -0
- data/lib/pulp_container_client/api/v2_list_api.rb +86 -0
- data/lib/pulp_container_client/api/v2_uploads_api.rb +82 -0
- data/lib/pulp_container_client/models/container_container_distribution.rb +34 -34
- data/lib/pulp_container_client/models/container_container_distribution_read.rb +34 -34
- data/lib/pulp_container_client/version.rb +1 -1
- data/spec/api/v2_api_spec.rb +47 -0
- data/spec/api/v2_blobs_api_spec.rb +48 -0
- data/spec/api/v2_catalog_api_spec.rb +47 -0
- data/spec/api/v2_list_api_spec.rb +48 -0
- data/spec/api/v2_uploads_api_spec.rb +47 -0
- data/spec/models/container_container_distribution_read_spec.rb +6 -6
- data/spec/models/container_container_distribution_spec.rb +6 -6
- metadata +22 -2
@@ -0,0 +1,80 @@
|
|
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 V2Api
|
17
|
+
attr_accessor :api_client
|
18
|
+
|
19
|
+
def initialize(api_client = ApiClient.default)
|
20
|
+
@api_client = api_client
|
21
|
+
end
|
22
|
+
# Handles GET requests for the /v2/ endpoint.
|
23
|
+
# @param [Hash] opts the optional parameters
|
24
|
+
# @option opts [String] :fields A list of fields to include in the response.
|
25
|
+
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
26
|
+
# @return [nil]
|
27
|
+
def list(opts = {})
|
28
|
+
list_with_http_info(opts)
|
29
|
+
nil
|
30
|
+
end
|
31
|
+
|
32
|
+
# Handles GET requests for the /v2/ endpoint.
|
33
|
+
# @param [Hash] opts the optional parameters
|
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 [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
37
|
+
def list_with_http_info(opts = {})
|
38
|
+
if @api_client.config.debugging
|
39
|
+
@api_client.config.logger.debug 'Calling API: V2Api.list ...'
|
40
|
+
end
|
41
|
+
# resource path
|
42
|
+
local_var_path = '/v2/'
|
43
|
+
|
44
|
+
# query parameters
|
45
|
+
query_params = opts[:query_params] || {}
|
46
|
+
query_params[:'fields'] = opts[:'fields'] if !opts[:'fields'].nil?
|
47
|
+
query_params[:'exclude_fields'] = opts[:'exclude_fields'] if !opts[:'exclude_fields'].nil?
|
48
|
+
|
49
|
+
# header parameters
|
50
|
+
header_params = opts[:header_params] || {}
|
51
|
+
|
52
|
+
# form parameters
|
53
|
+
form_params = opts[:form_params] || {}
|
54
|
+
|
55
|
+
# http body (model)
|
56
|
+
post_body = opts[:body]
|
57
|
+
|
58
|
+
# return_type
|
59
|
+
return_type = opts[:return_type]
|
60
|
+
|
61
|
+
# auth_names
|
62
|
+
auth_names = opts[:auth_names] || ['Basic']
|
63
|
+
|
64
|
+
new_options = opts.merge(
|
65
|
+
:header_params => header_params,
|
66
|
+
:query_params => query_params,
|
67
|
+
:form_params => form_params,
|
68
|
+
:body => post_body,
|
69
|
+
:auth_names => auth_names,
|
70
|
+
:return_type => return_type
|
71
|
+
)
|
72
|
+
|
73
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
74
|
+
if @api_client.config.debugging
|
75
|
+
@api_client.config.logger.debug "API called: V2Api#list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
76
|
+
end
|
77
|
+
return data, status_code, headers
|
78
|
+
end
|
79
|
+
end
|
80
|
+
end
|
@@ -0,0 +1,88 @@
|
|
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 V2BlobsApi
|
17
|
+
attr_accessor :api_client
|
18
|
+
|
19
|
+
def initialize(api_client = ApiClient.default)
|
20
|
+
@api_client = api_client
|
21
|
+
end
|
22
|
+
# Partially update an upload
|
23
|
+
# This methods handles uploading of a chunk to an existing upload.
|
24
|
+
# @param path [String]
|
25
|
+
# @param upload_pk [String]
|
26
|
+
# @param [Hash] opts the optional parameters
|
27
|
+
# @return [nil]
|
28
|
+
def partial_update(path, upload_pk, opts = {})
|
29
|
+
partial_update_with_http_info(path, upload_pk, opts)
|
30
|
+
nil
|
31
|
+
end
|
32
|
+
|
33
|
+
# Partially update an upload
|
34
|
+
# This methods handles uploading of a chunk to an existing upload.
|
35
|
+
# @param path [String]
|
36
|
+
# @param upload_pk [String]
|
37
|
+
# @param [Hash] opts the optional parameters
|
38
|
+
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
39
|
+
def partial_update_with_http_info(path, upload_pk, opts = {})
|
40
|
+
if @api_client.config.debugging
|
41
|
+
@api_client.config.logger.debug 'Calling API: V2BlobsApi.partial_update ...'
|
42
|
+
end
|
43
|
+
# verify the required parameter 'path' is set
|
44
|
+
if @api_client.config.client_side_validation && path.nil?
|
45
|
+
fail ArgumentError, "Missing the required parameter 'path' when calling V2BlobsApi.partial_update"
|
46
|
+
end
|
47
|
+
# verify the required parameter 'upload_pk' is set
|
48
|
+
if @api_client.config.client_side_validation && upload_pk.nil?
|
49
|
+
fail ArgumentError, "Missing the required parameter 'upload_pk' when calling V2BlobsApi.partial_update"
|
50
|
+
end
|
51
|
+
# resource path
|
52
|
+
local_var_path = '/v2/{path}/blobs/uploads//{upload_pk}'.sub('{' + 'path' + '}', CGI.escape(path.to_s).gsub('%2F', '/')).sub('{' + 'upload_pk' + '}', CGI.escape(upload_pk.to_s).gsub('%2F', '/'))
|
53
|
+
|
54
|
+
# query parameters
|
55
|
+
query_params = opts[:query_params] || {}
|
56
|
+
|
57
|
+
# header parameters
|
58
|
+
header_params = opts[:header_params] || {}
|
59
|
+
|
60
|
+
# form parameters
|
61
|
+
form_params = opts[:form_params] || {}
|
62
|
+
|
63
|
+
# http body (model)
|
64
|
+
post_body = opts[:body]
|
65
|
+
|
66
|
+
# return_type
|
67
|
+
return_type = opts[:return_type]
|
68
|
+
|
69
|
+
# auth_names
|
70
|
+
auth_names = opts[:auth_names] || ['Basic']
|
71
|
+
|
72
|
+
new_options = opts.merge(
|
73
|
+
:header_params => header_params,
|
74
|
+
:query_params => query_params,
|
75
|
+
:form_params => form_params,
|
76
|
+
:body => post_body,
|
77
|
+
:auth_names => auth_names,
|
78
|
+
:return_type => return_type
|
79
|
+
)
|
80
|
+
|
81
|
+
data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, new_options)
|
82
|
+
if @api_client.config.debugging
|
83
|
+
@api_client.config.logger.debug "API called: V2BlobsApi#partial_update\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
84
|
+
end
|
85
|
+
return data, status_code, headers
|
86
|
+
end
|
87
|
+
end
|
88
|
+
end
|
@@ -0,0 +1,80 @@
|
|
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 V2CatalogApi
|
17
|
+
attr_accessor :api_client
|
18
|
+
|
19
|
+
def initialize(api_client = ApiClient.default)
|
20
|
+
@api_client = api_client
|
21
|
+
end
|
22
|
+
# Handles GET requests for the /v2/_catalog endpoint.
|
23
|
+
# @param [Hash] opts the optional parameters
|
24
|
+
# @option opts [String] :fields A list of fields to include in the response.
|
25
|
+
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
26
|
+
# @return [nil]
|
27
|
+
def list(opts = {})
|
28
|
+
list_with_http_info(opts)
|
29
|
+
nil
|
30
|
+
end
|
31
|
+
|
32
|
+
# Handles GET requests for the /v2/_catalog endpoint.
|
33
|
+
# @param [Hash] opts the optional parameters
|
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 [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
37
|
+
def list_with_http_info(opts = {})
|
38
|
+
if @api_client.config.debugging
|
39
|
+
@api_client.config.logger.debug 'Calling API: V2CatalogApi.list ...'
|
40
|
+
end
|
41
|
+
# resource path
|
42
|
+
local_var_path = '/v2/_catalog'
|
43
|
+
|
44
|
+
# query parameters
|
45
|
+
query_params = opts[:query_params] || {}
|
46
|
+
query_params[:'fields'] = opts[:'fields'] if !opts[:'fields'].nil?
|
47
|
+
query_params[:'exclude_fields'] = opts[:'exclude_fields'] if !opts[:'exclude_fields'].nil?
|
48
|
+
|
49
|
+
# header parameters
|
50
|
+
header_params = opts[:header_params] || {}
|
51
|
+
|
52
|
+
# form parameters
|
53
|
+
form_params = opts[:form_params] || {}
|
54
|
+
|
55
|
+
# http body (model)
|
56
|
+
post_body = opts[:body]
|
57
|
+
|
58
|
+
# return_type
|
59
|
+
return_type = opts[:return_type]
|
60
|
+
|
61
|
+
# auth_names
|
62
|
+
auth_names = opts[:auth_names] || ['Basic']
|
63
|
+
|
64
|
+
new_options = opts.merge(
|
65
|
+
:header_params => header_params,
|
66
|
+
:query_params => query_params,
|
67
|
+
:form_params => form_params,
|
68
|
+
:body => post_body,
|
69
|
+
:auth_names => auth_names,
|
70
|
+
:return_type => return_type
|
71
|
+
)
|
72
|
+
|
73
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
74
|
+
if @api_client.config.debugging
|
75
|
+
@api_client.config.logger.debug "API called: V2CatalogApi#list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
76
|
+
end
|
77
|
+
return data, status_code, headers
|
78
|
+
end
|
79
|
+
end
|
80
|
+
end
|
@@ -0,0 +1,86 @@
|
|
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 V2ListApi
|
17
|
+
attr_accessor :api_client
|
18
|
+
|
19
|
+
def initialize(api_client = ApiClient.default)
|
20
|
+
@api_client = api_client
|
21
|
+
end
|
22
|
+
# Handles GET requests to the /v2//tags/list endpoint
|
23
|
+
# @param path [String]
|
24
|
+
# @param [Hash] opts the optional parameters
|
25
|
+
# @option opts [String] :fields A list of fields to include in the response.
|
26
|
+
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
27
|
+
# @return [nil]
|
28
|
+
def list(path, opts = {})
|
29
|
+
list_with_http_info(path, opts)
|
30
|
+
nil
|
31
|
+
end
|
32
|
+
|
33
|
+
# Handles GET requests to the /v2//tags/list endpoint
|
34
|
+
# @param path [String]
|
35
|
+
# @param [Hash] opts the optional parameters
|
36
|
+
# @option opts [String] :fields A list of fields to include in the response.
|
37
|
+
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
38
|
+
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
39
|
+
def list_with_http_info(path, opts = {})
|
40
|
+
if @api_client.config.debugging
|
41
|
+
@api_client.config.logger.debug 'Calling API: V2ListApi.list ...'
|
42
|
+
end
|
43
|
+
# verify the required parameter 'path' is set
|
44
|
+
if @api_client.config.client_side_validation && path.nil?
|
45
|
+
fail ArgumentError, "Missing the required parameter 'path' when calling V2ListApi.list"
|
46
|
+
end
|
47
|
+
# resource path
|
48
|
+
local_var_path = '/v2/{path}/tags/list'.sub('{' + 'path' + '}', CGI.escape(path.to_s).gsub('%2F', '/'))
|
49
|
+
|
50
|
+
# query parameters
|
51
|
+
query_params = opts[:query_params] || {}
|
52
|
+
query_params[:'fields'] = opts[:'fields'] if !opts[:'fields'].nil?
|
53
|
+
query_params[:'exclude_fields'] = opts[:'exclude_fields'] if !opts[:'exclude_fields'].nil?
|
54
|
+
|
55
|
+
# header parameters
|
56
|
+
header_params = opts[:header_params] || {}
|
57
|
+
|
58
|
+
# form parameters
|
59
|
+
form_params = opts[:form_params] || {}
|
60
|
+
|
61
|
+
# http body (model)
|
62
|
+
post_body = opts[:body]
|
63
|
+
|
64
|
+
# return_type
|
65
|
+
return_type = opts[:return_type]
|
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(:GET, local_var_path, new_options)
|
80
|
+
if @api_client.config.debugging
|
81
|
+
@api_client.config.logger.debug "API called: V2ListApi#list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
82
|
+
end
|
83
|
+
return data, status_code, headers
|
84
|
+
end
|
85
|
+
end
|
86
|
+
end
|
@@ -0,0 +1,82 @@
|
|
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 V2UploadsApi
|
17
|
+
attr_accessor :api_client
|
18
|
+
|
19
|
+
def initialize(api_client = ApiClient.default)
|
20
|
+
@api_client = api_client
|
21
|
+
end
|
22
|
+
# Create an upload
|
23
|
+
# This methods handles the creation of an upload.
|
24
|
+
# @param path [String]
|
25
|
+
# @param [Hash] opts the optional parameters
|
26
|
+
# @return [nil]
|
27
|
+
def create(path, opts = {})
|
28
|
+
create_with_http_info(path, opts)
|
29
|
+
nil
|
30
|
+
end
|
31
|
+
|
32
|
+
# Create an upload
|
33
|
+
# This methods handles the creation of an upload.
|
34
|
+
# @param path [String]
|
35
|
+
# @param [Hash] opts the optional parameters
|
36
|
+
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
37
|
+
def create_with_http_info(path, opts = {})
|
38
|
+
if @api_client.config.debugging
|
39
|
+
@api_client.config.logger.debug 'Calling API: V2UploadsApi.create ...'
|
40
|
+
end
|
41
|
+
# verify the required parameter 'path' is set
|
42
|
+
if @api_client.config.client_side_validation && path.nil?
|
43
|
+
fail ArgumentError, "Missing the required parameter 'path' when calling V2UploadsApi.create"
|
44
|
+
end
|
45
|
+
# resource path
|
46
|
+
local_var_path = '/v2/{path}/blobs/uploads/'.sub('{' + 'path' + '}', CGI.escape(path.to_s).gsub('%2F', '/'))
|
47
|
+
|
48
|
+
# query parameters
|
49
|
+
query_params = opts[:query_params] || {}
|
50
|
+
|
51
|
+
# header parameters
|
52
|
+
header_params = opts[:header_params] || {}
|
53
|
+
|
54
|
+
# form parameters
|
55
|
+
form_params = opts[:form_params] || {}
|
56
|
+
|
57
|
+
# http body (model)
|
58
|
+
post_body = opts[:body]
|
59
|
+
|
60
|
+
# return_type
|
61
|
+
return_type = opts[:return_type]
|
62
|
+
|
63
|
+
# auth_names
|
64
|
+
auth_names = opts[:auth_names] || ['Basic']
|
65
|
+
|
66
|
+
new_options = opts.merge(
|
67
|
+
:header_params => header_params,
|
68
|
+
:query_params => query_params,
|
69
|
+
:form_params => form_params,
|
70
|
+
:body => post_body,
|
71
|
+
:auth_names => auth_names,
|
72
|
+
:return_type => return_type
|
73
|
+
)
|
74
|
+
|
75
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
76
|
+
if @api_client.config.debugging
|
77
|
+
@api_client.config.logger.debug "API called: V2UploadsApi#create\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
78
|
+
end
|
79
|
+
return data, status_code, headers
|
80
|
+
end
|
81
|
+
end
|
82
|
+
end
|
@@ -17,22 +17,22 @@ module PulpContainerClient
|
|
17
17
|
# The latest RepositoryVersion for this Repository will be served.
|
18
18
|
attr_accessor :repository
|
19
19
|
|
20
|
-
# The base (relative) path component of the published url. Avoid paths that overlap with other distribution base paths (e.g. \"foo\" and \"foo/bar\")
|
21
|
-
attr_accessor :base_path
|
22
|
-
|
23
|
-
# A unique name. Ex, `rawhide` and `stable`.
|
24
|
-
attr_accessor :name
|
25
|
-
|
26
20
|
# RepositoryVersion to be served
|
27
21
|
attr_accessor :repository_version
|
28
22
|
|
29
|
-
|
30
|
-
|
23
|
+
attr_accessor :pulp_href
|
24
|
+
|
25
|
+
# The base (relative) path component of the published url. Avoid paths that overlap with other distribution base paths (e.g. \"foo\" and \"foo/bar\")
|
26
|
+
attr_accessor :base_path
|
31
27
|
|
32
28
|
# Timestamp of creation.
|
33
29
|
attr_accessor :pulp_created
|
34
30
|
|
35
|
-
|
31
|
+
# An optional content-guard.
|
32
|
+
attr_accessor :content_guard
|
33
|
+
|
34
|
+
# A unique name. Ex, `rawhide` and `stable`.
|
35
|
+
attr_accessor :name
|
36
36
|
|
37
37
|
# The Registry hostame/name/ to use with docker pull command defined by this distribution.
|
38
38
|
attr_accessor :registry_path
|
@@ -41,12 +41,12 @@ module PulpContainerClient
|
|
41
41
|
def self.attribute_map
|
42
42
|
{
|
43
43
|
:'repository' => :'repository',
|
44
|
-
:'base_path' => :'base_path',
|
45
|
-
:'name' => :'name',
|
46
44
|
:'repository_version' => :'repository_version',
|
47
|
-
:'content_guard' => :'content_guard',
|
48
|
-
:'pulp_created' => :'pulp_created',
|
49
45
|
:'pulp_href' => :'pulp_href',
|
46
|
+
:'base_path' => :'base_path',
|
47
|
+
:'pulp_created' => :'pulp_created',
|
48
|
+
:'content_guard' => :'content_guard',
|
49
|
+
:'name' => :'name',
|
50
50
|
:'registry_path' => :'registry_path'
|
51
51
|
}
|
52
52
|
end
|
@@ -55,12 +55,12 @@ module PulpContainerClient
|
|
55
55
|
def self.openapi_types
|
56
56
|
{
|
57
57
|
:'repository' => :'String',
|
58
|
-
:'base_path' => :'String',
|
59
|
-
:'name' => :'String',
|
60
58
|
:'repository_version' => :'String',
|
61
|
-
:'content_guard' => :'String',
|
62
|
-
:'pulp_created' => :'DateTime',
|
63
59
|
:'pulp_href' => :'String',
|
60
|
+
:'base_path' => :'String',
|
61
|
+
:'pulp_created' => :'DateTime',
|
62
|
+
:'content_guard' => :'String',
|
63
|
+
:'name' => :'String',
|
64
64
|
:'registry_path' => :'String'
|
65
65
|
}
|
66
66
|
end
|
@@ -93,28 +93,28 @@ module PulpContainerClient
|
|
93
93
|
self.repository = attributes[:'repository']
|
94
94
|
end
|
95
95
|
|
96
|
-
if attributes.key?(:'base_path')
|
97
|
-
self.base_path = attributes[:'base_path']
|
98
|
-
end
|
99
|
-
|
100
|
-
if attributes.key?(:'name')
|
101
|
-
self.name = attributes[:'name']
|
102
|
-
end
|
103
|
-
|
104
96
|
if attributes.key?(:'repository_version')
|
105
97
|
self.repository_version = attributes[:'repository_version']
|
106
98
|
end
|
107
99
|
|
108
|
-
if attributes.key?(:'
|
109
|
-
self.
|
100
|
+
if attributes.key?(:'pulp_href')
|
101
|
+
self.pulp_href = attributes[:'pulp_href']
|
102
|
+
end
|
103
|
+
|
104
|
+
if attributes.key?(:'base_path')
|
105
|
+
self.base_path = attributes[:'base_path']
|
110
106
|
end
|
111
107
|
|
112
108
|
if attributes.key?(:'pulp_created')
|
113
109
|
self.pulp_created = attributes[:'pulp_created']
|
114
110
|
end
|
115
111
|
|
116
|
-
if attributes.key?(:'
|
117
|
-
self.
|
112
|
+
if attributes.key?(:'content_guard')
|
113
|
+
self.content_guard = attributes[:'content_guard']
|
114
|
+
end
|
115
|
+
|
116
|
+
if attributes.key?(:'name')
|
117
|
+
self.name = attributes[:'name']
|
118
118
|
end
|
119
119
|
|
120
120
|
if attributes.key?(:'registry_path')
|
@@ -204,12 +204,12 @@ module PulpContainerClient
|
|
204
204
|
return true if self.equal?(o)
|
205
205
|
self.class == o.class &&
|
206
206
|
repository == o.repository &&
|
207
|
-
base_path == o.base_path &&
|
208
|
-
name == o.name &&
|
209
207
|
repository_version == o.repository_version &&
|
210
|
-
content_guard == o.content_guard &&
|
211
|
-
pulp_created == o.pulp_created &&
|
212
208
|
pulp_href == o.pulp_href &&
|
209
|
+
base_path == o.base_path &&
|
210
|
+
pulp_created == o.pulp_created &&
|
211
|
+
content_guard == o.content_guard &&
|
212
|
+
name == o.name &&
|
213
213
|
registry_path == o.registry_path
|
214
214
|
end
|
215
215
|
|
@@ -222,7 +222,7 @@ module PulpContainerClient
|
|
222
222
|
# Calculates hash code according to all attributes.
|
223
223
|
# @return [Integer] Hash code
|
224
224
|
def hash
|
225
|
-
[repository,
|
225
|
+
[repository, repository_version, pulp_href, base_path, pulp_created, content_guard, name, registry_path].hash
|
226
226
|
end
|
227
227
|
|
228
228
|
# Builds the object from hash
|