pulp_ansible_client 0.9.2 → 0.10.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (54) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +9 -5
  3. data/docs/AnsibleAnsibleRepository.md +3 -3
  4. data/docs/AnsibleAnsibleRepositoryResponse.md +3 -3
  5. data/docs/AnsibleCollection.md +19 -0
  6. data/docs/AnsibleCollectionVersionResponse.md +4 -4
  7. data/docs/AnsibleCollectionsApi.md +1 -1
  8. data/docs/AnsibleCopyApi.md +1 -1
  9. data/docs/AnsibleRoleResponse.md +3 -3
  10. data/docs/ApiCollectionsApi.md +1 -1
  11. data/docs/ApiRolesApi.md +1 -1
  12. data/docs/CollectionImportApi.md +1 -1
  13. data/docs/ContentCollectionDeprecationsApi.md +192 -0
  14. data/docs/ContentCollectionVersionsApi.md +1 -1
  15. data/docs/ContentRolesApi.md +1 -1
  16. data/docs/DistributionsAnsibleApi.md +1 -1
  17. data/docs/GalaxyDetailApi.md +1 -1
  18. data/docs/PatchedansibleAnsibleRepository.md +3 -3
  19. data/docs/PulpAnsibleApiApi.md +1 -1
  20. data/docs/PulpAnsibleApiV2CollectionsVersionsApi.md +1 -1
  21. data/docs/PulpAnsibleApiV3Api.md +1 -1
  22. data/docs/PulpAnsibleApiV3CollectionVersionsAllApi.md +1 -1
  23. data/docs/PulpAnsibleApiV3CollectionsAllApi.md +1 -1
  24. data/docs/PulpAnsibleApiV3CollectionsApi.md +4 -4
  25. data/docs/PulpAnsibleApiV3CollectionsVersionsApi.md +1 -1
  26. data/docs/PulpAnsibleApiV3CollectionsVersionsDocsBlobApi.md +1 -1
  27. data/docs/PulpAnsibleArtifactsCollectionsV3Api.md +1 -1
  28. data/docs/PulpAnsibleTagsApi.md +1 -1
  29. data/docs/RemotesCollectionApi.md +1 -1
  30. data/docs/RemotesRoleApi.md +1 -1
  31. data/docs/RepositoriesAnsibleApi.md +1 -1
  32. data/docs/RepositoriesAnsibleVersionsApi.md +1 -1
  33. data/docs/VersionsApi.md +1 -1
  34. data/lib/pulp_ansible_client/api/content_collection_deprecations_api.rb +234 -0
  35. data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_collections_api.rb +5 -5
  36. data/lib/pulp_ansible_client/configuration.rb +2 -2
  37. data/lib/pulp_ansible_client/models/ansible_ansible_repository.rb +17 -16
  38. data/lib/pulp_ansible_client/models/ansible_ansible_repository_response.rb +17 -16
  39. data/lib/pulp_ansible_client/models/ansible_collection.rb +228 -0
  40. data/lib/pulp_ansible_client/models/ansible_collection_version_response.rb +13 -15
  41. data/lib/pulp_ansible_client/models/ansible_role_response.rb +11 -11
  42. data/lib/pulp_ansible_client/models/patchedansible_ansible_repository.rb +17 -16
  43. data/lib/pulp_ansible_client/version.rb +1 -1
  44. data/lib/pulp_ansible_client.rb +2 -0
  45. data/spec/api/content_collection_deprecations_api_spec.rb +80 -0
  46. data/spec/api/pulp_ansible_api_v3_collections_api_spec.rb +2 -2
  47. data/spec/configuration_spec.rb +3 -3
  48. data/spec/models/ansible_ansible_repository_response_spec.rb +1 -1
  49. data/spec/models/ansible_ansible_repository_spec.rb +1 -1
  50. data/spec/models/ansible_collection_spec.rb +47 -0
  51. data/spec/models/ansible_collection_version_response_spec.rb +3 -3
  52. data/spec/models/ansible_role_response_spec.rb +3 -3
  53. data/spec/models/patchedansible_ansible_repository_spec.rb +1 -1
  54. metadata +79 -71
