pulp_2to3_migration_client 0.3.0b1.dev01595619351 → 0.3.0b1.dev01595705725

Sign up to get free protection for your applications and to get access to all the features.
Files changed (48) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +21 -20
  3. data/docs/InlineResponse200.md +3 -3
  4. data/docs/InlineResponse2001.md +3 -3
  5. data/docs/InlineResponse2002.md +3 -3
  6. data/docs/MigrationPlansApi.md +39 -43
  7. data/docs/Pulp2ContentApi.md +152 -0
  8. data/docs/{Pulp2repositoriesApi.md → Pulp2RepositoriesApi.md} +27 -29
  9. data/docs/Pulp2to3MigrationMigrationPlan.md +1 -5
  10. data/docs/Pulp2to3MigrationMigrationPlanResponse.md +21 -0
  11. data/docs/{Pulp2to3MigrationPulp2Content.md → Pulp2to3MigrationPulp2ContentResponse.md} +3 -3
  12. data/docs/{Pulp2to3MigrationPulp2Repository.md → Pulp2to3MigrationPulp2RepositoryResponse.md} +6 -6
  13. data/lib/pulp_2to3_migration_client.rb +7 -6
  14. data/lib/pulp_2to3_migration_client/api/migration_plans_api.rb +42 -50
  15. data/lib/pulp_2to3_migration_client/api/{pulp2content_api.rb → pulp2_content_api.rb} +46 -50
  16. data/lib/pulp_2to3_migration_client/api/{pulp2repositories_api.rb → pulp2_repositories_api.rb} +29 -33
  17. data/lib/pulp_2to3_migration_client/api_client.rb +2 -2
  18. data/lib/pulp_2to3_migration_client/api_error.rb +2 -2
  19. data/lib/pulp_2to3_migration_client/configuration.rb +3 -3
  20. data/lib/pulp_2to3_migration_client/models/async_operation_response.rb +3 -2
  21. data/lib/pulp_2to3_migration_client/models/inline_response200.rb +3 -13
  22. data/lib/pulp_2to3_migration_client/models/inline_response2001.rb +3 -13
  23. data/lib/pulp_2to3_migration_client/models/inline_response2002.rb +3 -13
  24. data/lib/pulp_2to3_migration_client/models/migration_plan_run.rb +3 -2
  25. data/lib/pulp_2to3_migration_client/models/pulp2to3_migration_migration_plan.rb +4 -22
  26. data/lib/pulp_2to3_migration_client/models/pulp2to3_migration_migration_plan_response.rb +232 -0
  27. data/lib/pulp_2to3_migration_client/models/{pulp2to3_migration_pulp2_content.rb → pulp2to3_migration_pulp2_content_response.rb} +7 -59
  28. data/lib/pulp_2to3_migration_client/models/{pulp2to3_migration_pulp2_repository.rb → pulp2to3_migration_pulp2_repository_response.rb} +11 -108
  29. data/lib/pulp_2to3_migration_client/version.rb +3 -3
  30. data/pulp_2to3_migration_client.gemspec +4 -4
  31. data/spec/api/migration_plans_api_spec.rb +10 -14
  32. data/spec/api/pulp2_content_api_spec.rb +74 -0
  33. data/spec/api/{pulp2repositories_api_spec.rb → pulp2_repositories_api_spec.rb} +15 -17
  34. data/spec/api_client_spec.rb +2 -2
  35. data/spec/configuration_spec.rb +2 -2
  36. data/spec/models/async_operation_response_spec.rb +2 -2
  37. data/spec/models/inline_response2001_spec.rb +2 -2
  38. data/spec/models/inline_response2002_spec.rb +2 -2
  39. data/spec/models/inline_response200_spec.rb +2 -2
  40. data/spec/models/migration_plan_run_spec.rb +2 -2
  41. data/spec/models/pulp2to3_migration_migration_plan_response_spec.rb +53 -0
  42. data/spec/models/pulp2to3_migration_migration_plan_spec.rb +2 -14
  43. data/spec/models/{pulp2to3_migration_pulp2_content_spec.rb → pulp2to3_migration_pulp2_content_response_spec.rb} +8 -8
  44. data/spec/models/{pulp2to3_migration_pulp2_repository_spec.rb → pulp2to3_migration_pulp2_repository_response_spec.rb} +8 -8
  45. data/spec/spec_helper.rb +2 -2
  46. metadata +24 -20
  47. data/docs/Pulp2contentApi.md +0 -154
  48. data/spec/api/pulp2content_api_spec.rb +0 -76
