pulp_2to3_migration_client 0.3.0b1.dev01595619351 → 0.3.0b1.dev01596051478

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (47) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +17 -15
  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 +31 -31
  7. data/docs/Pulp2ContentApi.md +154 -0
  8. data/docs/{Pulp2repositoriesApi.md → Pulp2RepositoriesApi.md} +25 -25
  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 -42
  15. data/lib/pulp_2to3_migration_client/api/{pulp2content_api.rb → pulp2_content_api.rb} +46 -46
  16. data/lib/pulp_2to3_migration_client/api/{pulp2repositories_api.rb → pulp2_repositories_api.rb} +29 -29
  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 -10
  32. data/spec/api/{pulp2content_api_spec.rb → pulp2_content_api_spec.rb} +22 -22
  33. data/spec/api/{pulp2repositories_api_spec.rb → pulp2_repositories_api_spec.rb} +15 -15
  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
@@ -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,7 +13,7 @@ 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)
@@ -22,20 +22,20 @@ module Pulp2to3MigrationClient
22
22
  # List pulp2 contents
23
23
  # ViewSet for Pulp2Content model.
24
24
  # @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
25
  # @option opts [Integer] :limit Number of results to return per page.
38
26
  # @option opts [Integer] :offset The initial index from which to return the results.
27
+ # @option opts [String] :ordering Which field to use when ordering the results.
28
+ # @option opts [String] :pulp2_content_type_id pulp2_content_type_id
29
+ # @option opts [String] :pulp2_content_type_id__in pulp2_content_type_id__in
30
+ # @option opts [String] :pulp2_id pulp2_id
31
+ # @option opts [String] :pulp2_id__in pulp2_id__in
32
+ # @option opts [String] :pulp2_last_updated pulp2_last_updated
33
+ # @option opts [String] :pulp2_last_updated__gt pulp2_last_updated__gt
34
+ # @option opts [String] :pulp2_last_updated__gte pulp2_last_updated__gte
35
+ # @option opts [String] :pulp2_last_updated__lt pulp2_last_updated__lt
36
+ # @option opts [String] :pulp2_last_updated__lte pulp2_last_updated__lte
37
+ # @option opts [String] :pulp2_last_updated__range pulp2_last_updated__range
38
+ # @option opts [String] :pulp3_content pulp3_content
39
39
  # @option opts [String] :fields A list of fields to include in the response.
40
40
  # @option opts [String] :exclude_fields A list of fields to exclude from the response.
41
41
  # @return [InlineResponse2001]
@@ -47,46 +47,46 @@ module Pulp2to3MigrationClient
47
47
  # List pulp2 contents
48
48
  # ViewSet for Pulp2Content model.
49
49
  # @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
50
  # @option opts [Integer] :limit Number of results to return per page.
63
51
  # @option opts [Integer] :offset The initial index from which to return the results.
52
+ # @option opts [String] :ordering Which field to use when ordering the results.
53
+ # @option opts [String] :pulp2_content_type_id pulp2_content_type_id
54
+ # @option opts [String] :pulp2_content_type_id__in pulp2_content_type_id__in
55
+ # @option opts [String] :pulp2_id pulp2_id
56
+ # @option opts [String] :pulp2_id__in pulp2_id__in
57
+ # @option opts [String] :pulp2_last_updated pulp2_last_updated
58
+ # @option opts [String] :pulp2_last_updated__gt pulp2_last_updated__gt
59
+ # @option opts [String] :pulp2_last_updated__gte pulp2_last_updated__gte
60
+ # @option opts [String] :pulp2_last_updated__lt pulp2_last_updated__lt
61
+ # @option opts [String] :pulp2_last_updated__lte pulp2_last_updated__lte
62
+ # @option opts [String] :pulp2_last_updated__range pulp2_last_updated__range
63
+ # @option opts [String] :pulp3_content pulp3_content
64
64
  # @option opts [String] :fields A list of fields to include in the response.
65
65
  # @option opts [String] :exclude_fields A list of fields to exclude from the response.
66
66
  # @return [Array<(InlineResponse2001, Integer, Hash)>] InlineResponse2001 data, response status code and response headers
67
67
  def list_with_http_info(opts = {})
68
68
  if @api_client.config.debugging
69
- @api_client.config.logger.debug 'Calling API: Pulp2contentApi.list ...'
69
+ @api_client.config.logger.debug 'Calling API: Pulp2ContentApi.list ...'
70
70
  end
71
71
  # resource path
72
72
  local_var_path = '/pulp/api/v3/pulp2content/'
