pulpcore_client 3.105.1 → 3.106.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (48) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +8 -4
  3. data/docs/ArtifactDistributionResponse.md +19 -15
  4. data/docs/DataRepair7272.md +18 -0
  5. data/docs/DataRepair7465.md +18 -0
  6. data/docs/Datarepair7272Api.md +82 -0
  7. data/docs/Datarepair7465Api.md +82 -0
  8. data/docs/DistributionResponse.md +5 -1
  9. data/docs/OpenPGPDistributionResponse.md +2 -0
  10. data/docs/OpenPGPKeyring.md +2 -0
  11. data/docs/OpenPGPKeyringResponse.md +2 -0
  12. data/docs/PatchedOpenPGPKeyring.md +2 -0
  13. data/docs/Purge.md +1 -1
  14. data/docs/RepositoriesApi.md +18 -2
  15. data/docs/RepositoriesOpenpgpKeyringApi.md +18 -2
  16. data/docs/RepositoryResponse.md +2 -0
  17. data/lib/pulpcore_client/api/datarepair7272_api.rb +93 -0
  18. data/lib/pulpcore_client/api/datarepair7465_api.rb +93 -0
  19. data/lib/pulpcore_client/api/repositories_api.rb +27 -3
  20. data/lib/pulpcore_client/api/repositories_openpgp_keyring_api.rb +27 -3
  21. data/lib/pulpcore_client/models/artifact_distribution_response.rb +88 -67
  22. data/lib/pulpcore_client/models/data_repair7272.rb +217 -0
  23. data/lib/pulpcore_client/models/data_repair7465.rb +217 -0
  24. data/lib/pulpcore_client/models/distribution_response.rb +27 -6
  25. data/lib/pulpcore_client/models/open_pgp_distribution.rb +1 -1
  26. data/lib/pulpcore_client/models/open_pgp_distribution_response.rb +12 -2
  27. data/lib/pulpcore_client/models/open_pgp_keyring.rb +27 -1
  28. data/lib/pulpcore_client/models/open_pgp_keyring_response.rb +27 -1
  29. data/lib/pulpcore_client/models/patched_open_pgp_distribution.rb +1 -1
  30. data/lib/pulpcore_client/models/patched_open_pgp_keyring.rb +27 -1
  31. data/lib/pulpcore_client/models/purge.rb +1 -1
  32. data/lib/pulpcore_client/models/repository_response.rb +27 -1
  33. data/lib/pulpcore_client/version.rb +1 -1
  34. data/lib/pulpcore_client.rb +4 -0
  35. data/spec/api/datarepair7272_api_spec.rb +48 -0
  36. data/spec/api/datarepair7465_api_spec.rb +48 -0
  37. data/spec/api/repositories_api_spec.rb +9 -1
  38. data/spec/api/repositories_openpgp_keyring_api_spec.rb +9 -1
  39. data/spec/models/artifact_distribution_response_spec.rb +21 -9
  40. data/spec/models/data_repair7272_spec.rb +36 -0
  41. data/spec/models/data_repair7465_spec.rb +36 -0
  42. data/spec/models/distribution_response_spec.rb +12 -0
  43. data/spec/models/open_pgp_distribution_response_spec.rb +6 -0
  44. data/spec/models/open_pgp_keyring_response_spec.rb +6 -0
  45. data/spec/models/open_pgp_keyring_spec.rb +6 -0
  46. data/spec/models/patched_open_pgp_keyring_spec.rb +6 -0
  47. data/spec/models/repository_response_spec.rb +6 -0
  48. metadata +18 -2