@@ -1,10 +1,10 @@
1
1
  =begin
2
2
  #Pulp 3 API
3
3
 
4
- #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4
+ #Fetch, Upload, Organize, and Distribute Software Packages
5
5
 
6
6
  The version of the OpenAPI document: v3
7
-
7
+ Contact: pulp-list@redhat.com
8
8
  Generated by: https://openapi-generator.tech
9
9
  OpenAPI Generator version: 4.2.3
10
10
 
@@ -13,29 +13,28 @@ OpenAPI Generator version: 4.2.3
13
13
  require 'cgi'
14
14
 
15
15
  module Pulp2to3MigrationClient
16
- class Pulp2contentApi
16
+ class Pulp2ContentApi
17
17
  attr_accessor :api_client
18
18
 
19
19
  def initialize(api_client = ApiClient.default)
20
20
  @api_client = api_client
21
21
  end
22
- # List pulp2 contents
23
22
  # ViewSet for Pulp2Content model.
24
23
  # @param [Hash] opts the optional parameters
25
- # @option opts [String] :ordering Which field to use when ordering the results.
26
- # @option opts [String] :pulp2_id
27
- # @option opts [String] :pulp2_id__in Filter results where pulp2_id is in a comma-separated list of values
28
- # @option opts [String] :pulp2_content_type_id
29
- # @option opts [String] :pulp2_content_type_id__in Filter results where pulp2_content_type_id is in a comma-separated list of values
30
- # @option opts [Float] :pulp2_last_updated__lt Filter results where pulp2_last_updated is less than value
31
- # @option opts [Float] :pulp2_last_updated__lte Filter results where pulp2_last_updated is less than or equal to value
32
- # @option opts [Float] :pulp2_last_updated__gt Filter results where pulp2_last_updated is greater than value
33
- # @option opts [Float] :pulp2_last_updated__gte Filter results where pulp2_last_updated is greater than or equal to value
34
- # @option opts [Float] :pulp2_last_updated__range Filter results where pulp2_last_updated is between two comma separated values
35
- # @option opts [String] :pulp3_content Foreign Key referenced by HREF
36
- # @option opts [String] :pulp2_last_updated ISO 8601 formatted dates are supported
37
24
  # @option opts [Integer] :limit Number of results to return per page.
38
25
  # @option opts [Integer] :offset The initial index from which to return the results.
26
+ # @option opts [String] :ordering Which field to use when ordering the results.
27
+ # @option opts [String] :pulp2_content_type_id pulp2_content_type_id
28
+ # @option opts [String] :pulp2_content_type_id__in pulp2_content_type_id__in
29
+ # @option opts [String] :pulp2_id pulp2_id
30
+ # @option opts [String] :pulp2_id__in pulp2_id__in
31
+ # @option opts [String] :pulp2_last_updated pulp2_last_updated
32
+ # @option opts [String] :pulp2_last_updated__gt pulp2_last_updated__gt
33
+ # @option opts [String] :pulp2_last_updated__gte pulp2_last_updated__gte
34
+ # @option opts [String] :pulp2_last_updated__lt pulp2_last_updated__lt
35
+ # @option opts [String] :pulp2_last_updated__lte pulp2_last_updated__lte
36
+ # @option opts [String] :pulp2_last_updated__range pulp2_last_updated__range
37
+ # @option opts [String] :pulp3_content pulp3_content
39
38
  # @option opts [String] :fields A list of fields to include in the response.
40
39
  # @option opts [String] :exclude_fields A list of fields to exclude from the response.
41
40
  # @return [InlineResponse2001]
@@ -44,49 +43,48 @@ module Pulp2to3MigrationClient
44
43
  data
45
44
  end
46
45
 
47
- # List pulp2 contents
48
46
  # ViewSet for Pulp2Content model.