73
73
 
74
74
  # query parameters
75
75
  query_params = opts[:query_params] || {}
76
+ query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
77
+ query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
76
78
  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
79
  query_params[:'pulp2_content_type_id'] = opts[:'pulp2_content_type_id'] if !opts[:'pulp2_content_type_id'].nil?
80
80
  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?
81
+ query_params[:'pulp2_id'] = opts[:'pulp2_id'] if !opts[:'pulp2_id'].nil?
82
+ query_params[:'pulp2_id__in'] = opts[:'pulp2_id__in'] if !opts[:'pulp2_id__in'].nil?
83
+ query_params[:'pulp2_last_updated'] = opts[:'pulp2_last_updated'] if !opts[:'pulp2_last_updated'].nil?
83
84
  query_params[:'pulp2_last_updated__gt'] = opts[:'pulp2_last_updated__gt'] if !opts[:'pulp2_last_updated__gt'].nil?
84
85
  query_params[:'pulp2_last_updated__gte'] = opts[:'pulp2_last_updated__gte'] if !opts[:'pulp2_last_updated__gte'].nil?
86
+ query_params[:'pulp2_last_updated__lt'] = opts[:'pulp2_last_updated__lt'] if !opts[:'pulp2_last_updated__lt'].nil?
87
+ query_params[:'pulp2_last_updated__lte'] = opts[:'pulp2_last_updated__lte'] if !opts[:'pulp2_last_updated__lte'].nil?
85
88
  query_params[:'pulp2_last_updated__range'] = opts[:'pulp2_last_updated__range'] if !opts[:'pulp2_last_updated__range'].nil?
86
89
  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
90
  query_params[:'fields'] = opts[:'fields'] if !opts[:'fields'].nil?
91
91
  query_params[:'exclude_fields'] = opts[:'exclude_fields'] if !opts[:'exclude_fields'].nil?
92
92
 
@@ -105,7 +105,7 @@ module Pulp2to3MigrationClient
105
105
  return_type = opts[:return_type] || 'InlineResponse2001'
106
106
 
107
107
  # auth_names
108
- auth_names = opts[:auth_names] || ['Basic']
108
+ auth_names = opts[:auth_names] || ['basicAuth']
109
109
 
