pulp_ansible_client 0.2.0 → 0.3.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (43) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +25 -21
  3. data/docs/AnsibleCollectionVersionResponse.md +3 -3
  4. data/docs/AnsibleCollectionsApi.md +43 -43
  5. data/docs/AnsibleRoleResponse.md +3 -3
  6. data/docs/CollectionVersionDocsResponse.md +17 -0
  7. data/docs/GalaxyCollectionListApi.md +7 -9
  8. data/docs/GalaxyDetailApi.md +5 -5
  9. data/docs/PulpAnsibleApiApi.md +5 -5
  10. data/docs/PulpAnsibleGalaxyApiV2VersionsApi.md +5 -5
  11. data/docs/PulpAnsibleGalaxyApiV3CollectionsDocsBlobApi.md +67 -0
  12. data/docs/RoleListApi.md +5 -5
  13. data/docs/V1RolesApi.md +5 -5
  14. data/docs/V2CollectionsApi.md +26 -26
  15. data/lib/pulp_ansible_client/api/ansible_collections_api.rb +70 -70
  16. data/lib/pulp_ansible_client/api/galaxy_collection_list_api.rb +9 -12
  17. data/lib/pulp_ansible_client/api/galaxy_detail_api.rb +6 -6
  18. data/lib/pulp_ansible_client/api/pulp_ansible_api_api.rb +6 -6
  19. data/lib/pulp_ansible_client/api/pulp_ansible_galaxy_api_v2_versions_api.rb +9 -9
  20. data/lib/pulp_ansible_client/api/pulp_ansible_galaxy_api_v3_collections_docs_blob_api.rb +106 -0
  21. data/lib/pulp_ansible_client/api/role_list_api.rb +6 -6
  22. data/lib/pulp_ansible_client/api/v1_roles_api.rb +6 -6
  23. data/lib/pulp_ansible_client/api/v2_collections_api.rb +43 -43
  24. data/lib/pulp_ansible_client/models/ansible_collection_version.rb +0 -44
  25. data/lib/pulp_ansible_client/models/ansible_collection_version_response.rb +10 -54
  26. data/lib/pulp_ansible_client/models/ansible_role_response.rb +10 -10
  27. data/lib/pulp_ansible_client/models/collection_metadata_response.rb +0 -68
  28. data/lib/pulp_ansible_client/models/collection_version_docs_response.rb +212 -0
  29. data/lib/pulp_ansible_client/version.rb +1 -1
  30. data/lib/pulp_ansible_client.rb +2 -0
  31. data/spec/api/ansible_collections_api_spec.rb +16 -16
  32. data/spec/api/galaxy_collection_list_api_spec.rb +3 -4
  33. data/spec/api/galaxy_detail_api_spec.rb +2 -2
  34. data/spec/api/pulp_ansible_api_api_spec.rb +2 -2
  35. data/spec/api/pulp_ansible_galaxy_api_v2_versions_api_spec.rb +2 -2
  36. data/spec/api/pulp_ansible_galaxy_api_v3_collections_docs_blob_api_spec.rb +51 -0
  37. data/spec/api/role_list_api_spec.rb +2 -2
  38. data/spec/api/v1_roles_api_spec.rb +2 -2
  39. data/spec/api/v2_collections_api_spec.rb +12 -12
  40. data/spec/models/ansible_collection_version_response_spec.rb +3 -3
  41. data/spec/models/ansible_role_response_spec.rb +3 -3
  42. data/spec/models/collection_version_docs_response_spec.rb +41 -0
  43. metadata +10 -2
@@ -27,8 +27,8 @@ module PulpAnsibleClient
27
27
  # @option opts [String] :fields A list of fields to include in the response.
28
28
  # @option opts [String] :exclude_fields A list of fields to exclude from the response.
29
29
  # @return [InlineResponse20010]
30
- def list(ansible_role_href, opts = {})
31
- data, _status_code, _headers = list_with_http_info(ansible_role_href, opts)
30
+ def get(ansible_role_href, opts = {})
31
+ data, _status_code, _headers = get_with_http_info(ansible_role_href, opts)
32
32
  data
33
33
  end
34
34
 
@@ -40,13 +40,13 @@ module PulpAnsibleClient
40
40
  # @option opts [String] :fields A list of fields to include in the response.
41
41
  # @option opts [String] :exclude_fields A list of fields to exclude from the response.
42
42
  # @return [Array<(InlineResponse20010, Integer, Hash)>] InlineResponse20010 data, response status code and response headers
43
- def list_with_http_info(ansible_role_href, opts = {})
43
+ def get_with_http_info(ansible_role_href, opts = {})
44
44
  if @api_client.config.debugging
45
- @api_client.config.logger.debug 'Calling API: RoleListApi.list ...'
45
+ @api_client.config.logger.debug 'Calling API: RoleListApi.get ...'
46
46
  end
47
47
  # verify the required parameter 'ansible_role_href' is set
48
48
  if @api_client.config.client_side_validation && ansible_role_href.nil?
49
- fail ArgumentError, "Missing the required parameter 'ansible_role_href' when calling RoleListApi.list"
49
+ fail ArgumentError, "Missing the required parameter 'ansible_role_href' when calling RoleListApi.get"
50
50
  end
51
51
  # resource path
52
52
  local_var_path = '{ansible_role_href}versions/'.sub('{' + 'ansible_role_href' + '}', CGI.escape(ansible_role_href.to_s).gsub('%2F', '/'))
@@ -86,7 +86,7 @@ module PulpAnsibleClient
86
86
 
87
87
  data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
88
88
  if @api_client.config.debugging
89
- @api_client.config.logger.debug "API called: RoleListApi#list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
89
+ @api_client.config.logger.debug "API called: RoleListApi#get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
90
90
  end
91
91
  return data, status_code, headers
92
92
  end
@@ -27,8 +27,8 @@ module PulpAnsibleClient
27
27
  # @option opts [String] :fields A list of fields to include in the response.
28
28
  # @option opts [String] :exclude_fields A list of fields to exclude from the response.
29
29
  # @return [InlineResponse2009]
30
- def list(ansible_role_href, opts = {})
31
- data, _status_code, _headers = list_with_http_info(ansible_role_href, opts)
30
+ def get(ansible_role_href, opts = {})
31
+ data, _status_code, _headers = get_with_http_info(ansible_role_href, opts)
32
32
  data
33
33
  end
34
34
 
@@ -40,13 +40,13 @@ module PulpAnsibleClient
40
40
  # @option opts [String] :fields A list of fields to include in the response.
41
41
  # @option opts [String] :exclude_fields A list of fields to exclude from the response.
42
42
  # @return [Array<(InlineResponse2009, Integer, Hash)>] InlineResponse2009 data, response status code and response headers