49
47
  # @param [Hash] opts the optional parameters
50
- # @option opts [String] :ordering Which field to use when ordering the results.
51
- # @option opts [String] :pulp2_id
52
- # @option opts [String] :pulp2_id__in Filter results where pulp2_id is in a comma-separated list of values
53
- # @option opts [String] :pulp2_content_type_id
54
- # @option opts [String] :pulp2_content_type_id__in Filter results where pulp2_content_type_id is in a comma-separated list of values
55
- # @option opts [Float] :pulp2_last_updated__lt Filter results where pulp2_last_updated is less than value
56
- # @option opts [Float] :pulp2_last_updated__lte Filter results where pulp2_last_updated is less than or equal to value
57
- # @option opts [Float] :pulp2_last_updated__gt Filter results where pulp2_last_updated is greater than value
58
- # @option opts [Float] :pulp2_last_updated__gte Filter results where pulp2_last_updated is greater than or equal to value
59
- # @option opts [Float] :pulp2_last_updated__range Filter results where pulp2_last_updated is between two comma separated values
60
- # @option opts [String] :pulp3_content Foreign Key referenced by HREF
61
- # @option opts [String] :pulp2_last_updated ISO 8601 formatted dates are supported
62
48
  # @option opts [Integer] :limit Number of results to return per page.
63
49
  # @option opts [Integer] :offset The initial index from which to return the results.
50
+ # @option opts [String] :ordering Which field to use when ordering the results.
51
+ # @option opts [String] :pulp2_content_type_id pulp2_content_type_id
52
+ # @option opts [String] :pulp2_content_type_id__in pulp2_content_type_id__in
53
+ # @option opts [String] :pulp2_id pulp2_id
54
+ # @option opts [String] :pulp2_id__in pulp2_id__in
55
+ # @option opts [String] :pulp2_last_updated pulp2_last_updated
56
+ # @option opts [String] :pulp2_last_updated__gt pulp2_last_updated__gt
57
+ # @option opts [String] :pulp2_last_updated__gte pulp2_last_updated__gte
58
+ # @option opts [String] :pulp2_last_updated__lt pulp2_last_updated__lt
59
+ # @option opts [String] :pulp2_last_updated__lte pulp2_last_updated__lte
60
+ # @option opts [String] :pulp2_last_updated__range pulp2_last_updated__range
61
+ # @option opts [String] :pulp3_content pulp3_content
64
62
  # @option opts [String] :fields A list of fields to include in the response.
65
63
  # @option opts [String] :exclude_fields A list of fields to exclude from the response.
66
64
  # @return [Array<(InlineResponse2001, Integer, Hash)>] InlineResponse2001 data, response status code and response headers
67
65
  def list_with_http_info(opts = {})
68
66
  if @api_client.config.debugging
69
- @api_client.config.logger.debug 'Calling API: Pulp2contentApi.list ...'
67
+ @api_client.config.logger.debug 'Calling API: Pulp2ContentApi.list ...'
70
68
  end
71
69
  # resource path
72
70
  local_var_path = '/pulp/api/v3/pulp2content/'
73
71
 
74
72
  # query parameters
75
73
  query_params = opts[:query_params] || {}
74
+ query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
75
+ query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
76
76
  query_params[:'ordering'] = opts[:'ordering'] if !opts[:'ordering'].nil?
77
- query_params[:'pulp2_id'] = opts[:'pulp2_id'] if !opts[:'pulp2_id'].nil?
78
- query_params[:'pulp2_id__in'] = opts[:'pulp2_id__in'] if !opts[:'pulp2_id__in'].nil?
79
77
  query_params[:'pulp2_content_type_id'] = opts[:'pulp2_content_type_id'] if !opts[:'pulp2_content_type_id'].nil?
80
78
  query_params[:'pulp2_content_type_id__in'] = opts[:'pulp2_content_type_id__in'] if !opts[:'pulp2_content_type_id__in'].nil?
