pulp_gem_client 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (113) hide show
  1. checksums.yaml +7 -0
  2. data/Gemfile +9 -0
  3. data/README.md +160 -0
  4. data/Rakefile +10 -0
  5. data/docs/AsyncOperationResponse.md +17 -0
  6. data/docs/ContentGemApi.md +210 -0
  7. data/docs/ContentSummaryResponse.md +21 -0
  8. data/docs/DistributionsGemApi.md +382 -0
  9. data/docs/GemGemContent.md +21 -0
  10. data/docs/GemGemContentResponse.md +35 -0
  11. data/docs/GemGemDistribution.md +31 -0
  12. data/docs/GemGemDistributionResponse.md +37 -0
  13. data/docs/GemGemPublication.md +19 -0
  14. data/docs/GemGemPublicationResponse.md +23 -0
  15. data/docs/GemGemRemote.md +63 -0
  16. data/docs/GemGemRemoteResponse.md +61 -0
  17. data/docs/GemGemRemoteResponseHiddenFields.md +19 -0
  18. data/docs/GemGemRepository.md +25 -0
  19. data/docs/GemGemRepositoryResponse.md +33 -0
  20. data/docs/PaginatedRepositoryVersionResponseList.md +23 -0
  21. data/docs/PaginatedgemGemContentResponseList.md +23 -0
  22. data/docs/PaginatedgemGemDistributionResponseList.md +23 -0
  23. data/docs/PaginatedgemGemPublicationResponseList.md +23 -0
  24. data/docs/PaginatedgemGemRemoteResponseList.md +23 -0
  25. data/docs/PaginatedgemGemRepositoryResponseList.md +23 -0
  26. data/docs/PatchedgemGemDistribution.md +31 -0
  27. data/docs/PatchedgemGemRemote.md +63 -0
  28. data/docs/PatchedgemGemRepository.md +25 -0
  29. data/docs/PolicyEnum.md +16 -0
  30. data/docs/PublicationsGemApi.md +263 -0
  31. data/docs/RemotesGemApi.md +380 -0
  32. data/docs/Repair.md +17 -0
  33. data/docs/RepositoriesGemApi.md +502 -0
  34. data/docs/RepositoriesGemVersionsApi.md +273 -0
  35. data/docs/RepositoryAddRemoveContent.md +21 -0
  36. data/docs/RepositorySyncURL.md +19 -0
  37. data/docs/RepositoryVersionResponse.md +27 -0
  38. data/lib/pulp_gem_client/api/content_gem_api.rb +259 -0
  39. data/lib/pulp_gem_client/api/distributions_gem_api.rb +476 -0
  40. data/lib/pulp_gem_client/api/publications_gem_api.rb +325 -0
  41. data/lib/pulp_gem_client/api/remotes_gem_api.rb +473 -0
  42. data/lib/pulp_gem_client/api/repositories_gem_api.rb +628 -0
  43. data/lib/pulp_gem_client/api/repositories_gem_versions_api.rb +346 -0
  44. data/lib/pulp_gem_client/api_client.rb +403 -0
  45. data/lib/pulp_gem_client/api_error.rb +57 -0
  46. data/lib/pulp_gem_client/configuration.rb +251 -0
  47. data/lib/pulp_gem_client/models/async_operation_response.rb +213 -0
  48. data/lib/pulp_gem_client/models/content_summary_response.rb +246 -0
  49. data/lib/pulp_gem_client/models/gem_gem_content.rb +228 -0
  50. data/lib/pulp_gem_client/models/gem_gem_content_response.rb +303 -0
  51. data/lib/pulp_gem_client/models/gem_gem_distribution.rb +333 -0
  52. data/lib/pulp_gem_client/models/gem_gem_distribution_response.rb +324 -0
  53. data/lib/pulp_gem_client/models/gem_gem_publication.rb +217 -0
  54. data/lib/pulp_gem_client/models/gem_gem_publication_response.rb +236 -0
  55. data/lib/pulp_gem_client/models/gem_gem_remote.rb +704 -0
  56. data/lib/pulp_gem_client/models/gem_gem_remote_response.rb +532 -0
  57. data/lib/pulp_gem_client/models/gem_gem_remote_response_hidden_fields.rb +215 -0
  58. data/lib/pulp_gem_client/models/gem_gem_repository.rb +306 -0
  59. data/lib/pulp_gem_client/models/gem_gem_repository_response.rb +309 -0
  60. data/lib/pulp_gem_client/models/paginated_repository_version_response_list.rb +237 -0
  61. data/lib/pulp_gem_client/models/paginatedgem_gem_content_response_list.rb +237 -0
  62. data/lib/pulp_gem_client/models/paginatedgem_gem_distribution_response_list.rb +237 -0
  63. data/lib/pulp_gem_client/models/paginatedgem_gem_publication_response_list.rb +237 -0
  64. data/lib/pulp_gem_client/models/paginatedgem_gem_remote_response_list.rb +237 -0
  65. data/lib/pulp_gem_client/models/paginatedgem_gem_repository_response_list.rb +237 -0
  66. data/lib/pulp_gem_client/models/patchedgem_gem_distribution.rb +315 -0
  67. data/lib/pulp_gem_client/models/patchedgem_gem_remote.rb +686 -0
  68. data/lib/pulp_gem_client/models/patchedgem_gem_repository.rb +297 -0
  69. data/lib/pulp_gem_client/models/policy_enum.rb +37 -0
  70. data/lib/pulp_gem_client/models/repair.rb +209 -0
  71. data/lib/pulp_gem_client/models/repository_add_remove_content.rb +232 -0
  72. data/lib/pulp_gem_client/models/repository_sync_url.rb +220 -0
  73. data/lib/pulp_gem_client/models/repository_version_response.rb +255 -0
  74. data/lib/pulp_gem_client/version.rb +15 -0
  75. data/lib/pulp_gem_client.rb +72 -0
  76. data/pulp_gem_client.gemspec +39 -0
  77. data/spec/api/content_gem_api_spec.rb +88 -0
  78. data/spec/api/distributions_gem_api_spec.rb +130 -0
  79. data/spec/api/publications_gem_api_spec.rb +101 -0
  80. data/spec/api/remotes_gem_api_spec.rb +129 -0
  81. data/spec/api/repositories_gem_api_spec.rb +160 -0
  82. data/spec/api/repositories_gem_versions_api_spec.rb +105 -0
  83. data/spec/api_client_spec.rb +188 -0
  84. data/spec/configuration_spec.rb +42 -0
  85. data/spec/models/async_operation_response_spec.rb +41 -0
  86. data/spec/models/content_summary_response_spec.rb +53 -0
  87. data/spec/models/gem_gem_content_response_spec.rb +95 -0
  88. data/spec/models/gem_gem_content_spec.rb +53 -0
  89. data/spec/models/gem_gem_distribution_response_spec.rb +101 -0
  90. data/spec/models/gem_gem_distribution_spec.rb +83 -0
  91. data/spec/models/gem_gem_publication_response_spec.rb +59 -0
  92. data/spec/models/gem_gem_publication_spec.rb +47 -0
  93. data/spec/models/gem_gem_remote_response_hidden_fields_spec.rb +47 -0
  94. data/spec/models/gem_gem_remote_response_spec.rb +173 -0
  95. data/spec/models/gem_gem_remote_spec.rb +179 -0
  96. data/spec/models/gem_gem_repository_response_spec.rb +89 -0
  97. data/spec/models/gem_gem_repository_spec.rb +65 -0
  98. data/spec/models/paginated_repository_version_response_list_spec.rb +59 -0
  99. data/spec/models/paginatedgem_gem_content_response_list_spec.rb +59 -0
  100. data/spec/models/paginatedgem_gem_distribution_response_list_spec.rb +59 -0
  101. data/spec/models/paginatedgem_gem_publication_response_list_spec.rb +59 -0
  102. data/spec/models/paginatedgem_gem_remote_response_list_spec.rb +59 -0
  103. data/spec/models/paginatedgem_gem_repository_response_list_spec.rb +59 -0
  104. data/spec/models/patchedgem_gem_distribution_spec.rb +83 -0
  105. data/spec/models/patchedgem_gem_remote_spec.rb +179 -0
  106. data/spec/models/patchedgem_gem_repository_spec.rb +65 -0
  107. data/spec/models/policy_enum_spec.rb +35 -0
  108. data/spec/models/repair_spec.rb +41 -0
  109. data/spec/models/repository_add_remove_content_spec.rb +53 -0
  110. data/spec/models/repository_sync_url_spec.rb +47 -0
  111. data/spec/models/repository_version_response_spec.rb +71 -0
  112. data/spec/spec_helper.rb +111 -0
  113. metadata +250 -0