@@ -0,0 +1,93 @@
1
+ =begin
2
+ #Pulp 3 API
3
+
4
+ #Fetch, Upload, Organize, and Distribute Software Packages
5
+
6
+ The version of the OpenAPI document: v3
7
+ Contact: pulp-list@redhat.com
8
+ Generated by: https://openapi-generator.tech
9
+ Generator version: 7.10.0
10
+
11
+ =end
12
+
13
+ require 'cgi'
14
+
15
+ module PulpcoreClient
16
+ class Datarepair7272Api
17
+ attr_accessor :api_client
18
+
19
+ def initialize(api_client = ApiClient.default)
20
+ @api_client = api_client
21
+ end
22
+ # Repair Repository Version Data (Issue #7272)
23
+ # Trigger an asynchronous task that repairs repository version content_ids cache and content count mismatches (Issue #7272). This task fixes two types of data corruption: 1) Mismatch between RepositoryVersion.content_ids cache and actual RepositoryContent relationships, and 2) Mismatch between RepositoryVersionContentDetails count and actual RepositoryContent count.
24
+ # @param data_repair7272 [DataRepair7272]
25
+ # @param [Hash] opts the optional parameters
26
+ # @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
27
+ # @return [AsyncOperationResponse]
28
+ def post(data_repair7272, opts = {})
29
+ data, _status_code, _headers = post_with_http_info(data_repair7272, opts)
30
+ data
31
+ end
32
+
33
+ # Repair Repository Version Data (Issue #7272)
34
+ # Trigger an asynchronous task that repairs repository version content_ids cache and content count mismatches (Issue #7272). This task fixes two types of data corruption: 1) Mismatch between RepositoryVersion.content_ids cache and actual RepositoryContent relationships, and 2) Mismatch between RepositoryVersionContentDetails count and actual RepositoryContent count.
35
+ # @param data_repair7272 [DataRepair7272]
36
+ # @param [Hash] opts the optional parameters
37
+ # @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
38
+ # @return [Array<(AsyncOperationResponse, Integer, Hash)>] AsyncOperationResponse data, response status code and response headers
39
+ def post_with_http_info(data_repair7272, opts = {})
40
+ if @api_client.config.debugging
41
+ @api_client.config.logger.debug 'Calling API: Datarepair7272Api.post ...'
42
+ end
43
+ # verify the required parameter 'data_repair7272' is set
44
+ if @api_client.config.client_side_validation && data_repair7272.nil?
45
+ fail ArgumentError, "Missing the required parameter 'data_repair7272' when calling Datarepair7272Api.post"
46
+ end
47
+ # resource path
48
+ local_var_path = '/pulp/api/v3/datarepair/7272/'
49
+
50
+ # query parameters
51
+ query_params = opts[:query_params] || {}
52
+
53
+ # header parameters
54
+ header_params = opts[:header_params] || {}
55
+ # HTTP header 'Accept' (if needed)
56
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
57
+ # HTTP header 'Content-Type'
58
+ content_type = @api_client.select_header_content_type(['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'])
59
+ if !content_type.nil?
60
+ header_params['Content-Type'] = content_type
61
+ end
62
+ header_params[:'X-Task-Diagnostics'] = @api_client.build_collection_param(opts[:'x_task_diagnostics'], :csv) if !opts[:'x_task_diagnostics'].nil?
63
+
64
+ # form parameters
65
+ form_params = opts[:form_params] || {}
66
+
67
+ # http body (model)
68
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(data_repair7272)
69
+
70
+ # return_type
71
+ return_type = opts[:debug_return_type] || 'AsyncOperationResponse'
72
+
73
+ # auth_names
74
+ auth_names = opts[:debug_auth_names] || ['basicAuth']
75
+
76
+ new_options = opts.merge(
77
+ :operation => :"Datarepair7272Api.post",
78
+ :header_params => header_params,
79
+ :query_params => query_params,
80
+ :form_params => form_params,
81
+ :body => post_body,
82
+ :auth_names => auth_names,
83
+ :return_type => return_type
84
+ )
85
+
86
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
87
+ if @api_client.config.debugging
88
+ @api_client.config.logger.debug "API called: Datarepair7272Api#post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
89
+ end
90
+ return data, status_code, headers
91
+ end
92
+ end
93
+ end
@@ -0,0 +1,93 @@
1
+ =begin
2
+ #Pulp 3 API
3
+
4
+ #Fetch, Upload, Organize, and Distribute Software Packages
5
+
6
+ The version of the OpenAPI document: v3
7
+ Contact: pulp-list@redhat.com
8
+ Generated by: https://openapi-generator.tech
9
+ Generator version: 7.10.0
10
+
11
+ =end
12
+
13
+ require 'cgi'
14
+
15
+ module PulpcoreClient
16
+ class Datarepair7465Api
17
+ attr_accessor :api_client
18
+
19
+ def initialize(api_client = ApiClient.default)
20
+ @api_client = api_client
21
+ end
22
+ # Add Repository Version Content IDs (Issue #7465)
23
+ # Trigger an asynchronous task that adds missing repository version content_ids cache to all repository versions (Issue #7465).
24
+ # @param data_repair7465 [DataRepair7465]
25
+ # @param [Hash] opts the optional parameters
26
+ # @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
27
+ # @return [AsyncOperationResponse]
28
+ def post(data_repair7465, opts = {})
29
+ data, _status_code, _headers = post_with_http_info(data_repair7465, opts)
30
+ data
31
+ end
32
+
33
+ # Add Repository Version Content IDs (Issue #7465)
34
+ # Trigger an asynchronous task that adds missing repository version content_ids cache to all repository versions (Issue #7465).
35
+ # @param data_repair7465 [DataRepair7465]
36
+ # @param [Hash] opts the optional parameters
37
+ # @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
38
+ # @return [Array<(AsyncOperationResponse, Integer, Hash)>] AsyncOperationResponse data, response status code and response headers
39
+ def post_with_http_info(data_repair7465, opts = {})
40
+ if @api_client.config.debugging
41
+ @api_client.config.logger.debug 'Calling API: Datarepair7465Api.post ...'
42
+ end
43
+ # verify the required parameter 'data_repair7465' is set
44
+ if @api_client.config.client_side_validation && data_repair7465.nil?
45
+ fail ArgumentError, "Missing the required parameter 'data_repair7465' when calling Datarepair7465Api.post"
46
+ end
47
+ # resource path
48
+ local_var_path = '/pulp/api/v3/datarepair/7465/'
49
+
50
+ # query parameters
51
+ query_params = opts[:query_params] || {}
52
+
53
+ # header parameters
54
+ header_params = opts[:header_params] || {}
55
+ # HTTP header 'Accept' (if needed)
56
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
57
+ # HTTP header 'Content-Type'
58
+ content_type = @api_client.select_header_content_type(['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'])
59
+ if !content_type.nil?
60
+ header_params['Content-Type'] = content_type
61
+ end
62
+ header_params[:'X-Task-Diagnostics'] = @api_client.build_collection_param(opts[:'x_task_diagnostics'], :csv) if !opts[:'x_task_diagnostics'].nil?
63
+
64
+ # form parameters
65
+ form_params = opts[:form_params] || {}
66
+
67
+ # http body (model)
68
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(data_repair7465)
69
+
70
+ # return_type
71
+ return_type = opts[:debug_return_type] || 'AsyncOperationResponse'
72
+
73
+ # auth_names
74
+ auth_names = opts[:debug_auth_names] || ['basicAuth']
75
+
76
+ new_options = opts.merge(
77
+ :operation => :"Datarepair7465Api.post",
78
+ :header_params => header_params,
79
+ :query_params => query_params,
80
+ :form_params => form_params,
81
+ :body => post_body,
82
+ :auth_names => auth_names,
83
+ :return_type => return_type
84
+ )
85
+
86
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
87
+ if @api_client.config.debugging
88
+ @api_client.config.logger.debug "API called: Datarepair7465Api#post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
89
+ end
90
+ return data, status_code, headers
91
+ end
92
+ end
93
+ end
@@ -35,7 +35,7 @@ module PulpcoreClient
35
35
  # @option opts [String] :name__regex Filter results where name matches regex value
36
36
  # @option opts [String] :name__startswith Filter results where name starts with value
37
37
  # @option opts [Integer] :offset The initial index from which to return the results.