81
- query_params[:'pulp2_last_updated__lt'] = opts[:'pulp2_last_updated__lt'] if !opts[:'pulp2_last_updated__lt'].nil?
82
- query_params[:'pulp2_last_updated__lte'] = opts[:'pulp2_last_updated__lte'] if !opts[:'pulp2_last_updated__lte'].nil?
79
+ query_params[:'pulp2_id'] = opts[:'pulp2_id'] if !opts[:'pulp2_id'].nil?
80
+ query_params[:'pulp2_id__in'] = opts[:'pulp2_id__in'] if !opts[:'pulp2_id__in'].nil?
81
+ query_params[:'pulp2_last_updated'] = opts[:'pulp2_last_updated'] if !opts[:'pulp2_last_updated'].nil?
83
82
  query_params[:'pulp2_last_updated__gt'] = opts[:'pulp2_last_updated__gt'] if !opts[:'pulp2_last_updated__gt'].nil?
84
83
  query_params[:'pulp2_last_updated__gte'] = opts[:'pulp2_last_updated__gte'] if !opts[:'pulp2_last_updated__gte'].nil?
84
+ query_params[:'pulp2_last_updated__lt'] = opts[:'pulp2_last_updated__lt'] if !opts[:'pulp2_last_updated__lt'].nil?
85
+ query_params[:'pulp2_last_updated__lte'] = opts[:'pulp2_last_updated__lte'] if !opts[:'pulp2_last_updated__lte'].nil?
85
86
  query_params[:'pulp2_last_updated__range'] = opts[:'pulp2_last_updated__range'] if !opts[:'pulp2_last_updated__range'].nil?
86
87
  query_params[:'pulp3_content'] = opts[:'pulp3_content'] if !opts[:'pulp3_content'].nil?
87
- query_params[:'pulp2_last_updated'] = opts[:'pulp2_last_updated'] if !opts[:'pulp2_last_updated'].nil?
88
- query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
89
- query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
90
88
  query_params[:'fields'] = opts[:'fields'] if !opts[:'fields'].nil?
91
89
  query_params[:'exclude_fields'] = opts[:'exclude_fields'] if !opts[:'exclude_fields'].nil?
92
90
 
@@ -105,7 +103,7 @@ module Pulp2to3MigrationClient
105
103
  return_type = opts[:return_type] || 'InlineResponse2001'
106
104
 
107
105
  # auth_names
108
- auth_names = opts[:auth_names] || ['Basic']
106
+ auth_names = opts[:auth_names] || ['basicAuth']
109
107
 
