pulp_file_client 3.104.1 → 3.105.0

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 (36) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +21 -5
  3. data/docs/FileFileGitRemote.md +58 -0
  4. data/docs/FileFileGitRemoteResponse.md +58 -0
  5. data/docs/{FileFileRemoteResponseHiddenFieldsInner.md → FileFileGitRemoteResponseHiddenFieldsInner.md} +2 -2
  6. data/docs/FileFileRemoteResponse.md +1 -1
  7. data/docs/PaginatedfileFileGitRemoteResponseList.md +24 -0
  8. data/docs/PatchedfileFileGitRemote.md +58 -0
  9. data/docs/RemotesGitApi.md +981 -0
  10. data/lib/pulp_file_client/api/remotes_git_api.rb +979 -0
  11. data/lib/pulp_file_client/models/file_file_git_remote.rb +702 -0
  12. data/lib/pulp_file_client/models/file_file_git_remote_response.rb +521 -0
  13. data/lib/pulp_file_client/models/{file_file_remote_response_hidden_fields_inner.rb → file_file_git_remote_response_hidden_fields_inner.rb} +3 -3
  14. data/lib/pulp_file_client/models/file_file_remote.rb +15 -0
  15. data/lib/pulp_file_client/models/file_file_remote_response.rb +16 -1
  16. data/lib/pulp_file_client/models/file_file_repository.rb +15 -0
  17. data/lib/pulp_file_client/models/file_file_repository_response.rb +15 -0
  18. data/lib/pulp_file_client/models/paginatedfile_file_git_remote_response_list.rb +257 -0
  19. data/lib/pulp_file_client/models/patchedfile_file_git_remote.rb +688 -0
  20. data/lib/pulp_file_client/models/patchedfile_file_remote.rb +15 -0
  21. data/lib/pulp_file_client/models/patchedfile_file_repository.rb +15 -0
  22. data/lib/pulp_file_client/models/remote_network_config.rb +15 -0
  23. data/lib/pulp_file_client/models/remote_network_config_response.rb +15 -0
  24. data/lib/pulp_file_client/models/set_label.rb +0 -11
  25. data/lib/pulp_file_client/models/set_label_response.rb +0 -21
  26. data/lib/pulp_file_client/models/unset_label.rb +0 -11
  27. data/lib/pulp_file_client/models/unset_label_response.rb +0 -21
  28. data/lib/pulp_file_client/version.rb +1 -1
  29. data/lib/pulp_file_client.rb +6 -1
  30. data/spec/api/remotes_git_api_spec.rb +228 -0
  31. data/spec/models/{file_file_remote_response_hidden_fields_inner_spec.rb → file_file_git_remote_response_hidden_fields_inner_spec.rb} +6 -6
  32. data/spec/models/file_file_git_remote_response_spec.rb +156 -0
  33. data/spec/models/file_file_git_remote_spec.rb +156 -0
  34. data/spec/models/paginatedfile_file_git_remote_response_list_spec.rb +54 -0
  35. data/spec/models/patchedfile_file_git_remote_spec.rb +156 -0
  36. metadata +26 -6