43
- def list_with_http_info(ansible_role_href, opts = {})
43
+ def get_with_http_info(ansible_role_href, opts = {})
44
44
  if @api_client.config.debugging
45
- @api_client.config.logger.debug 'Calling API: V1RolesApi.list ...'
45
+ @api_client.config.logger.debug 'Calling API: V1RolesApi.get ...'
46
46
  end
47
47
  # verify the required parameter 'ansible_role_href' is set
48
48
  if @api_client.config.client_side_validation && ansible_role_href.nil?
49
- fail ArgumentError, "Missing the required parameter 'ansible_role_href' when calling V1RolesApi.list"
49
+ fail ArgumentError, "Missing the required parameter 'ansible_role_href' when calling V1RolesApi.get"
50
50
  end
51
51
  # resource path
52
52
  local_var_path = '{ansible_role_href}api/v1/roles/'.sub('{' + 'ansible_role_href' + '}', CGI.escape(ansible_role_href.to_s).gsub('%2F', '/'))
@@ -86,7 +86,7 @@ module PulpAnsibleClient
86
86
 
87
87
  data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
88
88
  if @api_client.config.debugging
89
- @api_client.config.logger.debug "API called: V1RolesApi#list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
89
+ @api_client.config.logger.debug "API called: V1RolesApi#get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
90
90
  end
91
91
  return data, status_code, headers
92
92
  end
@@ -19,54 +19,55 @@ module PulpAnsibleClient
19
19
  def initialize(api_client = ApiClient.default)
20
20
  @api_client = api_client
21
21
  end
22
- # Queues a task that creates a new Collection from an uploaded artifact.
22
+ # View for Collection models.
23
23
  # @param ansible_collection_href [String]
24
- # @param galaxy_collection [GalaxyCollection]
25
24
  # @param [Hash] opts the optional parameters
26
- # @return [GalaxyCollectionResponse]
27
- def create(ansible_collection_href, galaxy_collection, opts = {})
28
- data, _status_code, _headers = create_with_http_info(ansible_collection_href, galaxy_collection, opts)
25
+ # @option opts [Integer] :page A page number within the paginated result set.
26
+ # @option opts [String] :fields A list of fields to include in the response.
27
+ # @option opts [String] :exclude_fields A list of fields to exclude from the response.
28
+ # @return [InlineResponse20011]
29
+ def get(ansible_collection_href, opts = {})
30
+ data, _status_code, _headers = get_with_http_info(ansible_collection_href, opts)
29
31
  data
30
32
  end
31
33
 
32
- # Queues a task that creates a new Collection from an uploaded artifact.
34
+ # View for Collection models.
33
35
  # @param ansible_collection_href [String]
34
- # @param galaxy_collection [GalaxyCollection]
35
36
  # @param [Hash] opts the optional parameters
36
- # @return [Array<(GalaxyCollectionResponse, Integer, Hash)>] GalaxyCollectionResponse data, response status code and response headers
37
- def create_with_http_info(ansible_collection_href, galaxy_collection, opts = {})
37
+ # @option opts [Integer] :page A page number within the paginated result set.
38
+ # @option opts [String] :fields A list of fields to include in the response.
39
+ # @option opts [String] :exclude_fields A list of fields to exclude from the response.
40
+ # @return [Array<(InlineResponse20011, Integer, Hash)>] InlineResponse20011 data, response status code and response headers
41
+ def get_with_http_info(ansible_collection_href, opts = {})
38
42
  if @api_client.config.debugging
39
- @api_client.config.logger.debug 'Calling API: V2CollectionsApi.create ...'
43
+ @api_client.config.logger.debug 'Calling API: V2CollectionsApi.get ...'
40
44
  end
41
45
  # verify the required parameter 'ansible_collection_href' is set
42
46
  if @api_client.config.client_side_validation && ansible_collection_href.nil?
43
- fail ArgumentError, "Missing the required parameter 'ansible_collection_href' when calling V2CollectionsApi.create"
44
- end
45
- # verify the required parameter 'galaxy_collection' is set
46
- if @api_client.config.client_side_validation && galaxy_collection.nil?
47
- fail ArgumentError, "Missing the required parameter 'galaxy_collection' when calling V2CollectionsApi.create"
47
+ fail ArgumentError, "Missing the required parameter 'ansible_collection_href' when calling V2CollectionsApi.get"
48
48
  end
49
49
  # resource path
50
50
  local_var_path = '{ansible_collection_href}api/v2/collections/'.sub('{' + 'ansible_collection_href' + '}', CGI.escape(ansible_collection_href.to_s).gsub('%2F', '/'))
51
51
 
52
52
  # query parameters
53
53
  query_params = opts[:query_params] || {}
54
+ query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil?
55
+ query_params[:'fields'] = opts[:'fields'] if !opts[:'fields'].nil?
56
+ query_params[:'exclude_fields'] = opts[:'exclude_fields'] if !opts[:'exclude_fields'].nil?
54
57
 
55
58
  # header parameters
56
59
  header_params = opts[:header_params] || {}
57
60
  # HTTP header 'Accept' (if needed)
58
61
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
59
- # HTTP header 'Content-Type'
60
- header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'])
61
62
 
62
63
  # form parameters
63
64
  form_params = opts[:form_params] || {}
64
65
 
65
66
  # http body (model)
66
- post_body = opts[:body] || @api_client.object_to_http_body(galaxy_collection)
67
+ post_body = opts[:body]
67
68
 
68
69
  # return_type
69
- return_type = opts[:return_type] || 'GalaxyCollectionResponse'
70
+ return_type = opts[:return_type] || 'InlineResponse20011'
70
71
 
71
72
  # auth_names
72
73
  auth_names = opts[:auth_names] || []
@@ -80,62 +81,61 @@ module PulpAnsibleClient
80
81
  :return_type => return_type
81
82
  )
82
83
 
83
- data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
84
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
84
85
  if @api_client.config.debugging
85
- @api_client.config.logger.debug "API called: V2CollectionsApi#create\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
86
+ @api_client.config.logger.debug "API called: V2CollectionsApi#get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
86
87
  end
87
88
  return data, status_code, headers
88
89
  end
89
90
 
90
- # View for Collection models.
91
+ # Queues a task that creates a new Collection from an uploaded artifact.
91
92
  # @param ansible_collection_href [String]
93
+ # @param galaxy_collection [GalaxyCollection]
92
94
  # @param [Hash] opts the optional parameters