38
- # @option opts [Array<String>] :ordering Ordering * &#x60;pulp_id&#x60; - Pulp id * &#x60;-pulp_id&#x60; - Pulp id (descending) * &#x60;pulp_created&#x60; - Pulp created * &#x60;-pulp_created&#x60; - Pulp created (descending) * &#x60;pulp_last_updated&#x60; - Pulp last updated * &#x60;-pulp_last_updated&#x60; - Pulp last updated (descending) * &#x60;pulp_type&#x60; - Pulp type * &#x60;-pulp_type&#x60; - Pulp type (descending) * &#x60;name&#x60; - Name * &#x60;-name&#x60; - Name (descending) * &#x60;pulp_labels&#x60; - Pulp labels * &#x60;-pulp_labels&#x60; - Pulp labels (descending) * &#x60;description&#x60; - Description * &#x60;-description&#x60; - Description (descending) * &#x60;next_version&#x60; - Next version * &#x60;-next_version&#x60; - Next version (descending) * &#x60;retain_repo_versions&#x60; - Retain repo versions * &#x60;-retain_repo_versions&#x60; - Retain repo versions (descending) * &#x60;user_hidden&#x60; - User hidden * &#x60;-user_hidden&#x60; - User hidden (descending) * &#x60;pk&#x60; - Pk * &#x60;-pk&#x60; - Pk (descending)
38
+ # @option opts [Array<String>] :ordering Ordering * &#x60;pulp_id&#x60; - Pulp id * &#x60;-pulp_id&#x60; - Pulp id (descending) * &#x60;pulp_created&#x60; - Pulp created * &#x60;-pulp_created&#x60; - Pulp created (descending) * &#x60;pulp_last_updated&#x60; - Pulp last updated * &#x60;-pulp_last_updated&#x60; - Pulp last updated (descending) * &#x60;pulp_type&#x60; - Pulp type * &#x60;-pulp_type&#x60; - Pulp type (descending) * &#x60;name&#x60; - Name * &#x60;-name&#x60; - Name (descending) * &#x60;pulp_labels&#x60; - Pulp labels * &#x60;-pulp_labels&#x60; - Pulp labels (descending) * &#x60;description&#x60; - Description * &#x60;-description&#x60; - Description (descending) * &#x60;next_version&#x60; - Next version * &#x60;-next_version&#x60; - Next version (descending) * &#x60;retain_repo_versions&#x60; - Retain repo versions * &#x60;-retain_repo_versions&#x60; - Retain repo versions (descending) * &#x60;retain_checkpoints&#x60; - Retain checkpoints * &#x60;-retain_checkpoints&#x60; - Retain checkpoints (descending) * &#x60;user_hidden&#x60; - User hidden * &#x60;-user_hidden&#x60; - User hidden (descending) * &#x60;pk&#x60; - Pk * &#x60;-pk&#x60; - Pk (descending)
39
39
  # @option opts [Array<String>] :prn__in Multiple values may be separated by commas.
40
40
  # @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
41
41
  # @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
@@ -44,6 +44,14 @@ module PulpcoreClient
44
44
  # @option opts [Array<String>] :pulp_type__in Multiple values may be separated by commas. * &#x60;core.openpgp&#x60; - core.openpgp * &#x60;file.file&#x60; - file.file
45
45
  # @option opts [String] :q Filter results by using NOT, AND and OR operations on other filters
46
46
  # @option opts [String] :remote
47
+ # @option opts [Integer] :retain_checkpoints Filter results where retain_checkpoints matches value
48
+ # @option opts [Integer] :retain_checkpoints__gt Filter results where retain_checkpoints is greater than value
49
+ # @option opts [Integer] :retain_checkpoints__gte Filter results where retain_checkpoints is greater than or equal to value
50
+ # @option opts [Boolean] :retain_checkpoints__isnull Filter results where retain_checkpoints has a null value
51
+ # @option opts [Integer] :retain_checkpoints__lt Filter results where retain_checkpoints is less than value
52
+ # @option opts [Integer] :retain_checkpoints__lte Filter results where retain_checkpoints is less than or equal to value
53
+ # @option opts [Integer] :retain_checkpoints__ne Filter results where retain_checkpoints not equal to value
54
+ # @option opts [Array<Integer>] :retain_checkpoints__range Filter results where retain_checkpoints is between two comma separated values
47
55
  # @option opts [Integer] :retain_repo_versions Filter results where retain_repo_versions matches value
48
56
  # @option opts [Integer] :retain_repo_versions__gt Filter results where retain_repo_versions is greater than value
49
57
  # @option opts [Integer] :retain_repo_versions__gte Filter results where retain_repo_versions is greater than or equal to value
@@ -77,7 +85,7 @@ module PulpcoreClient
77
85
  # @option opts [String] :name__regex Filter results where name matches regex value
78
86
  # @option opts [String] :name__startswith Filter results where name starts with value
79
87
  # @option opts [Integer] :offset The initial index from which to return the results.
80
- # @option opts [Array<String>] :ordering Ordering * &#x60;pulp_id&#x60; - Pulp id * &#x60;-pulp_id&#x60; - Pulp id (descending) * &#x60;pulp_created&#x60; - Pulp created * &#x60;-pulp_created&#x60; - Pulp created (descending) * &#x60;pulp_last_updated&#x60; - Pulp last updated * &#x60;-pulp_last_updated&#x60; - Pulp last updated (descending) * &#x60;pulp_type&#x60; - Pulp type * &#x60;-pulp_type&#x60; - Pulp type (descending) * &#x60;name&#x60; - Name * &#x60;-name&#x60; - Name (descending) * &#x60;pulp_labels&#x60; - Pulp labels * &#x60;-pulp_labels&#x60; - Pulp labels (descending) * &#x60;description&#x60; - Description * &#x60;-description&#x60; - Description (descending) * &#x60;next_version&#x60; - Next version * &#x60;-next_version&#x60; - Next version (descending) * &#x60;retain_repo_versions&#x60; - Retain repo versions * &#x60;-retain_repo_versions&#x60; - Retain repo versions (descending) * &#x60;user_hidden&#x60; - User hidden * &#x60;-user_hidden&#x60; - User hidden (descending) * &#x60;pk&#x60; - Pk * &#x60;-pk&#x60; - Pk (descending)
88
+ # @option opts [Array<String>] :ordering Ordering * &#x60;pulp_id&#x60; - Pulp id * &#x60;-pulp_id&#x60; - Pulp id (descending) * &#x60;pulp_created&#x60; - Pulp created * &#x60;-pulp_created&#x60; - Pulp created (descending) * &#x60;pulp_last_updated&#x60; - Pulp last updated * &#x60;-pulp_last_updated&#x60; - Pulp last updated (descending) * &#x60;pulp_type&#x60; - Pulp type * &#x60;-pulp_type&#x60; - Pulp type (descending) * &#x60;name&#x60; - Name * &#x60;-name&#x60; - Name (descending) * &#x60;pulp_labels&#x60; - Pulp labels * &#x60;-pulp_labels&#x60; - Pulp labels (descending) * &#x60;description&#x60; - Description * &#x60;-description&#x60; - Description (descending) * &#x60;next_version&#x60; - Next version * &#x60;-next_version&#x60; - Next version (descending) * &#x60;retain_repo_versions&#x60; - Retain repo versions * &#x60;-retain_repo_versions&#x60; - Retain repo versions (descending) * &#x60;retain_checkpoints&#x60; - Retain checkpoints * &#x60;-retain_checkpoints&#x60; - Retain checkpoints (descending) * &#x60;user_hidden&#x60; - User hidden * &#x60;-user_hidden&#x60; - User hidden (descending) * &#x60;pk&#x60; - Pk * &#x60;-pk&#x60; - Pk (descending)
81
89
  # @option opts [Array<String>] :prn__in Multiple values may be separated by commas.