@@ -0,0 +1,979 @@
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
+ Generator version: 7.10.0
10
+
11
+ =end
12
+
13
+ require 'cgi'
14
+
15
+ module PulpFileClient
16
+ class RemotesGitApi
17
+ attr_accessor :api_client
18
+
19
+ def initialize(api_client = ApiClient.default)
20
+ @api_client = api_client
21
+ end
22
+ # Add a role
23
+ # Add a role for this object to users/groups.
24
+ # @param file_file_git_remote_href [String]
25
+ # @param nested_role [NestedRole]
26
+ # @param [Hash] opts the optional parameters
27
+ # @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
28
+ # @return [NestedRoleResponse]
29
+ def add_role(file_file_git_remote_href, nested_role, opts = {})
30
+ data, _status_code, _headers = add_role_with_http_info(file_file_git_remote_href, nested_role, opts)
31
+ data
32
+ end
33
+
34
+ # Add a role
35
+ # Add a role for this object to users/groups.
36
+ # @param file_file_git_remote_href [String]
37
+ # @param nested_role [NestedRole]
38
+ # @param [Hash] opts the optional parameters
39
+ # @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
40
+ # @return [Array<(NestedRoleResponse, Integer, Hash)>] NestedRoleResponse data, response status code and response headers
41
+ def add_role_with_http_info(file_file_git_remote_href, nested_role, opts = {})
42
+ if @api_client.config.debugging
43
+ @api_client.config.logger.debug 'Calling API: RemotesGitApi.add_role ...'
44
+ end
45
+ # verify the required parameter 'file_file_git_remote_href' is set
46
+ if @api_client.config.client_side_validation && file_file_git_remote_href.nil?
47
+ fail ArgumentError, "Missing the required parameter 'file_file_git_remote_href' when calling RemotesGitApi.add_role"
48
+ end
49
+ # verify the required parameter 'nested_role' is set
50
+ if @api_client.config.client_side_validation && nested_role.nil?
51
+ fail ArgumentError, "Missing the required parameter 'nested_role' when calling RemotesGitApi.add_role"
52
+ end
53
+ # resource path
54
+ local_var_path = '{file_file_git_remote_href}add_role/'.sub('{' + 'file_file_git_remote_href' + '}', CGI.escape(file_file_git_remote_href.to_s).gsub('%2F', '/'))
55
+
56
+ # query parameters
57
+ query_params = opts[:query_params] || {}
58
+
59
+ # header parameters
60
+ header_params = opts[:header_params] || {}
61
+ # HTTP header 'Accept' (if needed)
62
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
63
+ # HTTP header 'Content-Type'
64
+ content_type = @api_client.select_header_content_type(['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'])
65
+ if !content_type.nil?
66
+ header_params['Content-Type'] = content_type
67
+ end
68
+ header_params[:'X-Task-Diagnostics'] = @api_client.build_collection_param(opts[:'x_task_diagnostics'], :csv) if !opts[:'x_task_diagnostics'].nil?
69
+
70
+ # form parameters
71
+ form_params = opts[:form_params] || {}
72
+
73
+ # http body (model)
74
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(nested_role)
75
+
76
+ # return_type
77
+ return_type = opts[:debug_return_type] || 'NestedRoleResponse'
78
+
79
+ # auth_names
80
+ auth_names = opts[:debug_auth_names] || ['basicAuth']
81
+
82
+ new_options = opts.merge(
83
+ :operation => :"RemotesGitApi.add_role",
84
+ :header_params => header_params,
85
+ :query_params => query_params,
86
+ :form_params => form_params,
87
+ :body => post_body,
88
+ :auth_names => auth_names,
89
+ :return_type => return_type
90
+ )
91
+
92
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
93
+ if @api_client.config.debugging
94
+ @api_client.config.logger.debug "API called: RemotesGitApi#add_role\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
95
+ end
96
+ return data, status_code, headers
97
+ end
98
+
99
+ # Create a file git remote
100
+ # FileGitRemote represents a Git repository as an external source of File Content. The target url of a FileGitRemote must point to a Git repository. Syncing will perform a bare clone and extract file metadata from the specified git ref.
101
+ # @param file_file_git_remote [FileFileGitRemote]
102
+ # @param [Hash] opts the optional parameters
103
+ # @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
104
+ # @return [FileFileGitRemoteResponse]
105
+ def create(file_file_git_remote, opts = {})
106
+ data, _status_code, _headers = create_with_http_info(file_file_git_remote, opts)
107
+ data
108
+ end
109
+
110
+ # Create a file git remote
111
+ # FileGitRemote represents a Git repository as an external source of File Content. The target url of a FileGitRemote must point to a Git repository. Syncing will perform a bare clone and extract file metadata from the specified git ref.
112
+ # @param file_file_git_remote [FileFileGitRemote]
113
+ # @param [Hash] opts the optional parameters
114
+ # @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
115
+ # @return [Array<(FileFileGitRemoteResponse, Integer, Hash)>] FileFileGitRemoteResponse data, response status code and response headers
116
+ def create_with_http_info(file_file_git_remote, opts = {})
117
+ if @api_client.config.debugging
118
+ @api_client.config.logger.debug 'Calling API: RemotesGitApi.create ...'
119
+ end
120
+ # verify the required parameter 'file_file_git_remote' is set
121
+ if @api_client.config.client_side_validation && file_file_git_remote.nil?
122
+ fail ArgumentError, "Missing the required parameter 'file_file_git_remote' when calling RemotesGitApi.create"
123
+ end
124
+ # resource path
125
+ local_var_path = '/pulp/api/v3/remotes/file/git/'
126
+
127
+ # query parameters
128
+ query_params = opts[:query_params] || {}
129
+
130
+ # header parameters
131
+ header_params = opts[:header_params] || {}
132
+ # HTTP header 'Accept' (if needed)
133
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
134
+ # HTTP header 'Content-Type'
135
+ content_type = @api_client.select_header_content_type(['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'])
136
+ if !content_type.nil?
137
+ header_params['Content-Type'] = content_type
138
+ end
139
+ header_params[:'X-Task-Diagnostics'] = @api_client.build_collection_param(opts[:'x_task_diagnostics'], :csv) if !opts[:'x_task_diagnostics'].nil?
140
+
141
+ # form parameters
142
+ form_params = opts[:form_params] || {}
143
+
144
+ # http body (model)
145
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(file_file_git_remote)
146
+
147
+ # return_type
148
+ return_type = opts[:debug_return_type] || 'FileFileGitRemoteResponse'
149
+
150
+ # auth_names
151
+ auth_names = opts[:debug_auth_names] || ['basicAuth']
152
+
153
+ new_options = opts.merge(
154
+ :operation => :"RemotesGitApi.create",
155
+ :header_params => header_params,
156
+ :query_params => query_params,
157
+ :form_params => form_params,
158
+ :body => post_body,
159
+ :auth_names => auth_names,
160
+ :return_type => return_type
161
+ )
162
+
163
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
164
+ if @api_client.config.debugging
165
+ @api_client.config.logger.debug "API called: RemotesGitApi#create\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
166
+ end
167
+ return data, status_code, headers
168
+ end
169
+
170
+ # Delete a file git remote
171
+ # Trigger an asynchronous delete task
172
+ # @param file_file_git_remote_href [String]
173
+ # @param [Hash] opts the optional parameters
174
+ # @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
175
+ # @return [AsyncOperationResponse]
176
+ def delete(file_file_git_remote_href, opts = {})
177
+ data, _status_code, _headers = delete_with_http_info(file_file_git_remote_href, opts)
178
+ data
179
+ end
180
+
181
+ # Delete a file git remote
182
+ # Trigger an asynchronous delete task
183
+ # @param file_file_git_remote_href [String]
184
+ # @param [Hash] opts the optional parameters
185
+ # @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
186
+ # @return [Array<(AsyncOperationResponse, Integer, Hash)>] AsyncOperationResponse data, response status code and response headers
187
+ def delete_with_http_info(file_file_git_remote_href, opts = {})
188
+ if @api_client.config.debugging
189
+ @api_client.config.logger.debug 'Calling API: RemotesGitApi.delete ...'
190
+ end
191
+ # verify the required parameter 'file_file_git_remote_href' is set
192
+ if @api_client.config.client_side_validation && file_file_git_remote_href.nil?
193
+ fail ArgumentError, "Missing the required parameter 'file_file_git_remote_href' when calling RemotesGitApi.delete"
194
+ end
195
+ # resource path
196
+ local_var_path = '{file_file_git_remote_href}'.sub('{' + 'file_file_git_remote_href' + '}', CGI.escape(file_file_git_remote_href.to_s).gsub('%2F', '/'))
197
+
198
+ # query parameters
199
+ query_params = opts[:query_params] || {}
200
+
201
+ # header parameters
202
+ header_params = opts[:header_params] || {}
203
+ # HTTP header 'Accept' (if needed)
204
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
205
+ header_params[:'X-Task-Diagnostics'] = @api_client.build_collection_param(opts[:'x_task_diagnostics'], :csv) if !opts[:'x_task_diagnostics'].nil?
206
+
207
+ # form parameters
208
+ form_params = opts[:form_params] || {}
209
+
210
+ # http body (model)
211
+ post_body = opts[:debug_body]
212
+
213
+ # return_type
214
+ return_type = opts[:debug_return_type] || 'AsyncOperationResponse'
215
+
216
+ # auth_names
217
+ auth_names = opts[:debug_auth_names] || ['basicAuth']
218
+
219
+ new_options = opts.merge(
220
+ :operation => :"RemotesGitApi.delete",
221
+ :header_params => header_params,
222
+ :query_params => query_params,
223
+ :form_params => form_params,
224
+ :body => post_body,
225
+ :auth_names => auth_names,
226
+ :return_type => return_type
227
+ )
228
+
229
+ data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
230
+ if @api_client.config.debugging
231
+ @api_client.config.logger.debug "API called: RemotesGitApi#delete\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
232
+ end
233
+ return data, status_code, headers
234
+ end
235
+
236
+ # List file git remotes
237
+ # FileGitRemote represents a Git repository as an external source of File Content. The target url of a FileGitRemote must point to a Git repository. Syncing will perform a bare clone and extract file metadata from the specified git ref.
238
+ # @param [Hash] opts the optional parameters
239
+ # @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
240
+ # @option opts [Integer] :limit Number of results to return per page.
241
+ # @option opts [String] :name Filter results where name matches value
242
+ # @option opts [String] :name__contains Filter results where name contains value
243
+ # @option opts [String] :name__icontains Filter results where name contains value
244
+ # @option opts [String] :name__iexact Filter results where name matches value
245
+ # @option opts [Array<String>] :name__in Filter results where name is in a comma-separated list of values
246
+ # @option opts [String] :name__iregex Filter results where name matches regex value
247
+ # @option opts [String] :name__istartswith Filter results where name starts with value
248
+ # @option opts [String] :name__regex Filter results where name matches regex value
249
+ # @option opts [String] :name__startswith Filter results where name starts with value
250
+ # @option opts [Integer] :offset The initial index from which to return the results.
251
+ # @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;name&#x60; - Name * &#x60;-name&#x60; - Name (descending) * &#x60;pulp_labels&#x60; - Pulp labels * &#x60;-pulp_labels&#x60; - Pulp labels (descending) * &#x60;url&#x60; - Url * &#x60;-url&#x60; - Url (descending) * &#x60;ca_cert&#x60; - Ca cert * &#x60;-ca_cert&#x60; - Ca cert (descending) * &#x60;client_cert&#x60; - Client cert * &#x60;-client_cert&#x60; - Client cert (descending) * &#x60;client_key&#x60; - Client key * &#x60;-client_key&#x60; - Client key (descending) * &#x60;tls_validation&#x60; - Tls validation * &#x60;-tls_validation&#x60; - Tls validation (descending) * &#x60;username&#x60; - Username * &#x60;-username&#x60; - Username (descending) * &#x60;password&#x60; - Password * &#x60;-password&#x60; - Password (descending) * &#x60;proxy_url&#x60; - Proxy url * &#x60;-proxy_url&#x60; - Proxy url (descending) * &#x60;proxy_username&#x60; - Proxy username * &#x60;-proxy_username&#x60; - Proxy username (descending) * &#x60;proxy_password&#x60; - Proxy password * &#x60;-proxy_password&#x60; - Proxy password (descending) * &#x60;download_concurrency&#x60; - Download concurrency * &#x60;-download_concurrency&#x60; - Download concurrency (descending) * &#x60;max_retries&#x60; - Max retries * &#x60;-max_retries&#x60; - Max retries (descending) * &#x60;policy&#x60; - Policy * &#x60;-policy&#x60; - Policy (descending) * &#x60;total_timeout&#x60; - Total timeout * &#x60;-total_timeout&#x60; - Total timeout (descending) * &#x60;connect_timeout&#x60; - Connect timeout * &#x60;-connect_timeout&#x60; - Connect timeout (descending) * &#x60;sock_connect_timeout&#x60; - Sock connect timeout * &#x60;-sock_connect_timeout&#x60; - Sock connect timeout (descending) * &#x60;sock_read_timeout&#x60; - Sock read timeout * &#x60;-sock_read_timeout&#x60; - Sock read timeout (descending) * &#x60;headers&#x60; - Headers * &#x60;-headers&#x60; - Headers (descending) * &#x60;rate_limit&#x60; - Rate limit * &#x60;-rate_limit&#x60; - Rate limit (descending) * &#x60;pk&#x60; - Pk * &#x60;-pk&#x60; - Pk (descending)
252
+ # @option opts [Array<String>] :prn__in Multiple values may be separated by commas.
253
+ # @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
254
+ # @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
255
+ # @option opts [String] :pulp_label_select Filter labels by search string
256
+ # @option opts [Time] :pulp_last_updated Filter results where pulp_last_updated matches value
257
+ # @option opts [Time] :pulp_last_updated__gt Filter results where pulp_last_updated is greater than value
258
+ # @option opts [Time] :pulp_last_updated__gte Filter results where pulp_last_updated is greater than or equal to value
259
+ # @option opts [Boolean] :pulp_last_updated__isnull Filter results where pulp_last_updated has a null value
260
+ # @option opts [Time] :pulp_last_updated__lt Filter results where pulp_last_updated is less than value
261
+ # @option opts [Time] :pulp_last_updated__lte Filter results where pulp_last_updated is less than or equal to value
262
+ # @option opts [Array<Time>] :pulp_last_updated__range Filter results where pulp_last_updated is between two comma separated values
263
+ # @option opts [String] :q Filter results by using NOT, AND and OR operations on other filters
264
+ # @option opts [Array<String>] :fields A list of fields to include in the response.
265
+ # @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
266
+ # @return [PaginatedfileFileGitRemoteResponseList]
267
+ def list(opts = {})
268
+ data, _status_code, _headers = list_with_http_info(opts)
269
+ data
270
+ end
271
+
272
+ # List file git remotes
273
+ # FileGitRemote represents a Git repository as an external source of File Content. The target url of a FileGitRemote must point to a Git repository. Syncing will perform a bare clone and extract file metadata from the specified git ref.
274
+ # @param [Hash] opts the optional parameters
275
+ # @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
276
+ # @option opts [Integer] :limit Number of results to return per page.
277
+ # @option opts [String] :name Filter results where name matches value
278
+ # @option opts [String] :name__contains Filter results where name contains value
279
+ # @option opts [String] :name__icontains Filter results where name contains value
280
+ # @option opts [String] :name__iexact Filter results where name matches value
281
+ # @option opts [Array<String>] :name__in Filter results where name is in a comma-separated list of values
282
+ # @option opts [String] :name__iregex Filter results where name matches regex value
283
+ # @option opts [String] :name__istartswith Filter results where name starts with value
284
+ # @option opts [String] :name__regex Filter results where name matches regex value
285
+ # @option opts [String] :name__startswith Filter results where name starts with value
286
+ # @option opts [Integer] :offset The initial index from which to return the results.
287
+ # @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;name&#x60; - Name * &#x60;-name&#x60; - Name (descending) * &#x60;pulp_labels&#x60; - Pulp labels * &#x60;-pulp_labels&#x60; - Pulp labels (descending) * &#x60;url&#x60; - Url * &#x60;-url&#x60; - Url (descending) * &#x60;ca_cert&#x60; - Ca cert * &#x60;-ca_cert&#x60; - Ca cert (descending) * &#x60;client_cert&#x60; - Client cert * &#x60;-client_cert&#x60; - Client cert (descending) * &#x60;client_key&#x60; - Client key * &#x60;-client_key&#x60; - Client key (descending) * &#x60;tls_validation&#x60; - Tls validation * &#x60;-tls_validation&#x60; - Tls validation (descending) * &#x60;username&#x60; - Username * &#x60;-username&#x60; - Username (descending) * &#x60;password&#x60; - Password * &#x60;-password&#x60; - Password (descending) * &#x60;proxy_url&#x60; - Proxy url * &#x60;-proxy_url&#x60; - Proxy url (descending) * &#x60;proxy_username&#x60; - Proxy username * &#x60;-proxy_username&#x60; - Proxy username (descending) * &#x60;proxy_password&#x60; - Proxy password * &#x60;-proxy_password&#x60; - Proxy password (descending) * &#x60;download_concurrency&#x60; - Download concurrency * &#x60;-download_concurrency&#x60; - Download concurrency (descending) * &#x60;max_retries&#x60; - Max retries * &#x60;-max_retries&#x60; - Max retries (descending) * &#x60;policy&#x60; - Policy * &#x60;-policy&#x60; - Policy (descending) * &#x60;total_timeout&#x60; - Total timeout * &#x60;-total_timeout&#x60; - Total timeout (descending) * &#x60;connect_timeout&#x60; - Connect timeout * &#x60;-connect_timeout&#x60; - Connect timeout (descending) * &#x60;sock_connect_timeout&#x60; - Sock connect timeout * &#x60;-sock_connect_timeout&#x60; - Sock connect timeout (descending) * &#x60;sock_read_timeout&#x60; - Sock read timeout * &#x60;-sock_read_timeout&#x60; - Sock read timeout (descending) * &#x60;headers&#x60; - Headers * &#x60;-headers&#x60; - Headers (descending) * &#x60;rate_limit&#x60; - Rate limit * &#x60;-rate_limit&#x60; - Rate limit (descending) * &#x60;pk&#x60; - Pk * &#x60;-pk&#x60; - Pk (descending)
288
+ # @option opts [Array<String>] :prn__in Multiple values may be separated by commas.
289
+ # @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
290
+ # @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
291
+ # @option opts [String] :pulp_label_select Filter labels by search string
292
+ # @option opts [Time] :pulp_last_updated Filter results where pulp_last_updated matches value
293
+ # @option opts [Time] :pulp_last_updated__gt Filter results where pulp_last_updated is greater than value
294
+ # @option opts [Time] :pulp_last_updated__gte Filter results where pulp_last_updated is greater than or equal to value
295
+ # @option opts [Boolean] :pulp_last_updated__isnull Filter results where pulp_last_updated has a null value
296
+ # @option opts [Time] :pulp_last_updated__lt Filter results where pulp_last_updated is less than value
297
+ # @option opts [Time] :pulp_last_updated__lte Filter results where pulp_last_updated is less than or equal to value
298
+ # @option opts [Array<Time>] :pulp_last_updated__range Filter results where pulp_last_updated is between two comma separated values
299
+ # @option opts [String] :q Filter results by using NOT, AND and OR operations on other filters
300
+ # @option opts [Array<String>] :fields A list of fields to include in the response.
301
+ # @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
302
+ # @return [Array<(PaginatedfileFileGitRemoteResponseList, Integer, Hash)>] PaginatedfileFileGitRemoteResponseList data, response status code and response headers
303
+ def list_with_http_info(opts = {})
304
+ if @api_client.config.debugging
305
+ @api_client.config.logger.debug 'Calling API: RemotesGitApi.list ...'
306
+ end
307
+ allowable_values = ["-ca_cert", "-client_cert", "-client_key", "-connect_timeout", "-download_concurrency", "-headers", "-max_retries", "-name", "-password", "-pk", "-policy", "-proxy_password", "-proxy_url", "-proxy_username", "-pulp_created", "-pulp_id", "-pulp_labels", "-pulp_last_updated", "-pulp_type", "-rate_limit", "-sock_connect_timeout", "-sock_read_timeout", "-tls_validation", "-total_timeout", "-url", "-username", "ca_cert", "client_cert", "client_key", "connect_timeout", "download_concurrency", "headers", "max_retries", "name", "password", "pk", "policy", "proxy_password", "proxy_url", "proxy_username", "pulp_created", "pulp_id", "pulp_labels", "pulp_last_updated", "pulp_type", "rate_limit", "sock_connect_timeout", "sock_read_timeout", "tls_validation", "total_timeout", "url", "username"]
308
+ if @api_client.config.client_side_validation && opts[:'ordering'] && !opts[:'ordering'].all? { |item| allowable_values.include?(item) }
309
+ fail ArgumentError, "invalid value for \"ordering\", must include one of #{allowable_values}"
310
+ end
311
+ # resource path
312
+ local_var_path = '/pulp/api/v3/remotes/file/git/'
313
+
314
+ # query parameters
315
+ query_params = opts[:query_params] || {}
316
+ query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
317
+ query_params[:'name'] = opts[:'name'] if !opts[:'name'].nil?
318
+ query_params[:'name__contains'] = opts[:'name__contains'] if !opts[:'name__contains'].nil?
319
+ query_params[:'name__icontains'] = opts[:'name__icontains'] if !opts[:'name__icontains'].nil?
320
+ query_params[:'name__iexact'] = opts[:'name__iexact'] if !opts[:'name__iexact'].nil?
321
+ query_params[:'name__in'] = @api_client.build_collection_param(opts[:'name__in'], :csv) if !opts[:'name__in'].nil?
322
+ query_params[:'name__iregex'] = opts[:'name__iregex'] if !opts[:'name__iregex'].nil?
323
+ query_params[:'name__istartswith'] = opts[:'name__istartswith'] if !opts[:'name__istartswith'].nil?
324
+ query_params[:'name__regex'] = opts[:'name__regex'] if !opts[:'name__regex'].nil?
325
+ query_params[:'name__startswith'] = opts[:'name__startswith'] if !opts[:'name__startswith'].nil?
326
+ query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
327
+ query_params[:'ordering'] = @api_client.build_collection_param(opts[:'ordering'], :csv) if !opts[:'ordering'].nil?
328
+ query_params[:'prn__in'] = @api_client.build_collection_param(opts[:'prn__in'], :csv) if !opts[:'prn__in'].nil?
329
+ query_params[:'pulp_href__in'] = @api_client.build_collection_param(opts[:'pulp_href__in'], :csv) if !opts[:'pulp_href__in'].nil?
330
+ query_params[:'pulp_id__in'] = @api_client.build_collection_param(opts[:'pulp_id__in'], :csv) if !opts[:'pulp_id__in'].nil?
331
+ query_params[:'pulp_label_select'] = opts[:'pulp_label_select'] if !opts[:'pulp_label_select'].nil?
332
+ query_params[:'pulp_last_updated'] = opts[:'pulp_last_updated'] if !opts[:'pulp_last_updated'].nil?
333
+ query_params[:'pulp_last_updated__gt'] = opts[:'pulp_last_updated__gt'] if !opts[:'pulp_last_updated__gt'].nil?
334
+ query_params[:'pulp_last_updated__gte'] = opts[:'pulp_last_updated__gte'] if !opts[:'pulp_last_updated__gte'].nil?
335
+ query_params[:'pulp_last_updated__isnull'] = opts[:'pulp_last_updated__isnull'] if !opts[:'pulp_last_updated__isnull'].nil?
336
+ query_params[:'pulp_last_updated__lt'] = opts[:'pulp_last_updated__lt'] if !opts[:'pulp_last_updated__lt'].nil?
337
+ query_params[:'pulp_last_updated__lte'] = opts[:'pulp_last_updated__lte'] if !opts[:'pulp_last_updated__lte'].nil?
338
+ query_params[:'pulp_last_updated__range'] = @api_client.build_collection_param(opts[:'pulp_last_updated__range'], :csv) if !opts[:'pulp_last_updated__range'].nil?
339
+ query_params[:'q'] = opts[:'q'] if !opts[:'q'].nil?
340
+ query_params[:'fields'] = @api_client.build_collection_param(opts[:'fields'], :multi) if !opts[:'fields'].nil?
341
+ query_params[:'exclude_fields'] = @api_client.build_collection_param(opts[:'exclude_fields'], :multi) if !opts[:'exclude_fields'].nil?
342
+
343
+ # header parameters
344
+ header_params = opts[:header_params] || {}
345
+ # HTTP header 'Accept' (if needed)
346
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
347
+ header_params[:'X-Task-Diagnostics'] = @api_client.build_collection_param(opts[:'x_task_diagnostics'], :csv) if !opts[:'x_task_diagnostics'].nil?
348
+
349
+ # form parameters
350
+ form_params = opts[:form_params] || {}
351
+
352
+ # http body (model)
353
+ post_body = opts[:debug_body]
354
+
355
+ # return_type
356
+ return_type = opts[:debug_return_type] || 'PaginatedfileFileGitRemoteResponseList'
357
+
358
+ # auth_names
359
+ auth_names = opts[:debug_auth_names] || ['basicAuth']
360
+
361
+ new_options = opts.merge(
362
+ :operation => :"RemotesGitApi.list",
363
+ :header_params => header_params,
364
+ :query_params => query_params,
365
+ :form_params => form_params,
366
+ :body => post_body,
367
+ :auth_names => auth_names,
368
+ :return_type => return_type
369
+ )
370
+
371
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
372
+ if @api_client.config.debugging
373
+ @api_client.config.logger.debug "API called: RemotesGitApi#list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
374
+ end
375
+ return data, status_code, headers
376
+ end
377
+
378
+ # List roles
379
+ # List roles assigned to this object.
380
+ # @param file_file_git_remote_href [String]
381
+ # @param [Hash] opts the optional parameters
382
+ # @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
383
+ # @option opts [Array<String>] :fields A list of fields to include in the response.
384
+ # @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
385
+ # @return [ObjectRolesResponse]
386
+ def list_roles(file_file_git_remote_href, opts = {})
387
+ data, _status_code, _headers = list_roles_with_http_info(file_file_git_remote_href, opts)
388
+ data
389
+ end
390
+
391
+ # List roles
392
+ # List roles assigned to this object.
393
+ # @param file_file_git_remote_href [String]
394
+ # @param [Hash] opts the optional parameters
395
+ # @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
396
+ # @option opts [Array<String>] :fields A list of fields to include in the response.
397
+ # @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
398
+ # @return [Array<(ObjectRolesResponse, Integer, Hash)>] ObjectRolesResponse data, response status code and response headers
399
+ def list_roles_with_http_info(file_file_git_remote_href, opts = {})
400
+ if @api_client.config.debugging
401
+ @api_client.config.logger.debug 'Calling API: RemotesGitApi.list_roles ...'
402
+ end
403
+ # verify the required parameter 'file_file_git_remote_href' is set
404
+ if @api_client.config.client_side_validation && file_file_git_remote_href.nil?
405
+ fail ArgumentError, "Missing the required parameter 'file_file_git_remote_href' when calling RemotesGitApi.list_roles"
406
+ end
407
+ # resource path
408
+ local_var_path = '{file_file_git_remote_href}list_roles/'.sub('{' + 'file_file_git_remote_href' + '}', CGI.escape(file_file_git_remote_href.to_s).gsub('%2F', '/'))
409
+
410
+ # query parameters
411
+ query_params = opts[:query_params] || {}
412
+ query_params[:'fields'] = @api_client.build_collection_param(opts[:'fields'], :multi) if !opts[:'fields'].nil?
413
+ query_params[:'exclude_fields'] = @api_client.build_collection_param(opts[:'exclude_fields'], :multi) if !opts[:'exclude_fields'].nil?
414
+
415
+ # header parameters
416
+ header_params = opts[:header_params] || {}
417
+ # HTTP header 'Accept' (if needed)
418
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
419
+ header_params[:'X-Task-Diagnostics'] = @api_client.build_collection_param(opts[:'x_task_diagnostics'], :csv) if !opts[:'x_task_diagnostics'].nil?
420
+
421
+ # form parameters
422
+ form_params = opts[:form_params] || {}
423
+
424
+ # http body (model)
425
+ post_body = opts[:debug_body]
426
+
427
+ # return_type
428
+ return_type = opts[:debug_return_type] || 'ObjectRolesResponse'
429
+
430
+ # auth_names
431
+ auth_names = opts[:debug_auth_names] || ['basicAuth']
432
+
433
+ new_options = opts.merge(
434
+ :operation => :"RemotesGitApi.list_roles",
435
+ :header_params => header_params,
436
+ :query_params => query_params,
437
+ :form_params => form_params,
438
+ :body => post_body,
439
+ :auth_names => auth_names,
440
+ :return_type => return_type
441
+ )
442
+
443
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
444
+ if @api_client.config.debugging
445
+ @api_client.config.logger.debug "API called: RemotesGitApi#list_roles\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
446
+ end
447
+ return data, status_code, headers
448
+ end
449
+
450
+ # List user permissions
451
+ # List permissions available to the current user on this object.
452
+ # @param file_file_git_remote_href [String]
453
+ # @param [Hash] opts the optional parameters
454
+ # @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
455
+ # @option opts [Array<String>] :fields A list of fields to include in the response.
456
+ # @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
457
+ # @return [MyPermissionsResponse]
458
+ def my_permissions(file_file_git_remote_href, opts = {})
459
+ data, _status_code, _headers = my_permissions_with_http_info(file_file_git_remote_href, opts)
460
+ data
461
+ end
462
+
463
+ # List user permissions
464
+ # List permissions available to the current user on this object.
465
+ # @param file_file_git_remote_href [String]
466
+ # @param [Hash] opts the optional parameters
467
+ # @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
468
+ # @option opts [Array<String>] :fields A list of fields to include in the response.
469
+ # @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
470
+ # @return [Array<(MyPermissionsResponse, Integer, Hash)>] MyPermissionsResponse data, response status code and response headers
471
+ def my_permissions_with_http_info(file_file_git_remote_href, opts = {})
472
+ if @api_client.config.debugging
473
+ @api_client.config.logger.debug 'Calling API: RemotesGitApi.my_permissions ...'
474
+ end
475
+ # verify the required parameter 'file_file_git_remote_href' is set
476
+ if @api_client.config.client_side_validation && file_file_git_remote_href.nil?
477
+ fail ArgumentError, "Missing the required parameter 'file_file_git_remote_href' when calling RemotesGitApi.my_permissions"
478
+ end
479
+ # resource path
480
+ local_var_path = '{file_file_git_remote_href}my_permissions/'.sub('{' + 'file_file_git_remote_href' + '}', CGI.escape(file_file_git_remote_href.to_s).gsub('%2F', '/'))
481
+
482
+ # query parameters
483
+ query_params = opts[:query_params] || {}
484
+ query_params[:'fields'] = @api_client.build_collection_param(opts[:'fields'], :multi) if !opts[:'fields'].nil?
485
+ query_params[:'exclude_fields'] = @api_client.build_collection_param(opts[:'exclude_fields'], :multi) if !opts[:'exclude_fields'].nil?
486
+
487
+ # header parameters
488
+ header_params = opts[:header_params] || {}
489
+ # HTTP header 'Accept' (if needed)
490
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
491
+ header_params[:'X-Task-Diagnostics'] = @api_client.build_collection_param(opts[:'x_task_diagnostics'], :csv) if !opts[:'x_task_diagnostics'].nil?
492
+
493
+ # form parameters
494
+ form_params = opts[:form_params] || {}
495
+
496
+ # http body (model)
497
+ post_body = opts[:debug_body]
498
+
499
+ # return_type
500
+ return_type = opts[:debug_return_type] || 'MyPermissionsResponse'
501
+
502
+ # auth_names
503
+ auth_names = opts[:debug_auth_names] || ['basicAuth']
504
+
505
+ new_options = opts.merge(
506
+ :operation => :"RemotesGitApi.my_permissions",
507
+ :header_params => header_params,
508
+ :query_params => query_params,
509
+ :form_params => form_params,
510
+ :body => post_body,
511
+ :auth_names => auth_names,
512
+ :return_type => return_type
513
+ )
514
+
515
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
516
+ if @api_client.config.debugging
517
+ @api_client.config.logger.debug "API called: RemotesGitApi#my_permissions\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
518
+ end
519
+ return data, status_code, headers
520
+ end
521
+
522
+ # Update a file git remote
523
+ # Update the entity partially and trigger an asynchronous task if necessary
524
+ # @param file_file_git_remote_href [String]
525
+ # @param patchedfile_file_git_remote [PatchedfileFileGitRemote]
526
+ # @param [Hash] opts the optional parameters
527
+ # @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
528
+ # @return [FileFileGitRemoteResponse]
529
+ def partial_update(file_file_git_remote_href, patchedfile_file_git_remote, opts = {})
530
+ data, _status_code, _headers = partial_update_with_http_info(file_file_git_remote_href, patchedfile_file_git_remote, opts)
531
+ data
532
+ end
533
+
534
+ # Update a file git remote
535
+ # Update the entity partially and trigger an asynchronous task if necessary
536
+ # @param file_file_git_remote_href [String]
537
+ # @param patchedfile_file_git_remote [PatchedfileFileGitRemote]
538
+ # @param [Hash] opts the optional parameters
539
+ # @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
540
+ # @return [Array<(FileFileGitRemoteResponse, Integer, Hash)>] FileFileGitRemoteResponse data, response status code and response headers
541
+ def partial_update_with_http_info(file_file_git_remote_href, patchedfile_file_git_remote, opts = {})
542
+ if @api_client.config.debugging
543
+ @api_client.config.logger.debug 'Calling API: RemotesGitApi.partial_update ...'
544
+ end
545
+ # verify the required parameter 'file_file_git_remote_href' is set
546
+ if @api_client.config.client_side_validation && file_file_git_remote_href.nil?
547
+ fail ArgumentError, "Missing the required parameter 'file_file_git_remote_href' when calling RemotesGitApi.partial_update"
548
+ end
549
+ # verify the required parameter 'patchedfile_file_git_remote' is set
550
+ if @api_client.config.client_side_validation && patchedfile_file_git_remote.nil?
551
+ fail ArgumentError, "Missing the required parameter 'patchedfile_file_git_remote' when calling RemotesGitApi.partial_update"
552
+ end
553
+ # resource path
554
+ local_var_path = '{file_file_git_remote_href}'.sub('{' + 'file_file_git_remote_href' + '}', CGI.escape(file_file_git_remote_href.to_s).gsub('%2F', '/'))
555
+
556
+ # query parameters
557
+ query_params = opts[:query_params] || {}
558
+
559
+ # header parameters
560
+ header_params = opts[:header_params] || {}
561
+ # HTTP header 'Accept' (if needed)
562
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
563
+ # HTTP header 'Content-Type'
564
+ content_type = @api_client.select_header_content_type(['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'])
565
+ if !content_type.nil?
566
+ header_params['Content-Type'] = content_type
567
+ end
568
+ header_params[:'X-Task-Diagnostics'] = @api_client.build_collection_param(opts[:'x_task_diagnostics'], :csv) if !opts[:'x_task_diagnostics'].nil?
569
+
570
+ # form parameters
571
+ form_params = opts[:form_params] || {}
572
+
573
+ # http body (model)
574
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(patchedfile_file_git_remote)
575
+
576
+ # return_type
577
+ return_type = opts[:debug_return_type] || 'FileFileGitRemoteResponse'
578
+
579
+ # auth_names
580
+ auth_names = opts[:debug_auth_names] || ['basicAuth']
581
+
582
+ new_options = opts.merge(
583
+ :operation => :"RemotesGitApi.partial_update",
584
+ :header_params => header_params,
585
+ :query_params => query_params,
586
+ :form_params => form_params,
587
+ :body => post_body,
588
+ :auth_names => auth_names,
589
+ :return_type => return_type
590
+ )
591
+
592
+ data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, new_options)
593
+ if @api_client.config.debugging
594
+ @api_client.config.logger.debug "API called: RemotesGitApi#partial_update\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
595
+ end
596
+ return data, status_code, headers
597
+ end
598
+
599
+ # Inspect a file git remote
600
+ # FileGitRemote represents a Git repository as an external source of File Content. The target url of a FileGitRemote must point to a Git repository. Syncing will perform a bare clone and extract file metadata from the specified git ref.
601
+ # @param file_file_git_remote_href [String]
602
+ # @param [Hash] opts the optional parameters
603
+ # @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
604
+ # @option opts [Array<String>] :fields A list of fields to include in the response.
605
+ # @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
606
+ # @return [FileFileGitRemoteResponse]
607
+ def read(file_file_git_remote_href, opts = {})
608
+ data, _status_code, _headers = read_with_http_info(file_file_git_remote_href, opts)
609
+ data
610
+ end
611
+
612
+ # Inspect a file git remote
613
+ # FileGitRemote represents a Git repository as an external source of File Content. The target url of a FileGitRemote must point to a Git repository. Syncing will perform a bare clone and extract file metadata from the specified git ref.
614
+ # @param file_file_git_remote_href [String]
615
+ # @param [Hash] opts the optional parameters
616
+ # @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
617
+ # @option opts [Array<String>] :fields A list of fields to include in the response.
618
+ # @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
619
+ # @return [Array<(FileFileGitRemoteResponse, Integer, Hash)>] FileFileGitRemoteResponse data, response status code and response headers
620
+ def read_with_http_info(file_file_git_remote_href, opts = {})
621
+ if @api_client.config.debugging
622
+ @api_client.config.logger.debug 'Calling API: RemotesGitApi.read ...'
623
+ end
624
+ # verify the required parameter 'file_file_git_remote_href' is set
625
+ if @api_client.config.client_side_validation && file_file_git_remote_href.nil?
626
+ fail ArgumentError, "Missing the required parameter 'file_file_git_remote_href' when calling RemotesGitApi.read"
627
+ end
628
+ # resource path
629
+ local_var_path = '{file_file_git_remote_href}'.sub('{' + 'file_file_git_remote_href' + '}', CGI.escape(file_file_git_remote_href.to_s).gsub('%2F', '/'))
630
+
631
+ # query parameters
632
+ query_params = opts[:query_params] || {}
633
+ query_params[:'fields'] = @api_client.build_collection_param(opts[:'fields'], :multi) if !opts[:'fields'].nil?
634
+ query_params[:'exclude_fields'] = @api_client.build_collection_param(opts[:'exclude_fields'], :multi) if !opts[:'exclude_fields'].nil?
635
+
636
+ # header parameters
637
+ header_params = opts[:header_params] || {}
638
+ # HTTP header 'Accept' (if needed)
639
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
640
+ header_params[:'X-Task-Diagnostics'] = @api_client.build_collection_param(opts[:'x_task_diagnostics'], :csv) if !opts[:'x_task_diagnostics'].nil?
641
+
642
+ # form parameters
643
+ form_params = opts[:form_params] || {}
644
+
645
+ # http body (model)
646
+ post_body = opts[:debug_body]
647
+
648
+ # return_type
649
+ return_type = opts[:debug_return_type] || 'FileFileGitRemoteResponse'
650
+
651
+ # auth_names
652
+ auth_names = opts[:debug_auth_names] || ['basicAuth']
653
+
654
+ new_options = opts.merge(
655
+ :operation => :"RemotesGitApi.read",
656
+ :header_params => header_params,
657
+ :query_params => query_params,
658
+ :form_params => form_params,
659
+ :body => post_body,
660
+ :auth_names => auth_names,
661
+ :return_type => return_type
662
+ )
663
+
664
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
665
+ if @api_client.config.debugging
666
+ @api_client.config.logger.debug "API called: RemotesGitApi#read\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
667
+ end
668
+ return data, status_code, headers
669
+ end
670
+
671
+ # Remove a role
672
+ # Remove a role for this object from users/groups.
673
+ # @param file_file_git_remote_href [String]
674
+ # @param nested_role [NestedRole]
675
+ # @param [Hash] opts the optional parameters
676
+ # @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
677
+ # @return [NestedRoleResponse]
678
+ def remove_role(file_file_git_remote_href, nested_role, opts = {})
679
+ data, _status_code, _headers = remove_role_with_http_info(file_file_git_remote_href, nested_role, opts)
680
+ data
681
+ end
682
+
683
+ # Remove a role
684
+ # Remove a role for this object from users/groups.
685
+ # @param file_file_git_remote_href [String]
686
+ # @param nested_role [NestedRole]
687
+ # @param [Hash] opts the optional parameters
688
+ # @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
689
+ # @return [Array<(NestedRoleResponse, Integer, Hash)>] NestedRoleResponse data, response status code and response headers
690
+ def remove_role_with_http_info(file_file_git_remote_href, nested_role, opts = {})
691
+ if @api_client.config.debugging
692
+ @api_client.config.logger.debug 'Calling API: RemotesGitApi.remove_role ...'
693
+ end
694
+ # verify the required parameter 'file_file_git_remote_href' is set
695
+ if @api_client.config.client_side_validation && file_file_git_remote_href.nil?
696
+ fail ArgumentError, "Missing the required parameter 'file_file_git_remote_href' when calling RemotesGitApi.remove_role"
697
+ end
698
+ # verify the required parameter 'nested_role' is set
699
+ if @api_client.config.client_side_validation && nested_role.nil?
700
+ fail ArgumentError, "Missing the required parameter 'nested_role' when calling RemotesGitApi.remove_role"
701
+ end
702
+ # resource path
703
+ local_var_path = '{file_file_git_remote_href}remove_role/'.sub('{' + 'file_file_git_remote_href' + '}', CGI.escape(file_file_git_remote_href.to_s).gsub('%2F', '/'))
704
+
705
+ # query parameters
706
+ query_params = opts[:query_params] || {}
707
+
708
+ # header parameters
709
+ header_params = opts[:header_params] || {}
710
+ # HTTP header 'Accept' (if needed)
711
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
712
+ # HTTP header 'Content-Type'
713
+ content_type = @api_client.select_header_content_type(['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'])
714
+ if !content_type.nil?
715
+ header_params['Content-Type'] = content_type
716
+ end
717
+ header_params[:'X-Task-Diagnostics'] = @api_client.build_collection_param(opts[:'x_task_diagnostics'], :csv) if !opts[:'x_task_diagnostics'].nil?
718
+
719
+ # form parameters
720
+ form_params = opts[:form_params] || {}
721
+
722
+ # http body (model)
723
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(nested_role)
724
+
725
+ # return_type
726
+ return_type = opts[:debug_return_type] || 'NestedRoleResponse'
727
+
728
+ # auth_names
729
+ auth_names = opts[:debug_auth_names] || ['basicAuth']
730
+
731
+ new_options = opts.merge(
732
+ :operation => :"RemotesGitApi.remove_role",
733
+ :header_params => header_params,
734
+ :query_params => query_params,
735
+ :form_params => form_params,
736
+ :body => post_body,
737
+ :auth_names => auth_names,
738
+ :return_type => return_type
739
+ )
740
+
741
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
742
+ if @api_client.config.debugging
743
+ @api_client.config.logger.debug "API called: RemotesGitApi#remove_role\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
744
+ end
745
+ return data, status_code, headers
746
+ end
747
+
748
+ # Set a label
749
+ # Set a single pulp_label on the object to a specific value or null.
750
+ # @param file_file_git_remote_href [String]
751
+ # @param set_label [SetLabel]
752
+ # @param [Hash] opts the optional parameters
753
+ # @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
754
+ # @return [SetLabelResponse]
755
+ def set_label(file_file_git_remote_href, set_label, opts = {})
756
+ data, _status_code, _headers = set_label_with_http_info(file_file_git_remote_href, set_label, opts)
757
+ data
758
+ end
759
+
760
+ # Set a label
761
+ # Set a single pulp_label on the object to a specific value or null.
762
+ # @param file_file_git_remote_href [String]
763
+ # @param set_label [SetLabel]
764
+ # @param [Hash] opts the optional parameters
765
+ # @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
766
+ # @return [Array<(SetLabelResponse, Integer, Hash)>] SetLabelResponse data, response status code and response headers
767
+ def set_label_with_http_info(file_file_git_remote_href, set_label, opts = {})
768
+ if @api_client.config.debugging
769
+ @api_client.config.logger.debug 'Calling API: RemotesGitApi.set_label ...'
770
+ end
771
+ # verify the required parameter 'file_file_git_remote_href' is set
772
+ if @api_client.config.client_side_validation && file_file_git_remote_href.nil?
773
+ fail ArgumentError, "Missing the required parameter 'file_file_git_remote_href' when calling RemotesGitApi.set_label"
774
+ end
775
+ # verify the required parameter 'set_label' is set
776
+ if @api_client.config.client_side_validation && set_label.nil?
777
+ fail ArgumentError, "Missing the required parameter 'set_label' when calling RemotesGitApi.set_label"
778
+ end
779
+ # resource path
780
+ local_var_path = '{file_file_git_remote_href}set_label/'.sub('{' + 'file_file_git_remote_href' + '}', CGI.escape(file_file_git_remote_href.to_s).gsub('%2F', '/'))
781
+
782
+ # query parameters
783
+ query_params = opts[:query_params] || {}
784
+
785
+ # header parameters
786
+ header_params = opts[:header_params] || {}
787
+ # HTTP header 'Accept' (if needed)
788
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
789
+ # HTTP header 'Content-Type'
790
+ content_type = @api_client.select_header_content_type(['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'])
791
+ if !content_type.nil?
792
+ header_params['Content-Type'] = content_type
793
+ end
794
+ header_params[:'X-Task-Diagnostics'] = @api_client.build_collection_param(opts[:'x_task_diagnostics'], :csv) if !opts[:'x_task_diagnostics'].nil?
795
+
796
+ # form parameters
797
+ form_params = opts[:form_params] || {}
798
+
799
+ # http body (model)
800
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(set_label)
801
+
802
+ # return_type
803
+ return_type = opts[:debug_return_type] || 'SetLabelResponse'
804
+
805
+ # auth_names
806
+ auth_names = opts[:debug_auth_names] || ['basicAuth']
807
+
808
+ new_options = opts.merge(
809
+ :operation => :"RemotesGitApi.set_label",
810
+ :header_params => header_params,
811
+ :query_params => query_params,
812
+ :form_params => form_params,
813
+ :body => post_body,
814
+ :auth_names => auth_names,
815
+ :return_type => return_type
816
+ )
817
+
818
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
819
+ if @api_client.config.debugging
820
+ @api_client.config.logger.debug "API called: RemotesGitApi#set_label\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
821
+ end
822
+ return data, status_code, headers
823
+ end
824
+
825
+ # Unset a label
826
+ # Unset a single pulp_label on the object.
827
+ # @param file_file_git_remote_href [String]
828
+ # @param unset_label [UnsetLabel]
829
+ # @param [Hash] opts the optional parameters
830
+ # @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
831
+ # @return [UnsetLabelResponse]
832
+ def unset_label(file_file_git_remote_href, unset_label, opts = {})
833
+ data, _status_code, _headers = unset_label_with_http_info(file_file_git_remote_href, unset_label, opts)
834
+ data
835
+ end
836
+
837
+ # Unset a label
838
+ # Unset a single pulp_label on the object.
839
+ # @param file_file_git_remote_href [String]
840
+ # @param unset_label [UnsetLabel]
841
+ # @param [Hash] opts the optional parameters
842
+ # @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
843
+ # @return [Array<(UnsetLabelResponse, Integer, Hash)>] UnsetLabelResponse data, response status code and response headers
844
+ def unset_label_with_http_info(file_file_git_remote_href, unset_label, opts = {})
845
+ if @api_client.config.debugging
846
+ @api_client.config.logger.debug 'Calling API: RemotesGitApi.unset_label ...'
847
+ end
848
+ # verify the required parameter 'file_file_git_remote_href' is set
849
+ if @api_client.config.client_side_validation && file_file_git_remote_href.nil?
850
+ fail ArgumentError, "Missing the required parameter 'file_file_git_remote_href' when calling RemotesGitApi.unset_label"
851
+ end
852
+ # verify the required parameter 'unset_label' is set
853
+ if @api_client.config.client_side_validation && unset_label.nil?
854
+ fail ArgumentError, "Missing the required parameter 'unset_label' when calling RemotesGitApi.unset_label"
855
+ end
856
+ # resource path
857
+ local_var_path = '{file_file_git_remote_href}unset_label/'.sub('{' + 'file_file_git_remote_href' + '}', CGI.escape(file_file_git_remote_href.to_s).gsub('%2F', '/'))
858
+
859
+ # query parameters
860
+ query_params = opts[:query_params] || {}
861
+
862
+ # header parameters
863
+ header_params = opts[:header_params] || {}
864
+ # HTTP header 'Accept' (if needed)
865
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
866
+ # HTTP header 'Content-Type'
867
+ content_type = @api_client.select_header_content_type(['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'])
868
+ if !content_type.nil?
869
+ header_params['Content-Type'] = content_type
870
+ end
871
+ header_params[:'X-Task-Diagnostics'] = @api_client.build_collection_param(opts[:'x_task_diagnostics'], :csv) if !opts[:'x_task_diagnostics'].nil?
872
+
873
+ # form parameters
874
+ form_params = opts[:form_params] || {}
875
+
876
+ # http body (model)
877
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(unset_label)
878
+
879
+ # return_type
880
+ return_type = opts[:debug_return_type] || 'UnsetLabelResponse'
881
+
882
+ # auth_names
883
+ auth_names = opts[:debug_auth_names] || ['basicAuth']
884
+
885
+ new_options = opts.merge(
886
+ :operation => :"RemotesGitApi.unset_label",
887
+ :header_params => header_params,
888
+ :query_params => query_params,
889
+ :form_params => form_params,
890
+ :body => post_body,
891
+ :auth_names => auth_names,
892
+ :return_type => return_type
893
+ )
894
+
895
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
896
+ if @api_client.config.debugging
897
+ @api_client.config.logger.debug "API called: RemotesGitApi#unset_label\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
898
+ end
899
+ return data, status_code, headers
900
+ end
901
+
902
+ # Update a file git remote
903
+ # Update the entity and trigger an asynchronous task if necessary
904
+ # @param file_file_git_remote_href [String]
905
+ # @param file_file_git_remote [FileFileGitRemote]
906
+ # @param [Hash] opts the optional parameters
907
+ # @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
908
+ # @return [FileFileGitRemoteResponse]
909
+ def update(file_file_git_remote_href, file_file_git_remote, opts = {})
910
+ data, _status_code, _headers = update_with_http_info(file_file_git_remote_href, file_file_git_remote, opts)
911
+ data
912
+ end
913
+
914
+ # Update a file git remote
915
+ # Update the entity and trigger an asynchronous task if necessary
916
+ # @param file_file_git_remote_href [String]
917
+ # @param file_file_git_remote [FileFileGitRemote]
918
+ # @param [Hash] opts the optional parameters
919
+ # @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
920
+ # @return [Array<(FileFileGitRemoteResponse, Integer, Hash)>] FileFileGitRemoteResponse data, response status code and response headers
921
+ def update_with_http_info(file_file_git_remote_href, file_file_git_remote, opts = {})
922
+ if @api_client.config.debugging
923
+ @api_client.config.logger.debug 'Calling API: RemotesGitApi.update ...'
924
+ end
925
+ # verify the required parameter 'file_file_git_remote_href' is set
926
+ if @api_client.config.client_side_validation && file_file_git_remote_href.nil?
927
+ fail ArgumentError, "Missing the required parameter 'file_file_git_remote_href' when calling RemotesGitApi.update"
928
+ end
929
+ # verify the required parameter 'file_file_git_remote' is set
930
+ if @api_client.config.client_side_validation && file_file_git_remote.nil?
931
+ fail ArgumentError, "Missing the required parameter 'file_file_git_remote' when calling RemotesGitApi.update"
932
+ end
933
+ # resource path
934
+ local_var_path = '{file_file_git_remote_href}'.sub('{' + 'file_file_git_remote_href' + '}', CGI.escape(file_file_git_remote_href.to_s).gsub('%2F', '/'))
935
+
936
+ # query parameters
937
+ query_params = opts[:query_params] || {}
938
+
939
+ # header parameters
940
+ header_params = opts[:header_params] || {}
941
+ # HTTP header 'Accept' (if needed)
942
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
943
+ # HTTP header 'Content-Type'
944
+ content_type = @api_client.select_header_content_type(['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'])
945
+ if !content_type.nil?
946
+ header_params['Content-Type'] = content_type
947
+ end
948
+ header_params[:'X-Task-Diagnostics'] = @api_client.build_collection_param(opts[:'x_task_diagnostics'], :csv) if !opts[:'x_task_diagnostics'].nil?
949
+
950
+ # form parameters
951
+ form_params = opts[:form_params] || {}
952
+
953
+ # http body (model)
954
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(file_file_git_remote)
955
+
956
+ # return_type
957
+ return_type = opts[:debug_return_type] || 'FileFileGitRemoteResponse'
958
+
959
+ # auth_names
960
+ auth_names = opts[:debug_auth_names] || ['basicAuth']
961
+
962
+ new_options = opts.merge(
963
+ :operation => :"RemotesGitApi.update",
964
+ :header_params => header_params,
965
+ :query_params => query_params,
966
+ :form_params => form_params,
967
+ :body => post_body,
968
+ :auth_names => auth_names,
969
+ :return_type => return_type
970
+ )
971
+
972
+ data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
973
+ if @api_client.config.debugging
974
+ @api_client.config.logger.debug "API called: RemotesGitApi#update\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
975
+ end
976
+ return data, status_code, headers
977
+ end
978
+ end
979
+ end