93
- # @option opts [Integer] :page A page number within the paginated result set.
94
- # @option opts [String] :fields A list of fields to include in the response.
95
- # @option opts [String] :exclude_fields A list of fields to exclude from the response.
96
- # @return [InlineResponse20011]
97
- def list(ansible_collection_href, opts = {})
98
- data, _status_code, _headers = list_with_http_info(ansible_collection_href, opts)
95
+ # @return [GalaxyCollectionResponse]
96
+ def post(ansible_collection_href, galaxy_collection, opts = {})
97
+ data, _status_code, _headers = post_with_http_info(ansible_collection_href, galaxy_collection, opts)
99
98
  data
100
99
  end
101
100
 
102
- # View for Collection models.
101
+ # Queues a task that creates a new Collection from an uploaded artifact.
103
102
  # @param ansible_collection_href [String]
103
+ # @param galaxy_collection [GalaxyCollection]
104
104
  # @param [Hash] opts the optional parameters
105
- # @option opts [Integer] :page A page number within the paginated result set.
106
- # @option opts [String] :fields A list of fields to include in the response.
107
- # @option opts [String] :exclude_fields A list of fields to exclude from the response.
108
- # @return [Array<(InlineResponse20011, Integer, Hash)>] InlineResponse20011 data, response status code and response headers
109
- def list_with_http_info(ansible_collection_href, opts = {})
105
+ # @return [Array<(GalaxyCollectionResponse, Integer, Hash)>] GalaxyCollectionResponse data, response status code and response headers
106
+ def post_with_http_info(ansible_collection_href, galaxy_collection, opts = {})
110
107
  if @api_client.config.debugging
111
- @api_client.config.logger.debug 'Calling API: V2CollectionsApi.list ...'
108
+ @api_client.config.logger.debug 'Calling API: V2CollectionsApi.post ...'
112
109
  end
113
110
  # verify the required parameter 'ansible_collection_href' is set
114
111
  if @api_client.config.client_side_validation && ansible_collection_href.nil?
115
- fail ArgumentError, "Missing the required parameter 'ansible_collection_href' when calling V2CollectionsApi.list"
112
+ fail ArgumentError, "Missing the required parameter 'ansible_collection_href' when calling V2CollectionsApi.post"
113
+ end
114
+ # verify the required parameter 'galaxy_collection' is set
115
+ if @api_client.config.client_side_validation && galaxy_collection.nil?
116
+ fail ArgumentError, "Missing the required parameter 'galaxy_collection' when calling V2CollectionsApi.post"
116
117
  end
117
118
  # resource path
118
119
  local_var_path = '{ansible_collection_href}api/v2/collections/'.sub('{' + 'ansible_collection_href' + '}', CGI.escape(ansible_collection_href.to_s).gsub('%2F', '/'))
119
120
 
120
121
  # query parameters
121
122
  query_params = opts[:query_params] || {}
122
- query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil?
123
- query_params[:'fields'] = opts[:'fields'] if !opts[:'fields'].nil?
124
- query_params[:'exclude_fields'] = opts[:'exclude_fields'] if !opts[:'exclude_fields'].nil?
125
123
 
126
124
  # header parameters
127
125
  header_params = opts[:header_params] || {}
128
126
  # HTTP header 'Accept' (if needed)
129
127
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
128
+ # HTTP header 'Content-Type'
129
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'])
130
130
 
131
131
  # form parameters
132
132
  form_params = opts[:form_params] || {}
133
133
 
134
134
  # http body (model)
135
- post_body = opts[:body]
135
+ post_body = opts[:body] || @api_client.object_to_http_body(galaxy_collection)
136
136
 
137
137
  # return_type
138
- return_type = opts[:return_type] || 'InlineResponse20011'
138
+ return_type = opts[:return_type] || 'GalaxyCollectionResponse'
139
139
 
140
140
  # auth_names
141
141
  auth_names = opts[:auth_names] || []
@@ -149,9 +149,9 @@ module PulpAnsibleClient
149
149
  :return_type => return_type
150
150
  )
151
151
 
152
- data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
152
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
153
153
  if @api_client.config.debugging
154
- @api_client.config.logger.debug "API called: V2CollectionsApi#list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
154
+ @api_client.config.logger.debug "API called: V2CollectionsApi#post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
155
155
  end
156
156
  return data, status_code, headers
157
157
  end
@@ -239,11 +239,6 @@ module PulpAnsibleClient
239
239
  invalid_properties.push('invalid value for "documentation", the character length must be smaller than or equal to 2000.')
240
240
  end
241
241
 