@@ -0,0 +1,325 @@
1
+ =begin
2
+ #Pulp 3 API
3
+
4
+ #Fetch, Upload, Organize, and Distribute Software Packages
5
+
6
+ The version of the OpenAPI document: v3
7
+ Contact: pulp-list@redhat.com
8
+ Generated by: https://openapi-generator.tech
9
+ OpenAPI Generator version: 4.3.1
10
+
11
+ =end
12
+
13
+ require 'cgi'
14
+
15
+ module PulpGemClient
16
+ class PublicationsGemApi
17
+ attr_accessor :api_client
18
+
19
+ def initialize(api_client = ApiClient.default)
20
+ @api_client = api_client
21
+ end
22
+ # Create a gem publication
23
+ # Trigger an asynchronous task to publish gem content
24
+ # @param gem_gem_publication [GemGemPublication]
25
+ # @param [Hash] opts the optional parameters
26
+ # @return [AsyncOperationResponse]
27
+ def create(gem_gem_publication, opts = {})
28
+ data, _status_code, _headers = create_with_http_info(gem_gem_publication, opts)
29
+ data
30
+ end
31
+
32
+ # Create a gem publication
33
+ # Trigger an asynchronous task to publish gem content
34
+ # @param gem_gem_publication [GemGemPublication]
35
+ # @param [Hash] opts the optional parameters
36
+ # @return [Array<(AsyncOperationResponse, Integer, Hash)>] AsyncOperationResponse data, response status code and response headers
37
+ def create_with_http_info(gem_gem_publication, opts = {})
38
+ if @api_client.config.debugging
39
+ @api_client.config.logger.debug 'Calling API: PublicationsGemApi.create ...'
40
+ end
41
+ # verify the required parameter 'gem_gem_publication' is set
42
+ if @api_client.config.client_side_validation && gem_gem_publication.nil?
43
+ fail ArgumentError, "Missing the required parameter 'gem_gem_publication' when calling PublicationsGemApi.create"
44
+ end
45
+ # resource path
46
+ local_var_path = '/pulp/api/v3/publications/gem/gem/'
47
+
48
+ # query parameters
49
+ query_params = opts[:query_params] || {}
50
+
51
+ # header parameters
52
+ header_params = opts[:header_params] || {}
53
+ # HTTP header 'Accept' (if needed)
54
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
55
+ # HTTP header 'Content-Type'
56
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'])
57
+
58
+ # form parameters
59
+ form_params = opts[:form_params] || {}
60
+
61
+ # http body (model)
62
+ post_body = opts[:body] || @api_client.object_to_http_body(gem_gem_publication)
63
+
64
+ # return_type
65
+ return_type = opts[:return_type] || 'AsyncOperationResponse'
66
+
67
+ # auth_names
68
+ auth_names = opts[:auth_names] || ['basicAuth']
69
+
70
+ new_options = opts.merge(
71
+ :header_params => header_params,
72
+ :query_params => query_params,
73
+ :form_params => form_params,
74
+ :body => post_body,
75
+ :auth_names => auth_names,
76
+ :return_type => return_type
77
+ )
78
+
79
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
80
+ if @api_client.config.debugging
81
+ @api_client.config.logger.debug "API called: PublicationsGemApi#create\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
82
+ end
83
+ return data, status_code, headers
84
+ end
85
+
86
+ # Delete a gem publication
87
+ # A ViewSet for GemPublication.
88
+ # @param gem_gem_publication_href [String]
89
+ # @param [Hash] opts the optional parameters
90
+ # @return [nil]
91
+ def delete(gem_gem_publication_href, opts = {})
92
+ delete_with_http_info(gem_gem_publication_href, opts)
93
+ nil
94
+ end
95
+
96
+ # Delete a gem publication
97
+ # A ViewSet for GemPublication.
98
+ # @param gem_gem_publication_href [String]
99
+ # @param [Hash] opts the optional parameters
100
+ # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
101
+ def delete_with_http_info(gem_gem_publication_href, opts = {})
102
+ if @api_client.config.debugging
103
+ @api_client.config.logger.debug 'Calling API: PublicationsGemApi.delete ...'
104
+ end
105
+ # verify the required parameter 'gem_gem_publication_href' is set
106
+ if @api_client.config.client_side_validation && gem_gem_publication_href.nil?
107
+ fail ArgumentError, "Missing the required parameter 'gem_gem_publication_href' when calling PublicationsGemApi.delete"
108
+ end
109
+ # resource path
110
+ local_var_path = '{gem_gem_publication_href}'.sub('{' + 'gem_gem_publication_href' + '}', CGI.escape(gem_gem_publication_href.to_s).gsub('%2F', '/'))
111
+
112
+ # query parameters
113
+ query_params = opts[:query_params] || {}
114
+
115
+ # header parameters
116
+ header_params = opts[:header_params] || {}
117
+
118
+ # form parameters
119
+ form_params = opts[:form_params] || {}
120
+
121
+ # http body (model)
122
+ post_body = opts[:body]
123
+
124
+ # return_type
125
+ return_type = opts[:return_type]
126
+
127
+ # auth_names
128
+ auth_names = opts[:auth_names] || ['basicAuth']
129
+
130
+ new_options = opts.merge(
131
+ :header_params => header_params,
132
+ :query_params => query_params,
133
+ :form_params => form_params,
134
+ :body => post_body,
135
+ :auth_names => auth_names,
136
+ :return_type => return_type
137
+ )
138
+
139
+ data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
140
+ if @api_client.config.debugging
141
+ @api_client.config.logger.debug "API called: PublicationsGemApi#delete\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
142
+ end
143
+ return data, status_code, headers
144
+ end
145
+
146
+ # List gem publications
147
+ # A ViewSet for GemPublication.
148
+ # @param [Hash] opts the optional parameters
149
+ # @option opts [String] :content Content Unit referenced by HREF
150
+ # @option opts [String] :content__in Content Unit referenced by HREF
151
+ # @option opts [Integer] :limit Number of results to return per page.
152
+ # @option opts [Integer] :offset The initial index from which to return the results.
153
+ # @option opts [Array<String>] :ordering Ordering * &#x60;pulp_id&#x60; - Pulp id * &#x60;-pulp_id&#x60; - Pulp id (descending) * &#x60;pulp_created&#x60; - Pulp created * &#x60;-pulp_created&#x60; - Pulp created (descending) * &#x60;pulp_last_updated&#x60; - Pulp last updated * &#x60;-pulp_last_updated&#x60; - Pulp last updated (descending) * &#x60;pulp_type&#x60; - Pulp type * &#x60;-pulp_type&#x60; - Pulp type (descending) * &#x60;complete&#x60; - Complete * &#x60;-complete&#x60; - Complete (descending) * &#x60;pass_through&#x60; - Pass through * &#x60;-pass_through&#x60; - Pass through (descending) * &#x60;pk&#x60; - Pk * &#x60;-pk&#x60; - Pk (descending)
154
+ # @option opts [DateTime] :pulp_created Filter results where pulp_created matches value
155
+ # @option opts [DateTime] :pulp_created__gt Filter results where pulp_created is greater than value
156
+ # @option opts [DateTime] :pulp_created__gte Filter results where pulp_created is greater than or equal to value
157
+ # @option opts [DateTime] :pulp_created__lt Filter results where pulp_created is less than value
158
+ # @option opts [DateTime] :pulp_created__lte Filter results where pulp_created is less than or equal to value
159
+ # @option opts [Array<DateTime>] :pulp_created__range Filter results where pulp_created is between two comma separated values
160
+ # @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
161
+ # @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
162
+ # @option opts [String] :repository Repository referenced by HREF
163
+ # @option opts [String] :repository_version Repository Version referenced by HREF
164
+ # @option opts [Array<String>] :fields A list of fields to include in the response.
165
+ # @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
166
+ # @return [PaginatedgemGemPublicationResponseList]
167
+ def list(opts = {})
168
+ data, _status_code, _headers = list_with_http_info(opts)
169
+ data
170
+ end
171
+
172
+ # List gem publications
173
+ # A ViewSet for GemPublication.
174
+ # @param [Hash] opts the optional parameters
175
+ # @option opts [String] :content Content Unit referenced by HREF
176
+ # @option opts [String] :content__in Content Unit referenced by HREF
177
+ # @option opts [Integer] :limit Number of results to return per page.
178
+ # @option opts [Integer] :offset The initial index from which to return the results.
179
+ # @option opts [Array<String>] :ordering Ordering * &#x60;pulp_id&#x60; - Pulp id * &#x60;-pulp_id&#x60; - Pulp id (descending) * &#x60;pulp_created&#x60; - Pulp created * &#x60;-pulp_created&#x60; - Pulp created (descending) * &#x60;pulp_last_updated&#x60; - Pulp last updated * &#x60;-pulp_last_updated&#x60; - Pulp last updated (descending) * &#x60;pulp_type&#x60; - Pulp type * &#x60;-pulp_type&#x60; - Pulp type (descending) * &#x60;complete&#x60; - Complete * &#x60;-complete&#x60; - Complete (descending) * &#x60;pass_through&#x60; - Pass through * &#x60;-pass_through&#x60; - Pass through (descending) * &#x60;pk&#x60; - Pk * &#x60;-pk&#x60; - Pk (descending)
180
+ # @option opts [DateTime] :pulp_created Filter results where pulp_created matches value
181
+ # @option opts [DateTime] :pulp_created__gt Filter results where pulp_created is greater than value
182
+ # @option opts [DateTime] :pulp_created__gte Filter results where pulp_created is greater than or equal to value
183
+ # @option opts [DateTime] :pulp_created__lt Filter results where pulp_created is less than value
184
+ # @option opts [DateTime] :pulp_created__lte Filter results where pulp_created is less than or equal to value
185
+ # @option opts [Array<DateTime>] :pulp_created__range Filter results where pulp_created is between two comma separated values
186
+ # @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
187
+ # @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
188
+ # @option opts [String] :repository Repository referenced by HREF
189
+ # @option opts [String] :repository_version Repository Version referenced by HREF
190
+ # @option opts [Array<String>] :fields A list of fields to include in the response.
191
+ # @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
192
+ # @return [Array<(PaginatedgemGemPublicationResponseList, Integer, Hash)>] PaginatedgemGemPublicationResponseList data, response status code and response headers
193
+ def list_with_http_info(opts = {})
194
+ if @api_client.config.debugging
195
+ @api_client.config.logger.debug 'Calling API: PublicationsGemApi.list ...'
196
+ end
197
+ allowable_values = ["-complete", "-pass_through", "-pk", "-pulp_created", "-pulp_id", "-pulp_last_updated", "-pulp_type", "complete", "pass_through", "pk", "pulp_created", "pulp_id", "pulp_last_updated", "pulp_type"]
198
+ if @api_client.config.client_side_validation && opts[:'ordering'] && !opts[:'ordering'].all? { |item| allowable_values.include?(item) }
199
+ fail ArgumentError, "invalid value for \"ordering\", must include one of #{allowable_values}"
200
+ end
201
+ # resource path
202
+ local_var_path = '/pulp/api/v3/publications/gem/gem/'
203
+
204
+ # query parameters
205
+ query_params = opts[:query_params] || {}
206
+ query_params[:'content'] = opts[:'content'] if !opts[:'content'].nil?
207
+ query_params[:'content__in'] = opts[:'content__in'] if !opts[:'content__in'].nil?
208
+ query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
209
+ query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
210
+ query_params[:'ordering'] = @api_client.build_collection_param(opts[:'ordering'], :csv) if !opts[:'ordering'].nil?
211
+ query_params[:'pulp_created'] = opts[:'pulp_created'] if !opts[:'pulp_created'].nil?
212
+ query_params[:'pulp_created__gt'] = opts[:'pulp_created__gt'] if !opts[:'pulp_created__gt'].nil?
213
+ query_params[:'pulp_created__gte'] = opts[:'pulp_created__gte'] if !opts[:'pulp_created__gte'].nil?
214
+ query_params[:'pulp_created__lt'] = opts[:'pulp_created__lt'] if !opts[:'pulp_created__lt'].nil?
215
+ query_params[:'pulp_created__lte'] = opts[:'pulp_created__lte'] if !opts[:'pulp_created__lte'].nil?
216
+ query_params[:'pulp_created__range'] = @api_client.build_collection_param(opts[:'pulp_created__range'], :csv) if !opts[:'pulp_created__range'].nil?
217
+ query_params[:'pulp_href__in'] = @api_client.build_collection_param(opts[:'pulp_href__in'], :csv) if !opts[:'pulp_href__in'].nil?
218
+ query_params[:'pulp_id__in'] = @api_client.build_collection_param(opts[:'pulp_id__in'], :csv) if !opts[:'pulp_id__in'].nil?
219
+ query_params[:'repository'] = opts[:'repository'] if !opts[:'repository'].nil?
220
+ query_params[:'repository_version'] = opts[:'repository_version'] if !opts[:'repository_version'].nil?
221
+ query_params[:'fields'] = @api_client.build_collection_param(opts[:'fields'], :multi) if !opts[:'fields'].nil?
222
+ query_params[:'exclude_fields'] = @api_client.build_collection_param(opts[:'exclude_fields'], :multi) if !opts[:'exclude_fields'].nil?
223
+
224
+ # header parameters
225
+ header_params = opts[:header_params] || {}
226
+ # HTTP header 'Accept' (if needed)
227
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
228
+
229
+ # form parameters
230
+ form_params = opts[:form_params] || {}
231
+
232
+ # http body (model)
233
+ post_body = opts[:body]
234
+
235
+ # return_type
236
+ return_type = opts[:return_type] || 'PaginatedgemGemPublicationResponseList'
237
+
238
+ # auth_names
239
+ auth_names = opts[:auth_names] || ['basicAuth']
240
+
241
+ new_options = opts.merge(
242
+ :header_params => header_params,
243
+ :query_params => query_params,
244
+ :form_params => form_params,
245
+ :body => post_body,
246
+ :auth_names => auth_names,
247
+ :return_type => return_type
248
+ )
249
+
250
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
251
+ if @api_client.config.debugging
252
+ @api_client.config.logger.debug "API called: PublicationsGemApi#list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
253
+ end
254
+ return data, status_code, headers
255
+ end
256
+
257
+ # Inspect a gem publication
258
+ # A ViewSet for GemPublication.
259
+ # @param gem_gem_publication_href [String]
260
+ # @param [Hash] opts the optional parameters
261
+ # @option opts [Array<String>] :fields A list of fields to include in the response.
262
+ # @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
263
+ # @return [GemGemPublicationResponse]
264
+ def read(gem_gem_publication_href, opts = {})
265
+ data, _status_code, _headers = read_with_http_info(gem_gem_publication_href, opts)
266
+ data
267
+ end
268
+
269
+ # Inspect a gem publication
270
+ # A ViewSet for GemPublication.
271
+ # @param gem_gem_publication_href [String]
272
+ # @param [Hash] opts the optional parameters
273
+ # @option opts [Array<String>] :fields A list of fields to include in the response.
274
+ # @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
275
+ # @return [Array<(GemGemPublicationResponse, Integer, Hash)>] GemGemPublicationResponse data, response status code and response headers
276
+ def read_with_http_info(gem_gem_publication_href, opts = {})
277
+ if @api_client.config.debugging
278
+ @api_client.config.logger.debug 'Calling API: PublicationsGemApi.read ...'
279
+ end
280
+ # verify the required parameter 'gem_gem_publication_href' is set
281
+ if @api_client.config.client_side_validation && gem_gem_publication_href.nil?
282
+ fail ArgumentError, "Missing the required parameter 'gem_gem_publication_href' when calling PublicationsGemApi.read"
283
+ end
284
+ # resource path
285
+ local_var_path = '{gem_gem_publication_href}'.sub('{' + 'gem_gem_publication_href' + '}', CGI.escape(gem_gem_publication_href.to_s).gsub('%2F', '/'))
286
+
287
+ # query parameters
288
+ query_params = opts[:query_params] || {}
289
+ query_params[:'fields'] = @api_client.build_collection_param(opts[:'fields'], :multi) if !opts[:'fields'].nil?
290
+ query_params[:'exclude_fields'] = @api_client.build_collection_param(opts[:'exclude_fields'], :multi) if !opts[:'exclude_fields'].nil?
291
+
292
+ # header parameters
293
+ header_params = opts[:header_params] || {}
294
+ # HTTP header 'Accept' (if needed)
295
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
296
+
297
+ # form parameters
298
+ form_params = opts[:form_params] || {}
299
+
300
+ # http body (model)
301
+ post_body = opts[:body]
302
+
303
+ # return_type
304
+ return_type = opts[:return_type] || 'GemGemPublicationResponse'
305
+
306
+ # auth_names
307
+ auth_names = opts[:auth_names] || ['basicAuth']
308
+
309
+ new_options = opts.merge(
310
+ :header_params => header_params,
311
+ :query_params => query_params,
312
+ :form_params => form_params,
313
+ :body => post_body,
314
+ :auth_names => auth_names,
315
+ :return_type => return_type
316
+ )
317
+
318
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
319
+ if @api_client.config.debugging
320
+ @api_client.config.logger.debug "API called: PublicationsGemApi#read\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
321
+ end
322
+ return data, status_code, headers
323
+ end
324
+ end
325
+ end