110
110
  new_options = opts.merge(
111
111
  :header_params => header_params,
@@ -118,18 +118,18 @@ module Pulp2to3MigrationClient
118
118
 
119
119
  data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
120
120
  if @api_client.config.debugging
121
- @api_client.config.logger.debug "API called: Pulp2contentApi#list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
121
+ @api_client.config.logger.debug "API called: Pulp2ContentApi#list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
122
122
  end
123
123
  return data, status_code, headers
124
124
  end
125
125
 
126
126
  # Inspect a pulp2 content
127
127
  # ViewSet for Pulp2Content model.
128
- # @param pulp2_content_href [String] URI of Pulp2 Content. e.g.: /pulp/api/v3/pulp2content/1/
128
+ # @param pulp2_content_href [String]
129
129
  # @param [Hash] opts the optional parameters
130
130
  # @option opts [String] :fields A list of fields to include in the response.
131
131
  # @option opts [String] :exclude_fields A list of fields to exclude from the response.
132
- # @return [Pulp2to3MigrationPulp2Content]
132
+ # @return [Pulp2to3MigrationPulp2ContentResponse]
133
133
  def read(pulp2_content_href, opts = {})
134
134
  data, _status_code, _headers = read_with_http_info(pulp2_content_href, opts)
135
135
  data
@@ -137,18 +137,18 @@ module Pulp2to3MigrationClient
137
137
 
138
138
  # Inspect a pulp2 content
139
139
  # ViewSet for Pulp2Content model.
140
- # @param pulp2_content_href [String] URI of Pulp2 Content. e.g.: /pulp/api/v3/pulp2content/1/
140
+ # @param pulp2_content_href [String]
141
141
  # @param [Hash] opts the optional parameters
142
142
  # @option opts [String] :fields A list of fields to include in the response.
143
143
  # @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
144
+ # @return [Array<(Pulp2to3MigrationPulp2ContentResponse, Integer, Hash)>] Pulp2to3MigrationPulp2ContentResponse data, response status code and response headers
145
145
  def read_with_http_info(pulp2_content_href, opts = {})
146
146
  if @api_client.config.debugging
147
- @api_client.config.logger.debug 'Calling API: Pulp2contentApi.read ...'
147
+ @api_client.config.logger.debug 'Calling API: Pulp2ContentApi.read ...'
148
148
  end
149
149
  # verify the required parameter 'pulp2_content_href' is set
150
150
  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"
151
+ fail ArgumentError, "Missing the required parameter 'pulp2_content_href' when calling Pulp2ContentApi.read"
152
152
  end
153
153
  # resource path
154
154
  local_var_path = '{pulp2_content_href}'.sub('{' + 'pulp2_content_href' + '}', CGI.escape(pulp2_content_href.to_s).gsub('%2F', '/'))
@@ -170,10 +170,10 @@ module Pulp2to3MigrationClient
170
170
  post_body = opts[:body]
171
171
 
172
172
  # return_type
173
- return_type = opts[:return_type] || 'Pulp2to3MigrationPulp2Content'
173
+ return_type = opts[:return_type] || 'Pulp2to3MigrationPulp2ContentResponse'
174
174
 
175
175
  # auth_names
176
- auth_names = opts[:auth_names] || ['Basic']
176
+ auth_names = opts[:auth_names] || ['basicAuth']
177
177
 
178
178
  new_options = opts.merge(
179
179
  :header_params => header_params,
@@ -186,7 +186,7 @@ module Pulp2to3MigrationClient
186
186
 
187
187
  data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
188
188
  if @api_client.config.debugging
189
- @api_client.config.logger.debug "API called: Pulp2contentApi#read\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
189
+ @api_client.config.logger.debug "API called: Pulp2ContentApi#read\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
190
190
  end
191
191
  return data, status_code, headers
192
192
  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,7 +13,7 @@ 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)
@@ -22,13 +22,13 @@ module Pulp2to3MigrationClient
22
22
  # List pulp2 repositorys
23
23
  # ViewSet for Pulp2Repositories model.
24
24
  # @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
25
+ # @option opts [String] :is_migrated is_migrated
30
26
  # @option opts [Integer] :limit Number of results to return per page.
27
+ # @option opts [String] :not_in_plan not_in_plan
31
28
  # @option opts [Integer] :offset The initial index from which to return the results.
29
+ # @option opts [String] :ordering Which field to use when ordering the results.
30
+ # @option opts [String] :pulp2_repo_id pulp2_repo_id
31
+ # @option opts [String] :pulp2_repo_id__in pulp2_repo_id__in
32
32
  # @option opts [String] :fields A list of fields to include in the response.
33
33
  # @option opts [String] :exclude_fields A list of fields to exclude from the response.
34
34
  # @return [InlineResponse2002]
@@ -40,32 +40,32 @@ module Pulp2to3MigrationClient
40
40
  # List pulp2 repositorys
41
41
  # ViewSet for Pulp2Repositories model.
42
42
  # @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
43
+ # @option opts [String] :is_migrated is_migrated
48
44
  # @option opts [Integer] :limit Number of results to return per page.
45
+ # @option opts [String] :not_in_plan not_in_plan
49
46
  # @option opts [Integer] :offset The initial index from which to return the results.
47
+ # @option opts [String] :ordering Which field to use when ordering the results.
48
+ # @option opts [String] :pulp2_repo_id pulp2_repo_id
49
+ # @option opts [String] :pulp2_repo_id__in pulp2_repo_id__in
50
50
  # @option opts [String] :fields A list of fields to include in the response.
51
51
  # @option opts [String] :exclude_fields A list of fields to exclude from the response.
52
52
  # @return [Array<(InlineResponse2002, Integer, Hash)>] InlineResponse2002 data, response status code and response headers
53
53
  def list_with_http_info(opts = {})
54
54
  if @api_client.config.debugging
55
- @api_client.config.logger.debug 'Calling API: Pulp2repositoriesApi.list ...'
55
+ @api_client.config.logger.debug 'Calling API: Pulp2RepositoriesApi.list ...'
56
56
  end
57
57
  # resource path
58
58
  local_var_path = '/pulp/api/v3/pulp2repositories/'
59
59
 
60
60
  # query parameters
61
61
  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
62
  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
63
  query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
64
+ query_params[:'not_in_plan'] = opts[:'not_in_plan'] if !opts[:'not_in_plan'].nil?
68
65
  query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
66
+ query_params[:'ordering'] = opts[:'ordering'] if !opts[:'ordering'].nil?
67
+ query_params[:'pulp2_repo_id'] = opts[:'pulp2_repo_id'] if !opts[:'pulp2_repo_id'].nil?
68
+ query_params[:'pulp2_repo_id__in'] = opts[:'pulp2_repo_id__in'] if !opts[:'pulp2_repo_id__in'].nil?
69
69
  query_params[:'fields'] = opts[:'fields'] if !opts[:'fields'].nil?
70
70
  query_params[:'exclude_fields'] = opts[:'exclude_fields'] if !opts[:'exclude_fields'].nil?
71
71
 
@@ -84,7 +84,7 @@ module Pulp2to3MigrationClient
84
84
  return_type = opts[:return_type] || 'InlineResponse2002'
85
85
 
86
86
  # auth_names
87
- auth_names = opts[:auth_names] || ['Basic']
87
+ auth_names = opts[:auth_names] || ['basicAuth']
88
88
 
89
89
  new_options = opts.merge(
90
90
  :header_params => header_params,
@@ -97,18 +97,18 @@ module Pulp2to3MigrationClient
97
97
 
98
98
  data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
99
99
  if @api_client.config.debugging
100
- @api_client.config.logger.debug "API called: Pulp2repositoriesApi#list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
100
+ @api_client.config.logger.debug "API called: Pulp2RepositoriesApi#list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
101
101
  end
102
102
  return data, status_code, headers
103
103
  end
104
104
 
105
105
  # Inspect a pulp2 repository
106
106
  # ViewSet for Pulp2Repositories model.
107
- # @param pulp2_repository_href [String] URI of Pulp2 Repository. e.g.: /pulp/api/v3/pulp2repositories/1/
107
+ # @param pulp2_repository_href [String]
108
108
  # @param [Hash] opts the optional parameters
109
109
  # @option opts [String] :fields A list of fields to include in the response.
110
110
  # @option opts [String] :exclude_fields A list of fields to exclude from the response.
111
- # @return [Pulp2to3MigrationPulp2Repository]
111
+ # @return [Pulp2to3MigrationPulp2RepositoryResponse]
112
112
  def read(pulp2_repository_href, opts = {})
113
113
  data, _status_code, _headers = read_with_http_info(pulp2_repository_href, opts)
114
114
  data
@@ -116,18 +116,18 @@ module Pulp2to3MigrationClient
116
116
 
117
117
  # Inspect a pulp2 repository
118
118
  # ViewSet for Pulp2Repositories model.
119
- # @param pulp2_repository_href [String] URI of Pulp2 Repository. e.g.: /pulp/api/v3/pulp2repositories/1/
119
+ # @param pulp2_repository_href [String]
120
120
  # @param [Hash] opts the optional parameters
121
121
  # @option opts [String] :fields A list of fields to include in the response.
122
122
  # @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
123
+ # @return [Array<(Pulp2to3MigrationPulp2RepositoryResponse, Integer, Hash)>] Pulp2to3MigrationPulp2RepositoryResponse data, response status code and response headers
124
124
  def read_with_http_info(pulp2_repository_href, opts = {})
125
125
  if @api_client.config.debugging
126
- @api_client.config.logger.debug 'Calling API: Pulp2repositoriesApi.read ...'
126
+ @api_client.config.logger.debug 'Calling API: Pulp2RepositoriesApi.read ...'
127
127
  end
128
128
  # verify the required parameter 'pulp2_repository_href' is set
129
129
  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"
130
+ fail ArgumentError, "Missing the required parameter 'pulp2_repository_href' when calling Pulp2RepositoriesApi.read"
131
131
  end
132
132
  # resource path
133
133
  local_var_path = '{pulp2_repository_href}'.sub('{' + 'pulp2_repository_href' + '}', CGI.escape(pulp2_repository_href.to_s).gsub('%2F', '/'))
@@ -149,10 +149,10 @@ module Pulp2to3MigrationClient
149
149
  post_body = opts[:body]
150
150
 
151
151
  # return_type
152
- return_type = opts[:return_type] || 'Pulp2to3MigrationPulp2Repository'
152
+ return_type = opts[:return_type] || 'Pulp2to3MigrationPulp2RepositoryResponse'
153
153
 
154
154
  # auth_names
155
- auth_names = opts[:auth_names] || ['Basic']
155
+ auth_names = opts[:auth_names] || ['basicAuth']
156
156
 
157
157
  new_options = opts.merge(
158
158
  :header_params => header_params,
@@ -165,7 +165,7 @@ module Pulp2to3MigrationClient
165
165
 
166
166
  data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
167
167
  if @api_client.config.debugging
168
- @api_client.config.logger.debug "API called: Pulp2repositoriesApi#read\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
168
+ @api_client.config.logger.debug "API called: Pulp2RepositoriesApi#read\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
169
169
  end
170
170
  return data, status_code, headers
171
171
  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