82
90
  # @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
83
91
  # @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
@@ -86,6 +94,14 @@ module PulpcoreClient
86
94
  # @option opts [Array<String>] :pulp_type__in Multiple values may be separated by commas. * &#x60;core.openpgp&#x60; - core.openpgp * &#x60;file.file&#x60; - file.file
87
95
  # @option opts [String] :q Filter results by using NOT, AND and OR operations on other filters
88
96
  # @option opts [String] :remote
97
+ # @option opts [Integer] :retain_checkpoints Filter results where retain_checkpoints matches value
98
+ # @option opts [Integer] :retain_checkpoints__gt Filter results where retain_checkpoints is greater than value
99
+ # @option opts [Integer] :retain_checkpoints__gte Filter results where retain_checkpoints is greater than or equal to value
100
+ # @option opts [Boolean] :retain_checkpoints__isnull Filter results where retain_checkpoints has a null value
101
+ # @option opts [Integer] :retain_checkpoints__lt Filter results where retain_checkpoints is less than value
102
+ # @option opts [Integer] :retain_checkpoints__lte Filter results where retain_checkpoints is less than or equal to value
103
+ # @option opts [Integer] :retain_checkpoints__ne Filter results where retain_checkpoints not equal to value
104
+ # @option opts [Array<Integer>] :retain_checkpoints__range Filter results where retain_checkpoints is between two comma separated values
89
105
  # @option opts [Integer] :retain_repo_versions Filter results where retain_repo_versions matches value
90
106
  # @option opts [Integer] :retain_repo_versions__gt Filter results where retain_repo_versions is greater than value
91
107
  # @option opts [Integer] :retain_repo_versions__gte Filter results where retain_repo_versions is greater than or equal to value
@@ -102,7 +118,7 @@ module PulpcoreClient
102
118
  if @api_client.config.debugging
103
119
  @api_client.config.logger.debug 'Calling API: RepositoriesApi.list ...'
104
120
  end
105
- allowable_values = ["-description", "-name", "-next_version", "-pk", "-pulp_created", "-pulp_id", "-pulp_labels", "-pulp_last_updated", "-pulp_type", "-retain_repo_versions", "-user_hidden", "description", "name", "next_version", "pk", "pulp_created", "pulp_id", "pulp_labels", "pulp_last_updated", "pulp_type", "retain_repo_versions", "user_hidden"]
121
+ allowable_values = ["-description", "-name", "-next_version", "-pk", "-pulp_created", "-pulp_id", "-pulp_labels", "-pulp_last_updated", "-pulp_type", "-retain_checkpoints", "-retain_repo_versions", "-user_hidden", "description", "name", "next_version", "pk", "pulp_created", "pulp_id", "pulp_labels", "pulp_last_updated", "pulp_type", "retain_checkpoints", "retain_repo_versions", "user_hidden"]
106
122
  if @api_client.config.client_side_validation && opts[:'ordering'] && !opts[:'ordering'].all? { |item| allowable_values.include?(item) }
107
123
  fail ArgumentError, "invalid value for \"ordering\", must include one of #{allowable_values}"
108
124
  end
@@ -140,6 +156,14 @@ module PulpcoreClient
140
156
  query_params[:'pulp_type__in'] = @api_client.build_collection_param(opts[:'pulp_type__in'], :csv) if !opts[:'pulp_type__in'].nil?
141
157
  query_params[:'q'] = opts[:'q'] if !opts[:'q'].nil?
142
158
  query_params[:'remote'] = opts[:'remote'] if !opts[:'remote'].nil?
159
+ query_params[:'retain_checkpoints'] = opts[:'retain_checkpoints'] if !opts[:'retain_checkpoints'].nil?
160
+ query_params[:'retain_checkpoints__gt'] = opts[:'retain_checkpoints__gt'] if !opts[:'retain_checkpoints__gt'].nil?
161
+ query_params[:'retain_checkpoints__gte'] = opts[:'retain_checkpoints__gte'] if !opts[:'retain_checkpoints__gte'].nil?
162
+ query_params[:'retain_checkpoints__isnull'] = opts[:'retain_checkpoints__isnull'] if !opts[:'retain_checkpoints__isnull'].nil?
163
+ query_params[:'retain_checkpoints__lt'] = opts[:'retain_checkpoints__lt'] if !opts[:'retain_checkpoints__lt'].nil?
164
+ query_params[:'retain_checkpoints__lte'] = opts[:'retain_checkpoints__lte'] if !opts[:'retain_checkpoints__lte'].nil?
165
+ query_params[:'retain_checkpoints__ne'] = opts[:'retain_checkpoints__ne'] if !opts[:'retain_checkpoints__ne'].nil?
166
+ query_params[:'retain_checkpoints__range'] = @api_client.build_collection_param(opts[:'retain_checkpoints__range'], :csv) if !opts[:'retain_checkpoints__range'].nil?
143
167
  query_params[:'retain_repo_versions'] = opts[:'retain_repo_versions'] if !opts[:'retain_repo_versions'].nil?