110
108
  new_options = opts.merge(
111
109
  :header_params => header_params,
@@ -118,37 +116,35 @@ module Pulp2to3MigrationClient
118
116
 
119
117
  data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
120
118
  if @api_client.config.debugging
121
- @api_client.config.logger.debug "API called: Pulp2contentApi#list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
119
+ @api_client.config.logger.debug "API called: Pulp2ContentApi#list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
122
120
  end
123
121
  return data, status_code, headers
124
122
  end
125
123
 
126
- # Inspect a pulp2 content
127
124
  # ViewSet for Pulp2Content model.
128
- # @param pulp2_content_href [String] URI of Pulp2 Content. e.g.: /pulp/api/v3/pulp2content/1/
125
+ # @param pulp2_content_href [String]
129
126
  # @param [Hash] opts the optional parameters
130
127
  # @option opts [String] :fields A list of fields to include in the response.
131
128
  # @option opts [String] :exclude_fields A list of fields to exclude from the response.
132
- # @return [Pulp2to3MigrationPulp2Content]
129
+ # @return [Pulp2to3MigrationPulp2ContentResponse]
133
130
  def read(pulp2_content_href, opts = {})
134
131
  data, _status_code, _headers = read_with_http_info(pulp2_content_href, opts)
135
132
  data
136
133
  end
137
134
 
138
- # Inspect a pulp2 content
139
135
  # ViewSet for Pulp2Content model.
140
- # @param pulp2_content_href [String] URI of Pulp2 Content. e.g.: /pulp/api/v3/pulp2content/1/
136
+ # @param pulp2_content_href [String]
141
137
  # @param [Hash] opts the optional parameters
142
138
  # @option opts [String] :fields A list of fields to include in the response.
143
139
  # @option opts [String] :exclude_fields A list of fields to exclude from the response.
144
- # @return [Array<(Pulp2to3MigrationPulp2Content, Integer, Hash)>] Pulp2to3MigrationPulp2Content data, response status code and response headers
140
+ # @return [Array<(Pulp2to3MigrationPulp2ContentResponse, Integer, Hash)>] Pulp2to3MigrationPulp2ContentResponse data, response status code and response headers
145
141
  def read_with_http_info(pulp2_content_href, opts = {})
146
142
  if @api_client.config.debugging
147
- @api_client.config.logger.debug 'Calling API: Pulp2contentApi.read ...'
143
+ @api_client.config.logger.debug 'Calling API: Pulp2ContentApi.read ...'
148
144
  end
149
145
  # verify the required parameter 'pulp2_content_href' is set
150
146
  if @api_client.config.client_side_validation && pulp2_content_href.nil?
151
- fail ArgumentError, "Missing the required parameter 'pulp2_content_href' when calling Pulp2contentApi.read"
147
+ fail ArgumentError, "Missing the required parameter 'pulp2_content_href' when calling Pulp2ContentApi.read"
152
148
  end
153
149
  # resource path
154
150
  local_var_path = '{pulp2_content_href}'.sub('{' + 'pulp2_content_href' + '}', CGI.escape(pulp2_content_href.to_s).gsub('%2F', '/'))
@@ -170,10 +166,10 @@ module Pulp2to3MigrationClient
170
166
  post_body = opts[:body]
171
167
 
172
168
  # return_type
173
- return_type = opts[:return_type] || 'Pulp2to3MigrationPulp2Content'
169
+ return_type = opts[:return_type] || 'Pulp2to3MigrationPulp2ContentResponse'
174
170
 
175
171
  # auth_names
176
- auth_names = opts[:auth_names] || ['Basic']
172
+ auth_names = opts[:auth_names] || ['basicAuth']
177
173
 
178
174
  new_options = opts.merge(
179
175
  :header_params => header_params,
@@ -186,7 +182,7 @@ module Pulp2to3MigrationClient
186
182
 
187
183
  data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
188
184
  if @api_client.config.debugging
189
- @api_client.config.logger.debug "API called: Pulp2contentApi#read\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
185
+ @api_client.config.logger.debug "API called: Pulp2ContentApi#read\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
190
186
  end
191
187
  return data, status_code, headers
192
188
  end
@@ -1,10 +1,10 @@
1
1
  =begin
2
2
  #Pulp 3 API
3
3
 
4
- #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4
+ #Fetch, Upload, Organize, and Distribute Software Packages
5
5
 
6
6
  The version of the OpenAPI document: v3
7
-
7
+ Contact: pulp-list@redhat.com
8
8
  Generated by: https://openapi-generator.tech
9
9
  OpenAPI Generator version: 4.2.3
10
10
 
@@ -13,22 +13,21 @@ OpenAPI Generator version: 4.2.3
13
13
  require 'cgi'
14
14
 
15
15
  module Pulp2to3MigrationClient
16
- class Pulp2repositoriesApi
16
+ class Pulp2RepositoriesApi
17
17
  attr_accessor :api_client
18
18
 
19
19
  def initialize(api_client = ApiClient.default)
20
20
  @api_client = api_client
21
21
  end
22
- # List pulp2 repositorys
23
22
  # ViewSet for Pulp2Repositories model.
24
23
  # @param [Hash] opts the optional parameters
25
- # @option opts [String] :ordering Which field to use when ordering the results.
26
- # @option opts [String] :pulp2_repo_id
27
- # @option opts [String] :pulp2_repo_id__in Filter results where pulp2_repo_id is in a comma-separated list of values
28
- # @option opts [String] :is_migrated
29
- # @option opts [String] :not_in_plan
24
+ # @option opts [String] :is_migrated is_migrated
30
25
  # @option opts [Integer] :limit Number of results to return per page.
26
+ # @option opts [String] :not_in_plan not_in_plan
31
27
  # @option opts [Integer] :offset The initial index from which to return the results.
28
+ # @option opts [String] :ordering Which field to use when ordering the results.
29
+ # @option opts [String] :pulp2_repo_id pulp2_repo_id
30
+ # @option opts [String] :pulp2_repo_id__in pulp2_repo_id__in
32
31
  # @option opts [String] :fields A list of fields to include in the response.
33
32
  # @option opts [String] :exclude_fields A list of fields to exclude from the response.
34
33
  # @return [InlineResponse2002]
@@ -37,35 +36,34 @@ module Pulp2to3MigrationClient
37
36
  data
38
37
  end
39
38
 
40
- # List pulp2 repositorys
41
39
  # ViewSet for Pulp2Repositories model.
42
40
  # @param [Hash] opts the optional parameters
43
- # @option opts [String] :ordering Which field to use when ordering the results.
44
- # @option opts [String] :pulp2_repo_id
45
- # @option opts [String] :pulp2_repo_id__in Filter results where pulp2_repo_id is in a comma-separated list of values
46
- # @option opts [String] :is_migrated
47
- # @option opts [String] :not_in_plan
41
+ # @option opts [String] :is_migrated is_migrated
48
42
  # @option opts [Integer] :limit Number of results to return per page.
43
+ # @option opts [String] :not_in_plan not_in_plan
49
44
  # @option opts [Integer] :offset The initial index from which to return the results.
45
+ # @option opts [String] :ordering Which field to use when ordering the results.
46
+ # @option opts [String] :pulp2_repo_id pulp2_repo_id
47
+ # @option opts [String] :pulp2_repo_id__in pulp2_repo_id__in
50
48
  # @option opts [String] :fields A list of fields to include in the response.
51
49
  # @option opts [String] :exclude_fields A list of fields to exclude from the response.
52
50
  # @return [Array<(InlineResponse2002, Integer, Hash)>] InlineResponse2002 data, response status code and response headers
53
51
  def list_with_http_info(opts = {})
54
52
  if @api_client.config.debugging
55
- @api_client.config.logger.debug 'Calling API: Pulp2repositoriesApi.list ...'
53
+ @api_client.config.logger.debug 'Calling API: Pulp2RepositoriesApi.list ...'
56
54
  end
57
55
  # resource path
58
56
  local_var_path = '/pulp/api/v3/pulp2repositories/'
59
57
 
60
58
  # query parameters
61
59
  query_params = opts[:query_params] || {}
62
- query_params[:'ordering'] = opts[:'ordering'] if !opts[:'ordering'].nil?
63
- query_params[:'pulp2_repo_id'] = opts[:'pulp2_repo_id'] if !opts[:'pulp2_repo_id'].nil?
64
- query_params[:'pulp2_repo_id__in'] = opts[:'pulp2_repo_id__in'] if !opts[:'pulp2_repo_id__in'].nil?
65
60
  query_params[:'is_migrated'] = opts[:'is_migrated'] if !opts[:'is_migrated'].nil?
66
- query_params[:'not_in_plan'] = opts[:'not_in_plan'] if !opts[:'not_in_plan'].nil?
67
61
  query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
62
+ query_params[:'not_in_plan'] = opts[:'not_in_plan'] if !opts[:'not_in_plan'].nil?
68
63
  query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
64
+ query_params[:'ordering'] = opts[:'ordering'] if !opts[:'ordering'].nil?
65
+ query_params[:'pulp2_repo_id'] = opts[:'pulp2_repo_id'] if !opts[:'pulp2_repo_id'].nil?
66
+ query_params[:'pulp2_repo_id__in'] = opts[:'pulp2_repo_id__in'] if !opts[:'pulp2_repo_id__in'].nil?
69
67
  query_params[:'fields'] = opts[:'fields'] if !opts[:'fields'].nil?
70
68
  query_params[:'exclude_fields'] = opts[:'exclude_fields'] if !opts[:'exclude_fields'].nil?
71
69
 
@@ -84,7 +82,7 @@ module Pulp2to3MigrationClient
84
82
  return_type = opts[:return_type] || 'InlineResponse2002'
85
83
 
86
84
  # auth_names
87
- auth_names = opts[:auth_names] || ['Basic']
85
+ auth_names = opts[:auth_names] || ['basicAuth']
88
86
 
89
87
  new_options = opts.merge(
90
88
  :header_params => header_params,
@@ -97,37 +95,35 @@ module Pulp2to3MigrationClient
97
95
 
98
96
  data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
99
97
  if @api_client.config.debugging
100
- @api_client.config.logger.debug "API called: Pulp2repositoriesApi#list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
98
+ @api_client.config.logger.debug "API called: Pulp2RepositoriesApi#list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
101
99
  end
102
100
  return data, status_code, headers
103
101
  end
104
102
 
105
- # Inspect a pulp2 repository
106
103
  # ViewSet for Pulp2Repositories model.
107
- # @param pulp2_repository_href [String] URI of Pulp2 Repository. e.g.: /pulp/api/v3/pulp2repositories/1/
104
+ # @param pulp2_repository_href [String]
108
105
  # @param [Hash] opts the optional parameters
109
106
  # @option opts [String] :fields A list of fields to include in the response.
110
107
  # @option opts [String] :exclude_fields A list of fields to exclude from the response.
111
- # @return [Pulp2to3MigrationPulp2Repository]
108
+ # @return [Pulp2to3MigrationPulp2RepositoryResponse]
112
109
  def read(pulp2_repository_href, opts = {})
113
110
  data, _status_code, _headers = read_with_http_info(pulp2_repository_href, opts)
114
111
  data
115
112
  end
116
113
 
117
- # Inspect a pulp2 repository
118
114
  # ViewSet for Pulp2Repositories model.
119
- # @param pulp2_repository_href [String] URI of Pulp2 Repository. e.g.: /pulp/api/v3/pulp2repositories/1/
115
+ # @param pulp2_repository_href [String]
120
116
  # @param [Hash] opts the optional parameters
121
117
  # @option opts [String] :fields A list of fields to include in the response.
122
118
  # @option opts [String] :exclude_fields A list of fields to exclude from the response.
123
- # @return [Array<(Pulp2to3MigrationPulp2Repository, Integer, Hash)>] Pulp2to3MigrationPulp2Repository data, response status code and response headers
119
+ # @return [Array<(Pulp2to3MigrationPulp2RepositoryResponse, Integer, Hash)>] Pulp2to3MigrationPulp2RepositoryResponse data, response status code and response headers
124
120
  def read_with_http_info(pulp2_repository_href, opts = {})
125
121
  if @api_client.config.debugging
126
- @api_client.config.logger.debug 'Calling API: Pulp2repositoriesApi.read ...'
122
+ @api_client.config.logger.debug 'Calling API: Pulp2RepositoriesApi.read ...'
127
123
  end
128
124
  # verify the required parameter 'pulp2_repository_href' is set
129
125
  if @api_client.config.client_side_validation && pulp2_repository_href.nil?
130
- fail ArgumentError, "Missing the required parameter 'pulp2_repository_href' when calling Pulp2repositoriesApi.read"
126
+ fail ArgumentError, "Missing the required parameter 'pulp2_repository_href' when calling Pulp2RepositoriesApi.read"
131
127
  end
132
128
  # resource path
133
129
  local_var_path = '{pulp2_repository_href}'.sub('{' + 'pulp2_repository_href' + '}', CGI.escape(pulp2_repository_href.to_s).gsub('%2F', '/'))
@@ -149,10 +145,10 @@ module Pulp2to3MigrationClient
149
145
  post_body = opts[:body]
150
146
 
151
147
  # return_type
152
- return_type = opts[:return_type] || 'Pulp2to3MigrationPulp2Repository'
148
+ return_type = opts[:return_type] || 'Pulp2to3MigrationPulp2RepositoryResponse'
153
149
 
154
150
  # auth_names
155
- auth_names = opts[:auth_names] || ['Basic']
151
+ auth_names = opts[:auth_names] || ['basicAuth']
156
152
 
157
153
  new_options = opts.merge(
158
154
  :header_params => header_params,
@@ -165,7 +161,7 @@ module Pulp2to3MigrationClient
165
161
 
166
162
  data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
167
163
  if @api_client.config.debugging
168
- @api_client.config.logger.debug "API called: Pulp2repositoriesApi#read\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
164
+ @api_client.config.logger.debug "API called: Pulp2RepositoriesApi#read\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
169
165
  end
170
166
  return data, status_code, headers
171
167
  end
@@ -1,10 +1,10 @@
1
1
  =begin
2
2
  #Pulp 3 API
3
3
 
4
- #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4
+ #Fetch, Upload, Organize, and Distribute Software Packages
5
5
 
6
6
  The version of the OpenAPI document: v3
7
-
7
+ Contact: pulp-list@redhat.com
8
8
  Generated by: https://openapi-generator.tech
9
9
  OpenAPI Generator version: 4.2.3
10
10
 
@@ -1,10 +1,10 @@
1
1
  =begin
2
2
  #Pulp 3 API
3
3
 
4
- #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4
+ #Fetch, Upload, Organize, and Distribute Software Packages
5
5
 
6
6
  The version of the OpenAPI document: v3
7
-
7
+ Contact: pulp-list@redhat.com
8
8
  Generated by: https://openapi-generator.tech
9
9
  OpenAPI Generator version: 4.2.3
10
10
 
@@ -1,10 +1,10 @@
1
1
  =begin
2
2
  #Pulp 3 API
3
3
 
4
- #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4
+ #Fetch, Upload, Organize, and Distribute Software Packages
5
5
 
6
6
  The version of the OpenAPI document: v3
7
-
7
+ Contact: pulp-list@redhat.com
8
8
  Generated by: https://openapi-generator.tech
9
9
  OpenAPI Generator version: 4.2.3
10
10
 
@@ -188,7 +188,7 @@ module Pulp2to3MigrationClient
188
188
  # Returns Auth Settings hash for api client.
189
189
  def auth_settings
190
190
  {
191
- 'Basic' =>
191
+ 'basicAuth' =>
192
192
  {
193
193
  type: 'basic',
194
194
  in: 'header',
@@ -1,10 +1,10 @@
1
1
  =begin
2
2
  #Pulp 3 API
3
3
 
4
- #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4
+ #Fetch, Upload, Organize, and Distribute Software Packages
5
5
 
6
6
  The version of the OpenAPI document: v3
7
-
7
+ Contact: pulp-list@redhat.com
8
8
  Generated by: https://openapi-generator.tech
9
9
  OpenAPI Generator version: 4.2.3
10
10
 
@@ -13,6 +13,7 @@ OpenAPI Generator version: 4.2.3
13
13
  require 'date'
14
14
 
15
15
  module Pulp2to3MigrationClient
16
+ # Serializer for asynchronous operations.
16
17
  class AsyncOperationResponse
17
18
  # The href of the task.
18
19
  attr_accessor :task
@@ -1,10 +1,10 @@
1
1
  =begin
2
2
  #Pulp 3 API
3
3
 
4
- #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4
+ #Fetch, Upload, Organize, and Distribute Software Packages
5
5
 
6
6
  The version of the OpenAPI document: v3
7
-
7
+ Contact: pulp-list@redhat.com
8
8
  Generated by: https://openapi-generator.tech
9
9
  OpenAPI Generator version: 4.2.3
10
10
 
@@ -38,7 +38,7 @@ module Pulp2to3MigrationClient
38
38
  :'count' => :'Integer',
39
39
  :'_next' => :'String',
40
40
  :'previous' => :'String',
41
- :'results' => :'Array<Pulp2to3MigrationMigrationPlan>'
41
+ :'results' => :'Array<Pulp2to3MigrationMigrationPlanResponse>'
42
42
  }
43
43
  end
44
44
 
@@ -88,22 +88,12 @@ module Pulp2to3MigrationClient
88
88
  # @return Array for valid properties with the reasons
89
89
  def list_invalid_properties
90
90
  invalid_properties = Array.new
91
- if @count.nil?
92
- invalid_properties.push('invalid value for "count", count cannot be nil.')
93
- end
94
-
95
- if @results.nil?
96
- invalid_properties.push('invalid value for "results", results cannot be nil.')
97
- end
98
-
99
91
  invalid_properties
100
92
  end
101
93
 
102
94
  # Check to see if the all the properties in the model are valid
103
95
  # @return true if the model is valid
104
96
  def valid?
105
- return false if @count.nil?
106
- return false if @results.nil?
107
97
  true
108
98
  end
109
99