@@ -0,0 +1,234 @@
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
+ OpenAPI Generator version: 4.3.1
10
+
11
+ =end
12
+
13
+ require 'cgi'
14
+
15
+ module PulpAnsibleClient
16
+ class ContentCollectionDeprecationsApi
17
+ attr_accessor :api_client
18
+
19
+ def initialize(api_client = ApiClient.default)
20
+ @api_client = api_client
21
+ end
22
+ # Create an ansible collection deprecated
23
+ # ViewSet for AnsibleCollectionDeprecated.
24
+ # @param ansible_collection [AnsibleCollection]
25
+ # @param [Hash] opts the optional parameters
26
+ # @return [AnsibleCollectionResponse]
27
+ def create(ansible_collection, opts = {})
28
+ data, _status_code, _headers = create_with_http_info(ansible_collection, opts)
29
+ data
30
+ end
31
+
32
+ # Create an ansible collection deprecated
33
+ # ViewSet for AnsibleCollectionDeprecated.
34
+ # @param ansible_collection [AnsibleCollection]
35
+ # @param [Hash] opts the optional parameters
36
+ # @return [Array<(AnsibleCollectionResponse, Integer, Hash)>] AnsibleCollectionResponse data, response status code and response headers
37
+ def create_with_http_info(ansible_collection, opts = {})
38
+ if @api_client.config.debugging
39
+ @api_client.config.logger.debug 'Calling API: ContentCollectionDeprecationsApi.create ...'
40
+ end
41
+ # verify the required parameter 'ansible_collection' is set
42
+ if @api_client.config.client_side_validation && ansible_collection.nil?
43
+ fail ArgumentError, "Missing the required parameter 'ansible_collection' when calling ContentCollectionDeprecationsApi.create"
44
+ end
45
+ # resource path
46
+ local_var_path = '/pulp/api/v3/content/ansible/collection_deprecations/'
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', 'application/x-www-form-urlencoded', 'multipart/form-data'])
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(ansible_collection)
63
+
64
+ # return_type
65
+ return_type = opts[:return_type] || 'AnsibleCollectionResponse'
66
+
67
+ # auth_names
68
+ auth_names = opts[:auth_names] || ['basicAuth']
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: ContentCollectionDeprecationsApi#create\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
82
+ end
83
+ return data, status_code, headers
84
+ end
85
+
86
+ # List ansible collection deprecateds
87
+ # ViewSet for AnsibleCollectionDeprecated.
88
+ # @param [Hash] opts the optional parameters
89
+ # @option opts [Integer] :limit Number of results to return per page.
90
+ # @option opts [Integer] :offset The initial index from which to return the results.
91
+ # @option opts [String] :ordering Which field to use when ordering the results.
92
+ # @option opts [String] :repository_version Repository Version referenced by HREF
93
+ # @option opts [String] :repository_version_added Repository Version referenced by HREF
94
+ # @option opts [String] :repository_version_removed Repository Version referenced by HREF
95
+ # @option opts [String] :fields A list of fields to include in the response.
96
+ # @option opts [String] :exclude_fields A list of fields to exclude from the response.
97
+ # @return [PaginatedansibleCollectionResponseList]
98
+ def list(opts = {})
99
+ data, _status_code, _headers = list_with_http_info(opts)
100
+ data
101
+ end
102
+
103
+ # List ansible collection deprecateds
104
+ # ViewSet for AnsibleCollectionDeprecated.
105
+ # @param [Hash] opts the optional parameters
106
+ # @option opts [Integer] :limit Number of results to return per page.
107
+ # @option opts [Integer] :offset The initial index from which to return the results.
108
+ # @option opts [String] :ordering Which field to use when ordering the results.
109
+ # @option opts [String] :repository_version Repository Version referenced by HREF
110
+ # @option opts [String] :repository_version_added Repository Version referenced by HREF
111
+ # @option opts [String] :repository_version_removed Repository Version referenced by HREF
112
+ # @option opts [String] :fields A list of fields to include in the response.
113
+ # @option opts [String] :exclude_fields A list of fields to exclude from the response.
114
+ # @return [Array<(PaginatedansibleCollectionResponseList, Integer, Hash)>] PaginatedansibleCollectionResponseList data, response status code and response headers
115
+ def list_with_http_info(opts = {})
116
+ if @api_client.config.debugging
117
+ @api_client.config.logger.debug 'Calling API: ContentCollectionDeprecationsApi.list ...'
118
+ end
119
+ # resource path
120
+ local_var_path = '/pulp/api/v3/content/ansible/collection_deprecations/'
121
+
122
+ # query parameters
123
+ query_params = opts[:query_params] || {}
124
+ query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
125
+ query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
126
+ query_params[:'ordering'] = opts[:'ordering'] if !opts[:'ordering'].nil?
127
+ query_params[:'repository_version'] = opts[:'repository_version'] if !opts[:'repository_version'].nil?
128
+ query_params[:'repository_version_added'] = opts[:'repository_version_added'] if !opts[:'repository_version_added'].nil?
129
+ query_params[:'repository_version_removed'] = opts[:'repository_version_removed'] if !opts[:'repository_version_removed'].nil?
130
+ query_params[:'fields'] = opts[:'fields'] if !opts[:'fields'].nil?
131
+ query_params[:'exclude_fields'] = opts[:'exclude_fields'] if !opts[:'exclude_fields'].nil?
132
+
133
+ # header parameters
134
+ header_params = opts[:header_params] || {}
135
+ # HTTP header 'Accept' (if needed)
136
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
137
+
138
+ # form parameters
139
+ form_params = opts[:form_params] || {}
140
+
141
+ # http body (model)
142
+ post_body = opts[:body]
143
+
144
+ # return_type
145
+ return_type = opts[:return_type] || 'PaginatedansibleCollectionResponseList'
146
+
147
+ # auth_names
148
+ auth_names = opts[:auth_names] || ['basicAuth']
149
+
150
+ new_options = opts.merge(
151
+ :header_params => header_params,
152
+ :query_params => query_params,
153
+ :form_params => form_params,
154
+ :body => post_body,
155
+ :auth_names => auth_names,
156
+ :return_type => return_type
157
+ )
158
+
159
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
160
+ if @api_client.config.debugging
161
+ @api_client.config.logger.debug "API called: ContentCollectionDeprecationsApi#list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
162
+ end
163
+ return data, status_code, headers
164
+ end
165
+
166
+ # Inspect an ansible collection deprecated
167
+ # ViewSet for AnsibleCollectionDeprecated.
168
+ # @param ansible_ansible_collection_deprecated_href [String]
169
+ # @param [Hash] opts the optional parameters
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 [AnsibleCollectionResponse]
173
+ def read(ansible_ansible_collection_deprecated_href, opts = {})
174
+ data, _status_code, _headers = read_with_http_info(ansible_ansible_collection_deprecated_href, opts)
175
+ data
176
+ end
177
+
178
+ # Inspect an ansible collection deprecated
179
+ # ViewSet for AnsibleCollectionDeprecated.
180
+ # @param ansible_ansible_collection_deprecated_href [String]
181
+ # @param [Hash] opts the optional parameters
182
+ # @option opts [String] :fields A list of fields to include in the response.
183
+ # @option opts [String] :exclude_fields A list of fields to exclude from the response.
184
+ # @return [Array<(AnsibleCollectionResponse, Integer, Hash)>] AnsibleCollectionResponse data, response status code and response headers
185
+ def read_with_http_info(ansible_ansible_collection_deprecated_href, opts = {})
186
+ if @api_client.config.debugging
187
+ @api_client.config.logger.debug 'Calling API: ContentCollectionDeprecationsApi.read ...'
188
+ end
189
+ # verify the required parameter 'ansible_ansible_collection_deprecated_href' is set
190
+ if @api_client.config.client_side_validation && ansible_ansible_collection_deprecated_href.nil?
191
+ fail ArgumentError, "Missing the required parameter 'ansible_ansible_collection_deprecated_href' when calling ContentCollectionDeprecationsApi.read"
192
+ end
193
+ # resource path
194
+ local_var_path = '{ansible_ansible_collection_deprecated_href}'.sub('{' + 'ansible_ansible_collection_deprecated_href' + '}', CGI.escape(ansible_ansible_collection_deprecated_href.to_s).gsub('%2F', '/'))
195
+
196
+ # query parameters
197
+ query_params = opts[:query_params] || {}
198
+ query_params[:'fields'] = opts[:'fields'] if !opts[:'fields'].nil?
199
+ query_params[:'exclude_fields'] = opts[:'exclude_fields'] if !opts[:'exclude_fields'].nil?
200
+
201
+ # header parameters
202
+ header_params = opts[:header_params] || {}
203
+ # HTTP header 'Accept' (if needed)
204
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
205
+
206
+ # form parameters
207
+ form_params = opts[:form_params] || {}
208
+
209
+ # http body (model)
210
+ post_body = opts[:body]
211
+
212
+ # return_type
213
+ return_type = opts[:return_type] || 'AnsibleCollectionResponse'
214
+
215
+ # auth_names
216
+ auth_names = opts[:auth_names] || ['basicAuth']
217
+
218
+ new_options = opts.merge(
219
+ :header_params => header_params,
220
+ :query_params => query_params,
221
+ :form_params => form_params,
222
+ :body => post_body,
223
+ :auth_names => auth_names,
224
+ :return_type => return_type
225
+ )
226
+
227
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
228
+ if @api_client.config.debugging
229
+ @api_client.config.logger.debug "API called: ContentCollectionDeprecationsApi#read\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
230
+ end
231
+ return data, status_code, headers
232
+ end
233
+ end
234
+ end
@@ -178,25 +178,25 @@ module PulpAnsibleClient
178
178
  return data, status_code, headers