144
168
  query_params[:'retain_repo_versions__gt'] = opts[:'retain_repo_versions__gt'] if !opts[:'retain_repo_versions__gt'].nil?
145
169
  query_params[:'retain_repo_versions__gte'] = opts[:'retain_repo_versions__gte'] if !opts[:'retain_repo_versions__gte'].nil?
@@ -249,13 +249,21 @@ module PulpcoreClient
249
249
  # @option opts [String] :name__regex Filter results where name matches regex value
250
250
  # @option opts [String] :name__startswith Filter results where name starts with value
251
251
  # @option opts [Integer] :offset The initial index from which to return the results.
252
- # @option opts [Array<String>] :ordering Ordering * &#x60;pulp_id&#x60; - Pulp id * &#x60;-pulp_id&#x60; - Pulp id (descending) * &#x60;pulp_created&#x60; - Pulp created * &#x60;-pulp_created&#x60; - Pulp created (descending) * &#x60;pulp_last_updated&#x60; - Pulp last updated * &#x60;-pulp_last_updated&#x60; - Pulp last updated (descending) * &#x60;pulp_type&#x60; - Pulp type * &#x60;-pulp_type&#x60; - Pulp type (descending) * &#x60;name&#x60; - Name * &#x60;-name&#x60; - Name (descending) * &#x60;pulp_labels&#x60; - Pulp labels * &#x60;-pulp_labels&#x60; - Pulp labels (descending) * &#x60;description&#x60; - Description * &#x60;-description&#x60; - Description (descending) * &#x60;next_version&#x60; - Next version * &#x60;-next_version&#x60; - Next version (descending) * &#x60;retain_repo_versions&#x60; - Retain repo versions * &#x60;-retain_repo_versions&#x60; - Retain repo versions (descending) * &#x60;user_hidden&#x60; - User hidden * &#x60;-user_hidden&#x60; - User hidden (descending) * &#x60;pk&#x60; - Pk * &#x60;-pk&#x60; - Pk (descending)
252
+ # @option opts [Array<String>] :ordering Ordering * &#x60;pulp_id&#x60; - Pulp id * &#x60;-pulp_id&#x60; - Pulp id (descending) * &#x60;pulp_created&#x60; - Pulp created * &#x60;-pulp_created&#x60; - Pulp created (descending) * &#x60;pulp_last_updated&#x60; - Pulp last updated * &#x60;-pulp_last_updated&#x60; - Pulp last updated (descending) * &#x60;pulp_type&#x60; - Pulp type * &#x60;-pulp_type&#x60; - Pulp type (descending) * &#x60;name&#x60; - Name * &#x60;-name&#x60; - Name (descending) * &#x60;pulp_labels&#x60; - Pulp labels * &#x60;-pulp_labels&#x60; - Pulp labels (descending) * &#x60;description&#x60; - Description * &#x60;-description&#x60; - Description (descending) * &#x60;next_version&#x60; - Next version * &#x60;-next_version&#x60; - Next version (descending) * &#x60;retain_repo_versions&#x60; - Retain repo versions * &#x60;-retain_repo_versions&#x60; - Retain repo versions (descending) * &#x60;retain_checkpoints&#x60; - Retain checkpoints * &#x60;-retain_checkpoints&#x60; - Retain checkpoints (descending) * &#x60;user_hidden&#x60; - User hidden * &#x60;-user_hidden&#x60; - User hidden (descending) * &#x60;pk&#x60; - Pk * &#x60;-pk&#x60; - Pk (descending)
253
253
  # @option opts [Array<String>] :prn__in Multiple values may be separated by commas.
254
254
  # @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
255
255
  # @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
256
256
  # @option opts [String] :pulp_label_select Filter labels by search string
257
257
  # @option opts [String] :q Filter results by using NOT, AND and OR operations on other filters
258
258
  # @option opts [String] :remote
259
+ # @option opts [Integer] :retain_checkpoints Filter results where retain_checkpoints matches value
260
+ # @option opts [Integer] :retain_checkpoints__gt Filter results where retain_checkpoints is greater than value
261
+ # @option opts [Integer] :retain_checkpoints__gte Filter results where retain_checkpoints is greater than or equal to value
262
+ # @option opts [Boolean] :retain_checkpoints__isnull Filter results where retain_checkpoints has a null value
263
+ # @option opts [Integer] :retain_checkpoints__lt Filter results where retain_checkpoints is less than value
264
+ # @option opts [Integer] :retain_checkpoints__lte Filter results where retain_checkpoints is less than or equal to value
265
+ # @option opts [Integer] :retain_checkpoints__ne Filter results where retain_checkpoints not equal to value
266
+ # @option opts [Array<Integer>] :retain_checkpoints__range Filter results where retain_checkpoints is between two comma separated values
259
267
  # @option opts [Integer] :retain_repo_versions Filter results where retain_repo_versions matches value
260
268
  # @option opts [Integer] :retain_repo_versions__gt Filter results where retain_repo_versions is greater than value
261
269
  # @option opts [Integer] :retain_repo_versions__gte Filter results where retain_repo_versions is greater than or equal to value
@@ -289,13 +297,21 @@ module PulpcoreClient
289
297
  # @option opts [String] :name__regex Filter results where name matches regex value
290
298
  # @option opts [String] :name__startswith Filter results where name starts with value
291
299
  # @option opts [Integer] :offset The initial index from which to return the results.