242
- pattern = Regexp.new(/^(?:[a-z0-9\.\-\+]*):\/\/(?:[^\s:@\/]+(?::[^\s:@\/]*)?@)?(?:(?:25[0-5]|2[0-4]\d|[0-1]?\d?\d)(?:\.(?:25[0-5]|2[0-4]\d|[0-1]?\d?\d)){3}|\[[0-9a-f:\.]+\]|([a-z¡-￿0-9](?:[a-z¡-￿0-9-]{0,61}[a-z¡-￿0-9])?(?:\.(?!-)[a-z¡-￿0-9-]{1,63}(?<!-))*\.(?!-)(?:[a-z¡-￿-]{2,63}|xn--[a-z0-9]{1,59})(?<!-)\.?|localhost))(?::\d{2,5})?(?:[\/?#][^\s]*)?\Z/)
243
- if @documentation !~ pattern
244
- invalid_properties.push("invalid value for \"documentation\", must conform to the pattern #{pattern}.")
245
- end
246
-
247
242
  if @homepage.nil?
248
243
  invalid_properties.push('invalid value for "homepage", homepage cannot be nil.')
249
244
  end
@@ -252,11 +247,6 @@ module PulpAnsibleClient
252
247
  invalid_properties.push('invalid value for "homepage", the character length must be smaller than or equal to 2000.')
253
248
  end
254
249
 
255
- pattern = Regexp.new(/^(?:[a-z0-9\.\-\+]*):\/\/(?:[^\s:@\/]+(?::[^\s:@\/]*)?@)?(?:(?:25[0-5]|2[0-4]\d|[0-1]?\d?\d)(?:\.(?:25[0-5]|2[0-4]\d|[0-1]?\d?\d)){3}|\[[0-9a-f:\.]+\]|([a-z¡-￿0-9](?:[a-z¡-￿0-9-]{0,61}[a-z¡-￿0-9])?(?:\.(?!-)[a-z¡-￿0-9-]{1,63}(?<!-))*\.(?!-)(?:[a-z¡-￿-]{2,63}|xn--[a-z0-9]{1,59})(?<!-)\.?|localhost))(?::\d{2,5})?(?:[\/?#][^\s]*)?\Z/)
256
- if @homepage !~ pattern
257
- invalid_properties.push("invalid value for \"homepage\", must conform to the pattern #{pattern}.")
258
- end
259
-
260
250
  if @issues.nil?
261
251
  invalid_properties.push('invalid value for "issues", issues cannot be nil.')
262
252
  end
@@ -265,11 +255,6 @@ module PulpAnsibleClient
265
255
  invalid_properties.push('invalid value for "issues", the character length must be smaller than or equal to 2000.')
266
256
  end
267
257
 
268
- pattern = Regexp.new(/^(?:[a-z0-9\.\-\+]*):\/\/(?:[^\s:@\/]+(?::[^\s:@\/]*)?@)?(?:(?:25[0-5]|2[0-4]\d|[0-1]?\d?\d)(?:\.(?:25[0-5]|2[0-4]\d|[0-1]?\d?\d)){3}|\[[0-9a-f:\.]+\]|([a-z¡-￿0-9](?:[a-z¡-￿0-9-]{0,61}[a-z¡-￿0-9])?(?:\.(?!-)[a-z¡-￿0-9-]{1,63}(?<!-))*\.(?!-)(?:[a-z¡-￿-]{2,63}|xn--[a-z0-9]{1,59})(?<!-)\.?|localhost))(?::\d{2,5})?(?:[\/?#][^\s]*)?\Z/)
269
- if @issues !~ pattern
270
- invalid_properties.push("invalid value for \"issues\", must conform to the pattern #{pattern}.")
271
- end
272
-
273
258
  if @certification.nil?
274
259
  invalid_properties.push('invalid value for "certification", certification cannot be nil.')
275
260
  end
@@ -302,11 +287,6 @@ module PulpAnsibleClient
302
287
  invalid_properties.push('invalid value for "repository", the character length must be smaller than or equal to 2000.')
303
288
  end
304
289
 
305
- pattern = Regexp.new(/^(?:[a-z0-9\.\-\+]*):\/\/(?:[^\s:@\/]+(?::[^\s:@\/]*)?@)?(?:(?:25[0-5]|2[0-4]\d|[0-1]?\d?\d)(?:\.(?:25[0-5]|2[0-4]\d|[0-1]?\d?\d)){3}|\[[0-9a-f:\.]+\]|([a-z¡-￿0-9](?:[a-z¡-￿0-9-]{0,61}[a-z¡-￿0-9])?(?:\.(?!-)[a-z¡-￿0-9-]{1,63}(?<!-))*\.(?!-)(?:[a-z¡-￿-]{2,63}|xn--[a-z0-9]{1,59})(?<!-)\.?|localhost))(?::\d{2,5})?(?:[\/?#][^\s]*)?\Z/)
306
- if @repository !~ pattern
307
- invalid_properties.push("invalid value for \"repository\", must conform to the pattern #{pattern}.")
308
- end
309
-
310
290
  if @version.nil?
311
291
  invalid_properties.push('invalid value for "version", version cannot be nil.')
312
292
  end
@@ -330,13 +310,10 @@ module PulpAnsibleClient
330
310
  return false if @docs_blob.nil?
331
311
  return false if @documentation.nil?
332
312
  return false if @documentation.to_s.length > 2000
333
- return false if @documentation !~ Regexp.new(/^(?:[a-z0-9\.\-\+]*):\/\/(?:[^\s:@\/]+(?::[^\s:@\/]*)?@)?(?:(?:25[0-5]|2[0-4]\d|[0-1]?\d?\d)(?:\.(?:25[0-5]|2[0-4]\d|[0-1]?\d?\d)){3}|\[[0-9a-f:\.]+\]|([a-z¡-￿0-9](?:[a-z¡-￿0-9-]{0,61}[a-z¡-￿0-9])?(?:\.(?!-)[a-z¡-￿0-9-]{1,63}(?<!-))*\.(?!-)(?:[a-z¡-￿-]{2,63}|xn--[a-z0-9]{1,59})(?<!-)\.?|localhost))(?::\d{2,5})?(?:[\/?#][^\s]*)?\Z/)
334
313
  return false if @homepage.nil?
335
314
  return false if @homepage.to_s.length > 2000
336
- return false if @homepage !~ Regexp.new(/^(?:[a-z0-9\.\-\+]*):\/\/(?:[^\s:@\/]+(?::[^\s:@\/]*)?@)?(?:(?:25[0-5]|2[0-4]\d|[0-1]?\d?\d)(?:\.(?:25[0-5]|2[0-4]\d|[0-1]?\d?\d)){3}|\[[0-9a-f:\.]+\]|([a-z¡-￿0-9](?:[a-z¡-￿0-9-]{0,61}[a-z¡-￿0-9])?(?:\.(?!-)[a-z¡-￿0-9-]{1,63}(?<!-))*\.(?!-)(?:[a-z¡-￿-]{2,63}|xn--[a-z0-9]{1,59})(?<!-)\.?|localhost))(?::\d{2,5})?(?:[\/?#][^\s]*)?\Z/)
337
315
  return false if @issues.nil?
338
316
  return false if @issues.to_s.length > 2000
339
- return false if @issues !~ Regexp.new(/^(?:[a-z0-9\.\-\+]*):\/\/(?:[^\s:@\/]+(?::[^\s:@\/]*)?@)?(?:(?:25[0-5]|2[0-4]\d|[0-1]?\d?\d)(?:\.(?:25[0-5]|2[0-4]\d|[0-1]?\d?\d)){3}|\[[0-9a-f:\.]+\]|([a-z¡-￿0-9](?:[a-z¡-￿0-9-]{0,61}[a-z¡-￿0-9])?(?:\.(?!-)[a-z¡-￿0-9-]{1,63}(?<!-))*\.(?!-)(?:[a-z¡-￿-]{2,63}|xn--[a-z0-9]{1,59})(?<!-)\.?|localhost))(?::\d{2,5})?(?:[\/?#][^\s]*)?\Z/)
340
317
  return false if @certification.nil?
341
318
  return false if @license.nil?
342
319
  return false if @name.nil?
@@ -345,7 +322,6 @@ module PulpAnsibleClient
345
322
  return false if @namespace.to_s.length > 32
346
323
  return false if @repository.nil?
347
324
  return false if @repository.to_s.length > 2000
348
- return false if @repository !~ Regexp.new(/^(?:[a-z0-9\.\-\+]*):\/\/(?:[^\s:@\/]+(?::[^\s:@\/]*)?@)?(?:(?:25[0-5]|2[0-4]\d|[0-1]?\d?\d)(?:\.(?:25[0-5]|2[0-4]\d|[0-1]?\d?\d)){3}|\[[0-9a-f:\.]+\]|([a-z¡-￿0-9](?:[a-z¡-￿0-9-]{0,61}[a-z¡-￿0-9])?(?:\.(?!-)[a-z¡-￿0-9-]{1,63}(?<!-))*\.(?!-)(?:[a-z¡-￿-]{2,63}|xn--[a-z0-9]{1,59})(?<!-)\.?|localhost))(?::\d{2,5})?(?:[\/?#][^\s]*)?\Z/)
349
325
  return false if @version.nil?
350
326
  return false if @version.to_s.length > 32
351
327
  true
@@ -362,11 +338,6 @@ module PulpAnsibleClient
362
338
  fail ArgumentError, 'invalid value for "documentation", the character length must be smaller than or equal to 2000.'
363
339
  end
364
340
 
365
- pattern = Regexp.new(/^(?:[a-z0-9\.\-\+]*):\/\/(?:[^\s:@\/]+(?::[^\s:@\/]*)?@)?(?:(?:25[0-5]|2[0-4]\d|[0-1]?\d?\d)(?:\.(?:25[0-5]|2[0-4]\d|[0-1]?\d?\d)){3}|\[[0-9a-f:\.]+\]|([a-z¡-￿0-9](?:[a-z¡-￿0-9-]{0,61}[a-z¡-￿0-9])?(?:\.(?!-)[a-z¡-￿0-9-]{1,63}(?<!-))*\.(?!-)(?:[a-z¡-￿-]{2,63}|xn--[a-z0-9]{1,59})(?<!-)\.?|localhost))(?::\d{2,5})?(?:[\/?#][^\s]*)?\Z/)
366
- if documentation !~ pattern
367
- fail ArgumentError, "invalid value for \"documentation\", must conform to the pattern #{pattern}."
368
- end
369
-
370
341
  @documentation = documentation
371
342
  end
372
343
 
@@ -381,11 +352,6 @@ module PulpAnsibleClient
381
352
  fail ArgumentError, 'invalid value for "homepage", the character length must be smaller than or equal to 2000.'
382
353
  end
383
354
 
384
- pattern = Regexp.new(/^(?:[a-z0-9\.\-\+]*):\/\/(?:[^\s:@\/]+(?::[^\s:@\/]*)?@)?(?:(?:25[0-5]|2[0-4]\d|[0-1]?\d?\d)(?:\.(?:25[0-5]|2[0-4]\d|[0-1]?\d?\d)){3}|\[[0-9a-f:\.]+\]|([a-z¡-￿0-9](?:[a-z¡-￿0-9-]{0,61}[a-z¡-￿0-9])?(?:\.(?!-)[a-z¡-￿0-9-]{1,63}(?<!-))*\.(?!-)(?:[a-z¡-￿-]{2,63}|xn--[a-z0-9]{1,59})(?<!-)\.?|localhost))(?::\d{2,5})?(?:[\/?#][^\s]*)?\Z/)
385
- if homepage !~ pattern
386
- fail ArgumentError, "invalid value for \"homepage\", must conform to the pattern #{pattern}."
387
- end
388
-
389
355
  @homepage = homepage
390
356
  end
391
357
 
@@ -400,11 +366,6 @@ module PulpAnsibleClient
400
366
  fail ArgumentError, 'invalid value for "issues", the character length must be smaller than or equal to 2000.'
401
367
  end
402
368
 
403
- pattern = Regexp.new(/^(?:[a-z0-9\.\-\+]*):\/\/(?:[^\s:@\/]+(?::[^\s:@\/]*)?@)?(?:(?:25[0-5]|2[0-4]\d|[0-1]?\d?\d)(?:\.(?:25[0-5]|2[0-4]\d|[0-1]?\d?\d)){3}|\[[0-9a-f:\.]+\]|([a-z¡-￿0-9](?:[a-z¡-￿0-9-]{0,61}[a-z¡-￿0-9])?(?:\.(?!-)[a-z¡-￿0-9-]{1,63}(?<!-))*\.(?!-)(?:[a-z¡-￿-]{2,63}|xn--[a-z0-9]{1,59})(?<!-)\.?|localhost))(?::\d{2,5})?(?:[\/?#][^\s]*)?\Z/)
404
- if issues !~ pattern
405
- fail ArgumentError, "invalid value for \"issues\", must conform to the pattern #{pattern}."
406
- end
407
-
408
369
  @issues = issues
409
370
  end
410
371
 
@@ -447,11 +408,6 @@ module PulpAnsibleClient
447
408
  fail ArgumentError, 'invalid value for "repository", the character length must be smaller than or equal to 2000.'
448
409
  end
449
410
 
450
- pattern = Regexp.new(/^(?:[a-z0-9\.\-\+]*):\/\/(?:[^\s:@\/]+(?::[^\s:@\/]*)?@)?(?:(?:25[0-5]|2[0-4]\d|[0-1]?\d?\d)(?:\.(?:25[0-5]|2[0-4]\d|[0-1]?\d?\d)){3}|\[[0-9a-f:\.]+\]|([a-z¡-￿0-9](?:[a-z¡-￿0-9-]{0,61}[a-z¡-￿0-9])?(?:\.(?!-)[a-z¡-￿0-9-]{1,63}(?<!-))*\.(?!-)(?:[a-z¡-￿-]{2,63}|xn--[a-z0-9]{1,59})(?<!-)\.?|localhost))(?::\d{2,5})?(?:[\/?#][^\s]*)?\Z/)
451
- if repository !~ pattern
452
- fail ArgumentError, "invalid value for \"repository\", must conform to the pattern #{pattern}."
453
- end
454
-
455
411
  @repository = repository
456
412
  end
457
413
 
@@ -15,14 +15,14 @@ require 'date'
15
15
  module PulpAnsibleClient
16
16
  # A serializer for CollectionVersion Content.
17
17
  class AnsibleCollectionVersionResponse
18
+ attr_accessor :pulp_href
19
+
18
20
  # Artifact file representing the physical content
19
21
  attr_accessor :artifact
20
22
 
21
23
  # Timestamp of creation.
22
24
  attr_accessor :pulp_created
23
25
 
24
- attr_accessor :pulp_href
25
-
26
26
  # The MD5 checksum if available.
27
27
  attr_accessor :md5
28
28
 
@@ -94,9 +94,9 @@ module PulpAnsibleClient
94
94
  # Attribute mapping from ruby-style variable name to JSON key.
95
95
  def self.attribute_map
96
96
  {
97
+ :'pulp_href' => :'pulp_href',
97
98
  :'artifact' => :'artifact',
98
99
  :'pulp_created' => :'pulp_created',
99
- :'pulp_href' => :'pulp_href',
100
100
  :'md5' => :'md5',
101
101
  :'sha1' => :'sha1',
102
102
  :'sha224' => :'sha224',
@@ -126,9 +126,9 @@ module PulpAnsibleClient
126
126
  # Attribute type mapping.
127
127
  def self.openapi_types
128
128
  {
129
+ :'pulp_href' => :'String',
129
130
  :'artifact' => :'String',
130
131
  :'pulp_created' => :'DateTime',
131
- :'pulp_href' => :'String',
132
132
  :'md5' => :'String',
133
133
  :'sha1' => :'String',
134
134
  :'sha224' => :'String',
@@ -176,6 +176,10 @@ module PulpAnsibleClient
176
176
  h[k.to_sym] = v
177
177
  }
178
178
 
179
+ if attributes.key?(:'pulp_href')
180
+ self.pulp_href = attributes[:'pulp_href']
181
+ end
182
+
179
183
  if attributes.key?(:'artifact')
180
184
  self.artifact = attributes[:'artifact']
181
185
  end
@@ -184,10 +188,6 @@ module PulpAnsibleClient
184
188
  self.pulp_created = attributes[:'pulp_created']
185
189
  end
186
190
 
187
- if attributes.key?(:'pulp_href')
188
- self.pulp_href = attributes[:'pulp_href']
189
- end
190
-
191
191
  if attributes.key?(:'md5')
192
192
  self.md5 = attributes[:'md5']
193
193
  end
@@ -329,11 +329,6 @@ module PulpAnsibleClient
329
329
  invalid_properties.push('invalid value for "documentation", the character length must be smaller than or equal to 2000.')
330
330
  end
331
331
 
332
- pattern = Regexp.new(/^(?:[a-z0-9\.\-\+]*):\/\/(?:[^\s:@\/]+(?::[^\s:@\/]*)?@)?(?:(?:25[0-5]|2[0-4]\d|[0-1]?\d?\d)(?:\.(?:25[0-5]|2[0-4]\d|[0-1]?\d?\d)){3}|\[[0-9a-f:\.]+\]|([a-z¡-￿0-9](?:[a-z¡-￿0-9-]{0,61}[a-z¡-￿0-9])?(?:\.(?!-)[a-z¡-￿0-9-]{1,63}(?<!-))*\.(?!-)(?:[a-z¡-￿-]{2,63}|xn--[a-z0-9]{1,59})(?<!-)\.?|localhost))(?::\d{2,5})?(?:[\/?#][^\s]*)?\Z/)
333
- if @documentation !~ pattern
334
- invalid_properties.push("invalid value for \"documentation\", must conform to the pattern #{pattern}.")
335
- end
336
-
337
332
  if @homepage.nil?
338
333
  invalid_properties.push('invalid value for "homepage", homepage cannot be nil.')
339
334
  end
@@ -342,11 +337,6 @@ module PulpAnsibleClient
342
337
  invalid_properties.push('invalid value for "homepage", the character length must be smaller than or equal to 2000.')
343
338
  end
344
339
 
345
- pattern = Regexp.new(/^(?:[a-z0-9\.\-\+]*):\/\/(?:[^\s:@\/]+(?::[^\s:@\/]*)?@)?(?:(?:25[0-5]|2[0-4]\d|[0-1]?\d?\d)(?:\.(?:25[0-5]|2[0-4]\d|[0-1]?\d?\d)){3}|\[[0-9a-f:\.]+\]|([a-z¡-￿0-9](?:[a-z¡-￿0-9-]{0,61}[a-z¡-￿0-9])?(?:\.(?!-)[a-z¡-￿0-9-]{1,63}(?<!-))*\.(?!-)(?:[a-z¡-￿-]{2,63}|xn--[a-z0-9]{1,59})(?<!-)\.?|localhost))(?::\d{2,5})?(?:[\/?#][^\s]*)?\Z/)
346
- if @homepage !~ pattern
347
- invalid_properties.push("invalid value for \"homepage\", must conform to the pattern #{pattern}.")
348
- end
349
-
350
340
  if @issues.nil?
351
341
  invalid_properties.push('invalid value for "issues", issues cannot be nil.')
352
342
  end
@@ -355,11 +345,6 @@ module PulpAnsibleClient
355
345
  invalid_properties.push('invalid value for "issues", the character length must be smaller than or equal to 2000.')
356
346
  end
357
347
 
358
- pattern = Regexp.new(/^(?:[a-z0-9\.\-\+]*):\/\/(?:[^\s:@\/]+(?::[^\s:@\/]*)?@)?(?:(?:25[0-5]|2[0-4]\d|[0-1]?\d?\d)(?:\.(?:25[0-5]|2[0-4]\d|[0-1]?\d?\d)){3}|\[[0-9a-f:\.]+\]|([a-z¡-￿0-9](?:[a-z¡-￿0-9-]{0,61}[a-z¡-￿0-9])?(?:\.(?!-)[a-z¡-￿0-9-]{1,63}(?<!-))*\.(?!-)(?:[a-z¡-￿-]{2,63}|xn--[a-z0-9]{1,59})(?<!-)\.?|localhost))(?::\d{2,5})?(?:[\/?#][^\s]*)?\Z/)
359
- if @issues !~ pattern
360
- invalid_properties.push("invalid value for \"issues\", must conform to the pattern #{pattern}.")
361
- end
362
-
363
348
  if @certification.nil?
364
349
  invalid_properties.push('invalid value for "certification", certification cannot be nil.')
365
350
  end
@@ -392,11 +377,6 @@ module PulpAnsibleClient
392
377
  invalid_properties.push('invalid value for "repository", the character length must be smaller than or equal to 2000.')
393
378
  end
394
379
 
395
- pattern = Regexp.new(/^(?:[a-z0-9\.\-\+]*):\/\/(?:[^\s:@\/]+(?::[^\s:@\/]*)?@)?(?:(?:25[0-5]|2[0-4]\d|[0-1]?\d?\d)(?:\.(?:25[0-5]|2[0-4]\d|[0-1]?\d?\d)){3}|\[[0-9a-f:\.]+\]|([a-z¡-￿0-9](?:[a-z¡-￿0-9-]{0,61}[a-z¡-￿0-9])?(?:\.(?!-)[a-z¡-￿0-9-]{1,63}(?<!-))*\.(?!-)(?:[a-z¡-￿-]{2,63}|xn--[a-z0-9]{1,59})(?<!-)\.?|localhost))(?::\d{2,5})?(?:[\/?#][^\s]*)?\Z/)
396
- if @repository !~ pattern
397
- invalid_properties.push("invalid value for \"repository\", must conform to the pattern #{pattern}.")
398
- end
399
-
400
380
  if @version.nil?
401
381
  invalid_properties.push('invalid value for "version", version cannot be nil.')
402
382
  end
@@ -420,13 +400,10 @@ module PulpAnsibleClient
420
400
  return false if @docs_blob.nil?
421
401
  return false if @documentation.nil?
422
402
  return false if @documentation.to_s.length > 2000
423
- return false if @documentation !~ Regexp.new(/^(?:[a-z0-9\.\-\+]*):\/\/(?:[^\s:@\/]+(?::[^\s:@\/]*)?@)?(?:(?:25[0-5]|2[0-4]\d|[0-1]?\d?\d)(?:\.(?:25[0-5]|2[0-4]\d|[0-1]?\d?\d)){3}|\[[0-9a-f:\.]+\]|([a-z¡-￿0-9](?:[a-z¡-￿0-9-]{0,61}[a-z¡-￿0-9])?(?:\.(?!-)[a-z¡-￿0-9-]{1,63}(?<!-))*\.(?!-)(?:[a-z¡-￿-]{2,63}|xn--[a-z0-9]{1,59})(?<!-)\.?|localhost))(?::\d{2,5})?(?:[\/?#][^\s]*)?\Z/)
424
403
  return false if @homepage.nil?
425
404
  return false if @homepage.to_s.length > 2000
426
- return false if @homepage !~ Regexp.new(/^(?:[a-z0-9\.\-\+]*):\/\/(?:[^\s:@\/]+(?::[^\s:@\/]*)?@)?(?:(?:25[0-5]|2[0-4]\d|[0-1]?\d?\d)(?:\.(?:25[0-5]|2[0-4]\d|[0-1]?\d?\d)){3}|\[[0-9a-f:\.]+\]|([a-z¡-￿0-9](?:[a-z¡-￿0-9-]{0,61}[a-z¡-￿0-9])?(?:\.(?!-)[a-z¡-￿0-9-]{1,63}(?<!-))*\.(?!-)(?:[a-z¡-￿-]{2,63}|xn--[a-z0-9]{1,59})(?<!-)\.?|localhost))(?::\d{2,5})?(?:[\/?#][^\s]*)?\Z/)
427
405
  return false if @issues.nil?
428
406
  return false if @issues.to_s.length > 2000
429
- return false if @issues !~ Regexp.new(/^(?:[a-z0-9\.\-\+]*):\/\/(?:[^\s:@\/]+(?::[^\s:@\/]*)?@)?(?:(?:25[0-5]|2[0-4]\d|[0-1]?\d?\d)(?:\.(?:25[0-5]|2[0-4]\d|[0-1]?\d?\d)){3}|\[[0-9a-f:\.]+\]|([a-z¡-￿0-9](?:[a-z¡-￿0-9-]{0,61}[a-z¡-￿0-9])?(?:\.(?!-)[a-z¡-￿0-9-]{1,63}(?<!-))*\.(?!-)(?:[a-z¡-￿-]{2,63}|xn--[a-z0-9]{1,59})(?<!-)\.?|localhost))(?::\d{2,5})?(?:[\/?#][^\s]*)?\Z/)
430
407
  return false if @certification.nil?
431
408
  return false if @license.nil?
432
409
  return false if @name.nil?
@@ -435,7 +412,6 @@ module PulpAnsibleClient
435
412
  return false if @namespace.to_s.length > 32
436
413
  return false if @repository.nil?
437
414
  return false if @repository.to_s.length > 2000
438
- return false if @repository !~ Regexp.new(/^(?:[a-z0-9\.\-\+]*):\/\/(?:[^\s:@\/]+(?::[^\s:@\/]*)?@)?(?:(?:25[0-5]|2[0-4]\d|[0-1]?\d?\d)(?:\.(?:25[0-5]|2[0-4]\d|[0-1]?\d?\d)){3}|\[[0-9a-f:\.]+\]|([a-z¡-￿0-9](?:[a-z¡-￿0-9-]{0,61}[a-z¡-￿0-9])?(?:\.(?!-)[a-z¡-￿0-9-]{1,63}(?<!-))*\.(?!-)(?:[a-z¡-￿-]{2,63}|xn--[a-z0-9]{1,59})(?<!-)\.?|localhost))(?::\d{2,5})?(?:[\/?#][^\s]*)?\Z/)
439
415
  return false if @version.nil?
440
416
  return false if @version.to_s.length > 32
441
417
  true
@@ -452,11 +428,6 @@ module PulpAnsibleClient
452
428
  fail ArgumentError, 'invalid value for "documentation", the character length must be smaller than or equal to 2000.'
453
429
  end
454
430
 
455
- pattern = Regexp.new(/^(?:[a-z0-9\.\-\+]*):\/\/(?:[^\s:@\/]+(?::[^\s:@\/]*)?@)?(?:(?:25[0-5]|2[0-4]\d|[0-1]?\d?\d)(?:\.(?:25[0-5]|2[0-4]\d|[0-1]?\d?\d)){3}|\[[0-9a-f:\.]+\]|([a-z¡-￿0-9](?:[a-z¡-￿0-9-]{0,61}[a-z¡-￿0-9])?(?:\.(?!-)[a-z¡-￿0-9-]{1,63}(?<!-))*\.(?!-)(?:[a-z¡-￿-]{2,63}|xn--[a-z0-9]{1,59})(?<!-)\.?|localhost))(?::\d{2,5})?(?:[\/?#][^\s]*)?\Z/)
456
- if documentation !~ pattern
457
- fail ArgumentError, "invalid value for \"documentation\", must conform to the pattern #{pattern}."
458
- end
459
-
460
431
  @documentation = documentation
461
432
  end
462
433
 
@@ -471,11 +442,6 @@ module PulpAnsibleClient
471
442
  fail ArgumentError, 'invalid value for "homepage", the character length must be smaller than or equal to 2000.'
472
443
  end
473
444
 
474
- pattern = Regexp.new(/^(?:[a-z0-9\.\-\+]*):\/\/(?:[^\s:@\/]+(?::[^\s:@\/]*)?@)?(?:(?:25[0-5]|2[0-4]\d|[0-1]?\d?\d)(?:\.(?:25[0-5]|2[0-4]\d|[0-1]?\d?\d)){3}|\[[0-9a-f:\.]+\]|([a-z¡-￿0-9](?:[a-z¡-￿0-9-]{0,61}[a-z¡-￿0-9])?(?:\.(?!-)[a-z¡-￿0-9-]{1,63}(?<!-))*\.(?!-)(?:[a-z¡-￿-]{2,63}|xn--[a-z0-9]{1,59})(?<!-)\.?|localhost))(?::\d{2,5})?(?:[\/?#][^\s]*)?\Z/)
475
- if homepage !~ pattern
476
- fail ArgumentError, "invalid value for \"homepage\", must conform to the pattern #{pattern}."
477
- end
478
-
479
445
  @homepage = homepage
480
446
  end
481
447
 
@@ -490,11 +456,6 @@ module PulpAnsibleClient
490
456
  fail ArgumentError, 'invalid value for "issues", the character length must be smaller than or equal to 2000.'
491
457
  end
492
458
 
493
- pattern = Regexp.new(/^(?:[a-z0-9\.\-\+]*):\/\/(?:[^\s:@\/]+(?::[^\s:@\/]*)?@)?(?:(?:25[0-5]|2[0-4]\d|[0-1]?\d?\d)(?:\.(?:25[0-5]|2[0-4]\d|[0-1]?\d?\d)){3}|\[[0-9a-f:\.]+\]|([a-z¡-￿0-9](?:[a-z¡-￿0-9-]{0,61}[a-z¡-￿0-9])?(?:\.(?!-)[a-z¡-￿0-9-]{1,63}(?<!-))*\.(?!-)(?:[a-z¡-￿-]{2,63}|xn--[a-z0-9]{1,59})(?<!-)\.?|localhost))(?::\d{2,5})?(?:[\/?#][^\s]*)?\Z/)
494
- if issues !~ pattern
495
- fail ArgumentError, "invalid value for \"issues\", must conform to the pattern #{pattern}."
496
- end
497
-
498
459
  @issues = issues
499
460
  end
500
461
 
@@ -537,11 +498,6 @@ module PulpAnsibleClient
537
498
  fail ArgumentError, 'invalid value for "repository", the character length must be smaller than or equal to 2000.'
538
499
  end
539
500
 
540
- pattern = Regexp.new(/^(?:[a-z0-9\.\-\+]*):\/\/(?:[^\s:@\/]+(?::[^\s:@\/]*)?@)?(?:(?:25[0-5]|2[0-4]\d|[0-1]?\d?\d)(?:\.(?:25[0-5]|2[0-4]\d|[0-1]?\d?\d)){3}|\[[0-9a-f:\.]+\]|([a-z¡-￿0-9](?:[a-z¡-￿0-9-]{0,61}[a-z¡-￿0-9])?(?:\.(?!-)[a-z¡-￿0-9-]{1,63}(?<!-))*\.(?!-)(?:[a-z¡-￿-]{2,63}|xn--[a-z0-9]{1,59})(?<!-)\.?|localhost))(?::\d{2,5})?(?:[\/?#][^\s]*)?\Z/)
541
- if repository !~ pattern
542
- fail ArgumentError, "invalid value for \"repository\", must conform to the pattern #{pattern}."
543
- end
544
-
545
501
  @repository = repository
546
502
  end
547
503
 
@@ -564,9 +520,9 @@ module PulpAnsibleClient
564
520
  def ==(o)
565
521
  return true if self.equal?(o)
566
522
  self.class == o.class &&
523
+ pulp_href == o.pulp_href &&
567
524
  artifact == o.artifact &&
568
525
  pulp_created == o.pulp_created &&
569
- pulp_href == o.pulp_href &&
570
526
  md5 == o.md5 &&
571
527
  sha1 == o.sha1 &&
572
528
  sha224 == o.sha224 &&
@@ -601,7 +557,7 @@ module PulpAnsibleClient
601
557
  # Calculates hash code according to all attributes.
602
558
  # @return [Integer] Hash code
603
559
  def hash
604
- [artifact, pulp_created, pulp_href, md5, sha1, sha224, sha256, sha384, sha512, id, authors, contents, dependencies, description, docs_blob, documentation, homepage, issues, certification, license, name, namespace, repository, tags, version, deprecated].hash
560
+ [pulp_href, artifact, pulp_created, md5, sha1, sha224, sha256, sha384, sha512, id, authors, contents, dependencies, description, docs_blob, documentation, homepage, issues, certification, license, name, namespace, repository, tags, version, deprecated].hash
605
561
  end
606
562
 
607
563
  # Builds the object from hash
@@ -15,14 +15,14 @@ require 'date'
15
15
  module PulpAnsibleClient
16
16
  # A serializer for Role versions.
17
17
  class AnsibleRoleResponse
18
+ attr_accessor :pulp_href
19
+
18
20
  # Artifact file representing the physical content
19
21
  attr_accessor :artifact
20
22
 
21
23
  # Timestamp of creation.
22
24
  attr_accessor :pulp_created
23
25
 
24
- attr_accessor :pulp_href
25
-
26
26
  attr_accessor :version
27
27
 
28
28
  attr_accessor :name
@@ -32,9 +32,9 @@ module PulpAnsibleClient
32
32
  # Attribute mapping from ruby-style variable name to JSON key.
33
33
  def self.attribute_map
34
34
  {
35
+ :'pulp_href' => :'pulp_href',
35
36
  :'artifact' => :'artifact',
36
37
  :'pulp_created' => :'pulp_created',
37
- :'pulp_href' => :'pulp_href',
38
38
  :'version' => :'version',
39
39
  :'name' => :'name',
40
40
  :'namespace' => :'namespace'
@@ -44,9 +44,9 @@ module PulpAnsibleClient
44
44
  # Attribute type mapping.
45
45
  def self.openapi_types
46
46
  {
47
+ :'pulp_href' => :'String',
47
48
  :'artifact' => :'String',
48
49
  :'pulp_created' => :'DateTime',
49
- :'pulp_href' => :'String',
50
50
  :'version' => :'String',
51
51
  :'name' => :'String',
52
52
  :'namespace' => :'String'
@@ -74,6 +74,10 @@ module PulpAnsibleClient
74
74
  h[k.to_sym] = v
75
75
  }
76
76
 
77
+ if attributes.key?(:'pulp_href')
78
+ self.pulp_href = attributes[:'pulp_href']
79
+ end
80
+
77
81
  if attributes.key?(:'artifact')
78
82
  self.artifact = attributes[:'artifact']
79
83
  end
@@ -82,10 +86,6 @@ module PulpAnsibleClient
82
86
  self.pulp_created = attributes[:'pulp_created']
83
87
  end
84
88
 
85
- if attributes.key?(:'pulp_href')
86
- self.pulp_href = attributes[:'pulp_href']
87
- end
88
-
89
89
  if attributes.key?(:'version')
90
90
  self.version = attributes[:'version']
91
91
  end
@@ -137,9 +137,9 @@ module PulpAnsibleClient
137
137
  def ==(o)
138
138
  return true if self.equal?(o)
139
139
  self.class == o.class &&
140
+ pulp_href == o.pulp_href &&
140
141
  artifact == o.artifact &&
141
142
  pulp_created == o.pulp_created &&
142
- pulp_href == o.pulp_href &&
143
143
  version == o.version &&
144
144
  name == o.name &&
145
145
  namespace == o.namespace
@@ -154,7 +154,7 @@ module PulpAnsibleClient
154
154
  # Calculates hash code according to all attributes.
155
155
  # @return [Integer] Hash code
156
156
  def hash
157
- [artifact, pulp_created, pulp_href, version, name, namespace].hash
157
+ [pulp_href, artifact, pulp_created, version, name, namespace].hash
158
158
  end
159
159
 
160
160
  # Builds the object from hash