179
179
  end
180
180
 
181
- # Update a Collection object.
181
+ # Trigger an asynchronous update task
182
182
  # @param name [String]
183
183
  # @param namespace [String]
184
184
  # @param path [String]
185
185
  # @param body [Object]
186
186
  # @param [Hash] opts the optional parameters
187
- # @return [CollectionResponse]
187
+ # @return [AsyncOperationResponse]
188
188
  def update(name, namespace, path, body, opts = {})
189
189
  data, _status_code, _headers = update_with_http_info(name, namespace, path, body, opts)
190
190
  data
191
191
  end
192
192
 
193
- # Update a Collection object.
193
+ # Trigger an asynchronous update task
194
194
  # @param name [String]
195
195
  # @param namespace [String]
196
196
  # @param path [String]
197
197
  # @param body [Object]
198
198
  # @param [Hash] opts the optional parameters
199
- # @return [Array<(CollectionResponse, Integer, Hash)>] CollectionResponse data, response status code and response headers
199
+ # @return [Array<(AsyncOperationResponse, Integer, Hash)>] AsyncOperationResponse data, response status code and response headers
200
200
  def update_with_http_info(name, namespace, path, body, opts = {})
201
201
  if @api_client.config.debugging
202
202
  @api_client.config.logger.debug 'Calling API: PulpAnsibleApiV3CollectionsApi.update ...'