292
- # @option opts [Array<String>] :ordering Ordering * &#x60;pulp_id&#x60; - Pulp id * &#x60;-pulp_id&#x60; - Pulp id (descending) * &#x60;pulp_created&#x60; - Pulp created * &#x60;-pulp_created&#x60; - Pulp created (descending) * &#x60;pulp_last_updated&#x60; - Pulp last updated * &#x60;-pulp_last_updated&#x60; - Pulp last updated (descending) * &#x60;pulp_type&#x60; - Pulp type * &#x60;-pulp_type&#x60; - Pulp type (descending) * &#x60;name&#x60; - Name * &#x60;-name&#x60; - Name (descending) * &#x60;pulp_labels&#x60; - Pulp labels * &#x60;-pulp_labels&#x60; - Pulp labels (descending) * &#x60;description&#x60; - Description * &#x60;-description&#x60; - Description (descending) * &#x60;next_version&#x60; - Next version * &#x60;-next_version&#x60; - Next version (descending) * &#x60;retain_repo_versions&#x60; - Retain repo versions * &#x60;-retain_repo_versions&#x60; - Retain repo versions (descending) * &#x60;user_hidden&#x60; - User hidden * &#x60;-user_hidden&#x60; - User hidden (descending) * &#x60;pk&#x60; - Pk * &#x60;-pk&#x60; - Pk (descending)
300
+ # @option opts [Array<String>] :ordering Ordering * &#x60;pulp_id&#x60; - Pulp id * &#x60;-pulp_id&#x60; - Pulp id (descending) * &#x60;pulp_created&#x60; - Pulp created * &#x60;-pulp_created&#x60; - Pulp created (descending) * &#x60;pulp_last_updated&#x60; - Pulp last updated * &#x60;-pulp_last_updated&#x60; - Pulp last updated (descending) * &#x60;pulp_type&#x60; - Pulp type * &#x60;-pulp_type&#x60; - Pulp type (descending) * &#x60;name&#x60; - Name * &#x60;-name&#x60; - Name (descending) * &#x60;pulp_labels&#x60; - Pulp labels * &#x60;-pulp_labels&#x60; - Pulp labels (descending) * &#x60;description&#x60; - Description * &#x60;-description&#x60; - Description (descending) * &#x60;next_version&#x60; - Next version * &#x60;-next_version&#x60; - Next version (descending) * &#x60;retain_repo_versions&#x60; - Retain repo versions * &#x60;-retain_repo_versions&#x60; - Retain repo versions (descending) * &#x60;retain_checkpoints&#x60; - Retain checkpoints * &#x60;-retain_checkpoints&#x60; - Retain checkpoints (descending) * &#x60;user_hidden&#x60; - User hidden * &#x60;-user_hidden&#x60; - User hidden (descending) * &#x60;pk&#x60; - Pk * &#x60;-pk&#x60; - Pk (descending)
293
301
  # @option opts [Array<String>] :prn__in Multiple values may be separated by commas.
294
302
  # @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
295
303
  # @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
296
304
  # @option opts [String] :pulp_label_select Filter labels by search string
297
305
  # @option opts [String] :q Filter results by using NOT, AND and OR operations on other filters
298
306
  # @option opts [String] :remote
307
+ # @option opts [Integer] :retain_checkpoints Filter results where retain_checkpoints matches value
308
+ # @option opts [Integer] :retain_checkpoints__gt Filter results where retain_checkpoints is greater than value
309
+ # @option opts [Integer] :retain_checkpoints__gte Filter results where retain_checkpoints is greater than or equal to value
310
+ # @option opts [Boolean] :retain_checkpoints__isnull Filter results where retain_checkpoints has a null value
311
+ # @option opts [Integer] :retain_checkpoints__lt Filter results where retain_checkpoints is less than value
312
+ # @option opts [Integer] :retain_checkpoints__lte Filter results where retain_checkpoints is less than or equal to value
313
+ # @option opts [Integer] :retain_checkpoints__ne Filter results where retain_checkpoints not equal to value
314
+ # @option opts [Array<Integer>] :retain_checkpoints__range Filter results where retain_checkpoints is between two comma separated values
299
315
  # @option opts [Integer] :retain_repo_versions Filter results where retain_repo_versions matches value
300
316
  # @option opts [Integer] :retain_repo_versions__gt Filter results where retain_repo_versions is greater than value
301
317
  # @option opts [Integer] :retain_repo_versions__gte Filter results where retain_repo_versions is greater than or equal to value
@@ -312,7 +328,7 @@ module PulpcoreClient
312
328
  if @api_client.config.debugging
313
329
  @api_client.config.logger.debug 'Calling API: RepositoriesOpenpgpKeyringApi.list ...'
314
330
  end
315
- allowable_values = ["-description", "-name", "-next_version", "-pk", "-pulp_created", "-pulp_id", "-pulp_labels", "-pulp_last_updated", "-pulp_type", "-retain_repo_versions", "-user_hidden", "description", "name", "next_version", "pk", "pulp_created", "pulp_id", "pulp_labels", "pulp_last_updated", "pulp_type", "retain_repo_versions", "user_hidden"]
331
+ allowable_values = ["-description", "-name", "-next_version", "-pk", "-pulp_created", "-pulp_id", "-pulp_labels", "-pulp_last_updated", "-pulp_type", "-retain_checkpoints", "-retain_repo_versions", "-user_hidden", "description", "name", "next_version", "pk", "pulp_created", "pulp_id", "pulp_labels", "pulp_last_updated", "pulp_type", "retain_checkpoints", "retain_repo_versions", "user_hidden"]
316
332
  if @api_client.config.client_side_validation && opts[:'ordering'] && !opts[:'ordering'].all? { |item| allowable_values.include?(item) }
317
333
  fail ArgumentError, "invalid value for \"ordering\", must include one of #{allowable_values}"
318
334
  end
@@ -340,6 +356,14 @@ module PulpcoreClient
340
356
  query_params[:'pulp_label_select'] = opts[:'pulp_label_select'] if !opts[:'pulp_label_select'].nil?
341
357
  query_params[:'q'] = opts[:'q'] if !opts[:'q'].nil?
342
358
  query_params[:'remote'] = opts[:'remote'] if !opts[:'remote'].nil?
359
+ query_params[:'retain_checkpoints'] = opts[:'retain_checkpoints'] if !opts[:'retain_checkpoints'].nil?
360
+ query_params[:'retain_checkpoints__gt'] = opts[:'retain_checkpoints__gt'] if !opts[:'retain_checkpoints__gt'].nil?
361
+ query_params[:'retain_checkpoints__gte'] = opts[:'retain_checkpoints__gte'] if !opts[:'retain_checkpoints__gte'].nil?
362
+ query_params[:'retain_checkpoints__isnull'] = opts[:'retain_checkpoints__isnull'] if !opts[:'retain_checkpoints__isnull'].nil?
363
+ query_params[:'retain_checkpoints__lt'] = opts[:'retain_checkpoints__lt'] if !opts[:'retain_checkpoints__lt'].nil?
364
+ query_params[:'retain_checkpoints__lte'] = opts[:'retain_checkpoints__lte'] if !opts[:'retain_checkpoints__lte'].nil?
365
+ query_params[:'retain_checkpoints__ne'] = opts[:'retain_checkpoints__ne'] if !opts[:'retain_checkpoints__ne'].nil?
366
+ query_params[:'retain_checkpoints__range'] = @api_client.build_collection_param(opts[:'retain_checkpoints__range'], :csv) if !opts[:'retain_checkpoints__range'].nil?
343
367
  query_params[:'retain_repo_versions'] = opts[:'retain_repo_versions'] if !opts[:'retain_repo_versions'].nil?
344
368
  query_params[:'retain_repo_versions__gt'] = opts[:'retain_repo_versions__gt'] if !opts[:'retain_repo_versions__gt'].nil?
345
369
  query_params[:'retain_repo_versions__gte'] = opts[:'retain_repo_versions__gte'] if !opts[:'retain_repo_versions__gte'].nil?
@@ -16,51 +16,59 @@ require 'time'
16
16
  module PulpcoreClient
17
17
  # A serializer for ArtifactDistribution.
18
18
  class ArtifactDistributionResponse
19
- # The base (relative) path component of the published url. Avoid paths that overlap with other distribution base paths (e.g. \"foo\" and \"foo/bar\")
20
- attr_accessor :base_path
19
+ # Whether this distribution should be shown in the content app.
20
+ attr_accessor :hidden
21
+
22
+ # The URL for accessing the publication as defined by this distribution.
23
+ attr_accessor :base_url
24
+
25
+ attr_accessor :pulp_labels
26
+
27
+ # Timestamp since when the distributed content served by this distribution has not changed. If equals to `null`, no guarantee is provided about content changes.
28
+ attr_accessor :no_content_change_since
29
+
30
+ # RepositoryVersion to be served
31
+ attr_accessor :repository_version
21
32
 
22
33
  # A unique name. Ex, `rawhide` and `stable`.
23
34
  attr_accessor :name
24
35
 
36
+ attr_accessor :pulp_href
37
+
25
38
  # The Pulp Resource Name (PRN).
26
39
  attr_accessor :prn
27
40
 
28
- attr_accessor :pulp_labels
41
+ # The Pulp Resource Name (PRN) of the associated optional content guard.
42
+ attr_accessor :content_guard_prn
29
43
 
30
- attr_accessor :pulp_href
44
+ # An optional content-guard.
45
+ attr_accessor :content_guard
31
46
 
32
47
  # Timestamp of creation.
33
48
  attr_accessor :pulp_created
34
49
 
35
- # The URL for accessing the publication as defined by this distribution.
36
- attr_accessor :base_url
37
-
38
- # An optional content-guard.
39
- attr_accessor :content_guard
40
-
41
- # Whether this distribution should be shown in the content app.
42
- attr_accessor :hidden
50
+ # The base (relative) path component of the published url. Avoid paths that overlap with other distribution base paths (e.g. \"foo\" and \"foo/bar\")
51
+ attr_accessor :base_path
43
52
 
44
53
  # Timestamp of the last time this resource was updated. Note: for immutable resources - like content, repository versions, and publication - pulp_created and pulp_last_updated dates will be the same.
45
54
  attr_accessor :pulp_last_updated
46
55
 
47
- # Timestamp since when the distributed content served by this distribution has not changed. If equals to `null`, no guarantee is provided about content changes.
48
- attr_accessor :no_content_change_since
49
-
50
56
  # Attribute mapping from ruby-style variable name to JSON key.
51
57
  def self.attribute_map
52
58
  {
53
- :'base_path' => :'base_path',
54
- :'name' => :'name',
55
- :'prn' => :'prn',
59
+ :'hidden' => :'hidden',
60
+ :'base_url' => :'base_url',
56
61
  :'pulp_labels' => :'pulp_labels',
62
+ :'no_content_change_since' => :'no_content_change_since',
63
+ :'repository_version' => :'repository_version',
64
+ :'name' => :'name',
57
65
  :'pulp_href' => :'pulp_href',
58
- :'pulp_created' => :'pulp_created',
59
- :'base_url' => :'base_url',
66
+ :'prn' => :'prn',
67
+ :'content_guard_prn' => :'content_guard_prn',
60
68
  :'content_guard' => :'content_guard',
61
- :'hidden' => :'hidden',
62
- :'pulp_last_updated' => :'pulp_last_updated',
63
- :'no_content_change_since' => :'no_content_change_since'
69
+ :'pulp_created' => :'pulp_created',
70
+ :'base_path' => :'base_path',
71
+ :'pulp_last_updated' => :'pulp_last_updated'
64
72
  }
65
73
  end
66
74
 
@@ -72,23 +80,26 @@ module PulpcoreClient
72
80
  # Attribute type mapping.
73
81
  def self.openapi_types
74
82
  {
75
- :'base_path' => :'String',
76
- :'name' => :'String',
77
- :'prn' => :'String',
83
+ :'hidden' => :'Boolean',
84
+ :'base_url' => :'String',
78
85
  :'pulp_labels' => :'Hash<String, String>',
86
+ :'no_content_change_since' => :'String',
87
+ :'repository_version' => :'String',
88
+ :'name' => :'String',
79
89
  :'pulp_href' => :'String',
80
- :'pulp_created' => :'Time',
81
- :'base_url' => :'String',
90
+ :'prn' => :'String',
91
+ :'content_guard_prn' => :'String',
82
92
  :'content_guard' => :'String',
83
- :'hidden' => :'Boolean',
84
- :'pulp_last_updated' => :'Time',
85
- :'no_content_change_since' => :'String'
93
+ :'pulp_created' => :'Time',
94
+ :'base_path' => :'String',
95
+ :'pulp_last_updated' => :'Time'
86
96
  }