@@ -237,7 +237,7 @@ module PulpAnsibleClient
237
237
  post_body = opts[:body] || @api_client.object_to_http_body(body)
238
238
 
239
239
  # return_type
240
- return_type = opts[:return_type] || 'CollectionResponse'
240
+ return_type = opts[:return_type] || 'AsyncOperationResponse'
241
241
 
242
242
  # auth_names
243
243
  auth_names = opts[:auth_names] || []
@@ -127,7 +127,7 @@ module PulpAnsibleClient
127
127
  attr_accessor :force_ending_format
128
128
 
129
129
  def initialize
130
- @scheme = 'http'
130
+ @scheme = 'https'
131
131
  @host = 'pulp'
132
132
  @base_path = ''
133
133
  @api_key = {}
@@ -209,7 +209,7 @@ module PulpAnsibleClient
209
209
  def server_settings
210
210
  [
211
211
  {
212
- url: "http://pulp/",
212
+ url: "https://pulp/",
213
213
  description: "No description provided",
214
214
  }
215
215
  ]
@@ -24,8 +24,9 @@ module PulpAnsibleClient
24
24
  attr_accessor :description
25
25
 
26
26
  # Retain X versions of the repository. Default is null which retains all versions. This is provided as a tech preview in Pulp 3 and may change in the future.
27
- attr_accessor :retained_versions
27
+ attr_accessor :retain_repo_versions
28
28
 
29
+ # An optional remote to use by default when syncing.
29
30
  attr_accessor :remote
30
31
 
31
32
  # Last synced metadata time.
@@ -37,7 +38,7 @@ module PulpAnsibleClient
37
38
  :'pulp_labels' => :'pulp_labels',
38
39
  :'name' => :'name',
39
40
  :'description' => :'description',
40
- :'retained_versions' => :'retained_versions',
41
+ :'retain_repo_versions' => :'retain_repo_versions',
41
42
  :'remote' => :'remote',
42
43
  :'last_synced_metadata_time' => :'last_synced_metadata_time'
43
44
  }
@@ -49,7 +50,7 @@ module PulpAnsibleClient
49
50
  :'pulp_labels' => :'Object',
50
51
  :'name' => :'String',
51
52
  :'description' => :'String',