87
97
  end
88
98
 
89
99
  # List of attributes with nullable: true
90
100
  def self.openapi_nullable
91
101
  Set.new([
102
+ :'repository_version',
92
103
  :'content_guard',
93
104
  ])
94
105
  end
@@ -108,20 +119,14 @@ module PulpcoreClient
108
119
  h[k.to_sym] = v
109
120
  }
110
121
 
111
- if attributes.key?(:'base_path')
112
- self.base_path = attributes[:'base_path']
113
- else
114
- self.base_path = nil
115
- end
116
-
117
- if attributes.key?(:'name')
118
- self.name = attributes[:'name']
122
+ if attributes.key?(:'hidden')
123
+ self.hidden = attributes[:'hidden']
119
124
  else
120
- self.name = nil
125
+ self.hidden = false
121
126
  end
122
127
 
123
- if attributes.key?(:'prn')
124
- self.prn = attributes[:'prn']
128
+ if attributes.key?(:'base_url')
129
+ self.base_url = attributes[:'base_url']
125
130
  end
126
131
 
127
132
  if attributes.key?(:'pulp_labels')
@@ -130,35 +135,49 @@ module PulpcoreClient
130
135
  end
131
136
  end
132
137
 
138
+ if attributes.key?(:'no_content_change_since')
139
+ self.no_content_change_since = attributes[:'no_content_change_since']
140
+ end
141
+
142
+ if attributes.key?(:'repository_version')
143
+ self.repository_version = attributes[:'repository_version']
144
+ end
145
+
146
+ if attributes.key?(:'name')
147
+ self.name = attributes[:'name']
148
+ else
149
+ self.name = nil
150
+ end
151
+
133
152
  if attributes.key?(:'pulp_href')
134
153
  self.pulp_href = attributes[:'pulp_href']
135
154
  end
136
155
 
137
- if attributes.key?(:'pulp_created')
138
- self.pulp_created = attributes[:'pulp_created']
156
+ if attributes.key?(:'prn')
157
+ self.prn = attributes[:'prn']
139
158
  end
140
159
 
141
- if attributes.key?(:'base_url')
142
- self.base_url = attributes[:'base_url']
160
+ if attributes.key?(:'content_guard_prn')
161
+ self.content_guard_prn = attributes[:'content_guard_prn']
143
162
  end
144
163
 
145
164
  if attributes.key?(:'content_guard')
146
165
  self.content_guard = attributes[:'content_guard']
147
166
  end
148
167
 
149
- if attributes.key?(:'hidden')
150
- self.hidden = attributes[:'hidden']
168
+ if attributes.key?(:'pulp_created')
169
+ self.pulp_created = attributes[:'pulp_created']
170
+ end
171
+
172
+ if attributes.key?(:'base_path')
173
+ self.base_path = attributes[:'base_path']
151
174
  else
152
- self.hidden = false
175
+ self.base_path = nil
153
176
  end
154
177
 
155
178
  if attributes.key?(:'pulp_last_updated')
156
179
  self.pulp_last_updated = attributes[:'pulp_last_updated']
157
180
  end
158
-
159
- if attributes.key?(:'no_content_change_since')
160
- self.no_content_change_since = attributes[:'no_content_change_since']
161
- end
162
181
  end
163
182
 
164
183
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -166,14 +185,14 @@ module PulpcoreClient
166
185
  def list_invalid_properties
167
186
  warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
168
187
  invalid_properties = Array.new
169
- if @base_path.nil?
170
- invalid_properties.push('invalid value for "base_path", base_path cannot be nil.')
171
- end
172
-
173
188
  if @name.nil?
174
189
  invalid_properties.push('invalid value for "name", name cannot be nil.')
175
190
  end
176
191
 
192
+ if @base_path.nil?
193
+ invalid_properties.push('invalid value for "base_path", base_path cannot be nil.')
194
+ end
195
+
177
196
  invalid_properties
178
197
  end
179
198
 
@@ -181,8 +200,8 @@ module PulpcoreClient
181
200
  # @return true if the model is valid
182
201
  def valid?
183
202
  warn '[DEPRECATED] the `valid?` method is obsolete'
184
- return false if @base_path.nil?
185
203
  return false if @name.nil?
204
+ return false if @base_path.nil?
186
205
  true
187
206
  end
188
207
 
@@ -191,17 +210,19 @@ module PulpcoreClient
191
210
  def ==(o)
192
211
  return true if self.equal?(o)
193
212
  self.class == o.class &&
194
- base_path == o.base_path &&
195
- name == o.name &&
196
- prn == o.prn &&
213
+ hidden == o.hidden &&
214
+ base_url == o.base_url &&
197
215
  pulp_labels == o.pulp_labels &&
216
+ no_content_change_since == o.no_content_change_since &&
217
+ repository_version == o.repository_version &&
218
+ name == o.name &&
198
219
  pulp_href == o.pulp_href &&
199
- pulp_created == o.pulp_created &&
200
- base_url == o.base_url &&
220
+ prn == o.prn &&
221
+ content_guard_prn == o.content_guard_prn &&
201
222
  content_guard == o.content_guard &&
202
- hidden == o.hidden &&
203
- pulp_last_updated == o.pulp_last_updated &&
204
- no_content_change_since == o.no_content_change_since
223
+ pulp_created == o.pulp_created &&
224
+ base_path == o.base_path &&
225
+ pulp_last_updated == o.pulp_last_updated
205
226
  end
206
227
 
207
228
  # @see the `==` method
@@ -213,7 +234,7 @@ module PulpcoreClient
213
234
  # Calculates hash code according to all attributes.
214
235
  # @return [Integer] Hash code
215
236
  def hash
216
- [base_path, name, prn, pulp_labels, pulp_href, pulp_created, base_url, content_guard, hidden, pulp_last_updated, no_content_change_since].hash
237
+ [hidden, base_url, pulp_labels, no_content_change_since, repository_version, name, pulp_href, prn, content_guard_prn, content_guard, pulp_created, base_path, pulp_last_updated].hash
217
238
  end
218
239
 
219
240
  # Builds the object from hash