52
- :'retained_versions' => :'Integer',
53
+ :'retain_repo_versions' => :'Integer',
53
54
  :'remote' => :'String',
54
55
  :'last_synced_metadata_time' => :'DateTime'
55
56
  }
@@ -59,7 +60,7 @@ module PulpAnsibleClient
59
60
  def self.openapi_nullable
60
61
  Set.new([
61
62
  :'description',
62
- :'retained_versions',
63
+ :'retain_repo_versions',
63
64
  :'remote',
64
65
  :'last_synced_metadata_time'
65
66
  ])
@@ -92,8 +93,8 @@ module PulpAnsibleClient
92
93
  self.description = attributes[:'description']
93
94
  end
94
95
 
95
- if attributes.key?(:'retained_versions')
96
- self.retained_versions = attributes[:'retained_versions']
96
+ if attributes.key?(:'retain_repo_versions')
97
+ self.retain_repo_versions = attributes[:'retain_repo_versions']
97
98
  end
98
99
 
99
100
  if attributes.key?(:'remote')
@@ -113,8 +114,8 @@ module PulpAnsibleClient
113
114
  invalid_properties.push('invalid value for "name", name cannot be nil.')
114
115
  end
115
116
 
116
- if !@retained_versions.nil? && @retained_versions < 1
117
- invalid_properties.push('invalid value for "retained_versions", must be greater than or equal to 1.')
117
+ if !@retain_repo_versions.nil? && @retain_repo_versions < 1
118
+ invalid_properties.push('invalid value for "retain_repo_versions", must be greater than or equal to 1.')
118
119
  end
119
120
 
120
121
  invalid_properties
@@ -124,18 +125,18 @@ module PulpAnsibleClient
124
125
  # @return true if the model is valid
125
126
  def valid?
126
127
  return false if @name.nil?
127
- return false if !@retained_versions.nil? && @retained_versions < 1
128
+ return false if !@retain_repo_versions.nil? && @retain_repo_versions < 1
128
129
  true
129
130
  end
130
131
 
131
132
  # Custom attribute writer method with validation
132
- # @param [Object] retained_versions Value to be assigned
133
- def retained_versions=(retained_versions)
134
- if !retained_versions.nil? && retained_versions < 1
135
- fail ArgumentError, 'invalid value for "retained_versions", must be greater than or equal to 1.'
133
+ # @param [Object] retain_repo_versions Value to be assigned
134
+ def retain_repo_versions=(retain_repo_versions)
135
+ if !retain_repo_versions.nil? && retain_repo_versions < 1
136
+ fail ArgumentError, 'invalid value for "retain_repo_versions", must be greater than or equal to 1.'
136
137
  end
137
138
 
138
- @retained_versions = retained_versions
139
+ @retain_repo_versions = retain_repo_versions
139
140
  end
140
141
 
141
142
  # Checks equality by comparing each attribute.
@@ -146,7 +147,7 @@ module PulpAnsibleClient
146
147
  pulp_labels == o.pulp_labels &&
147
148
  name == o.name &&
148
149
  description == o.description &&
149
- retained_versions == o.retained_versions &&
150
+ retain_repo_versions == o.retain_repo_versions &&
150
151
  remote == o.remote &&
151
152
  last_synced_metadata_time == o.last_synced_metadata_time
152
153
  end
@@ -160,7 +161,7 @@ module PulpAnsibleClient
160
161
  # Calculates hash code according to all attributes.
161
162
  # @return [Integer] Hash code
162
163
  def hash
163
- [pulp_labels, name, description, retained_versions, remote, last_synced_metadata_time].hash
164
+ [pulp_labels, name, description, retain_repo_versions, remote, last_synced_metadata_time].hash
164
165
  end
165
166
 
166
167
  # Builds the object from hash
@@ -33,8 +33,9 @@ module PulpAnsibleClient
33
33
  attr_accessor :description
34
34
 
35
35
  # Retain X versions of the repository. Default is null which retains all versions. This is provided as a tech preview in Pulp 3 and may change in the future.
36
- attr_accessor :retained_versions
36
+ attr_accessor :retain_repo_versions
37
37
 
38
+ # An optional remote to use by default when syncing.
38
39
  attr_accessor :remote
39
40
 
40
41
  # Last synced metadata time.
@@ -50,7 +51,7 @@ module PulpAnsibleClient
50
51
  :'latest_version_href' => :'latest_version_href',
51
52
  :'name' => :'name',
52
53
  :'description' => :'description',
53
- :'retained_versions' => :'retained_versions',
54
+ :'retain_repo_versions' => :'retain_repo_versions',
54
55
  :'remote' => :'remote',
55
56
  :'last_synced_metadata_time' => :'last_synced_metadata_time'
56
57
  }
@@ -66,7 +67,7 @@ module PulpAnsibleClient
66
67
  :'latest_version_href' => :'String',
67
68
  :'name' => :'String',
68
69
  :'description' => :'String',
69
- :'retained_versions' => :'Integer',
70
+ :'retain_repo_versions' => :'Integer',
70
71
  :'remote' => :'String',
71
72
  :'last_synced_metadata_time' => :'DateTime'
72
73
  }
@@ -76,7 +77,7 @@ module PulpAnsibleClient
76
77
  def self.openapi_nullable
77
78
  Set.new([
78
79
  :'description',
79
- :'retained_versions',
80
+ :'retain_repo_versions',
80
81
  :'remote',
81
82
  :'last_synced_metadata_time'
82
83
  ])
@@ -125,8 +126,8 @@ module PulpAnsibleClient
125
126
  self.description = attributes[:'description']
126
127
  end
127
128
 
128
- if attributes.key?(:'retained_versions')
129
- self.retained_versions = attributes[:'retained_versions']
129
+ if attributes.key?(:'retain_repo_versions')
130
+ self.retain_repo_versions = attributes[:'retain_repo_versions']
130
131
  end
131
132
 
132
133
  if attributes.key?(:'remote')
@@ -146,8 +147,8 @@ module PulpAnsibleClient
146
147
  invalid_properties.push('invalid value for "name", name cannot be nil.')
147
148
  end
148
149
 
149
- if !@retained_versions.nil? && @retained_versions < 1
150
- invalid_properties.push('invalid value for "retained_versions", must be greater than or equal to 1.')
150
+ if !@retain_repo_versions.nil? && @retain_repo_versions < 1
151
+ invalid_properties.push('invalid value for "retain_repo_versions", must be greater than or equal to 1.')
151
152
  end
152
153
 
153
154
  invalid_properties
@@ -157,18 +158,18 @@ module PulpAnsibleClient
157
158
  # @return true if the model is valid
158
159
  def valid?
159
160
  return false if @name.nil?
160
- return false if !@retained_versions.nil? && @retained_versions < 1
161
+ return false if !@retain_repo_versions.nil? && @retain_repo_versions < 1
161
162
  true
162
163
  end
163
164
 
164
165
  # Custom attribute writer method with validation
165
- # @param [Object] retained_versions Value to be assigned
166
- def retained_versions=(retained_versions)
167
- if !retained_versions.nil? && retained_versions < 1
168
- fail ArgumentError, 'invalid value for "retained_versions", must be greater than or equal to 1.'
166
+ # @param [Object] retain_repo_versions Value to be assigned
167
+ def retain_repo_versions=(retain_repo_versions)
168
+ if !retain_repo_versions.nil? && retain_repo_versions < 1
169
+ fail ArgumentError, 'invalid value for "retain_repo_versions", must be greater than or equal to 1.'
169
170
  end
170
171
 
171
- @retained_versions = retained_versions
172
+ @retain_repo_versions = retain_repo_versions
172
173
  end
173
174
 
174
175
  # Checks equality by comparing each attribute.
@@ -183,7 +184,7 @@ module PulpAnsibleClient
183
184
  latest_version_href == o.latest_version_href &&
184
185
  name == o.name &&
185
186
  description == o.description &&
186
- retained_versions == o.retained_versions &&
187
+ retain_repo_versions == o.retain_repo_versions &&
187
188
  remote == o.remote &&
188
189
  last_synced_metadata_time == o.last_synced_metadata_time
189
190
  end
@@ -197,7 +198,7 @@ module PulpAnsibleClient
197
198
  # Calculates hash code according to all attributes.
198
199
  # @return [Integer] Hash code
199
200
  def hash
200
- [pulp_href, pulp_created, versions_href, pulp_labels, latest_version_href, name, description, retained_versions, remote, last_synced_metadata_time].hash
201
+ [pulp_href, pulp_created, versions_href, pulp_labels, latest_version_href, name, description, retain_repo_versions, remote, last_synced_metadata_time].hash
201
202
  end
202
203
 
203
204
  # Builds the object from hash