Class: CloudsmithApi::ReposApi

Inherits:
Object
  • Object
show all
Defined in:
lib/cloudsmith-api/api/repos_api.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(api_client = ApiClient.default) ⇒ ReposApi

Returns a new instance of ReposApi.



19
20
21
# File 'lib/cloudsmith-api/api/repos_api.rb', line 19

def initialize(api_client = ApiClient.default)
  @api_client = api_client
end

Instance Attribute Details

#api_clientObject

Returns the value of attribute api_client.



17
18
19
# File 'lib/cloudsmith-api/api/repos_api.rb', line 17

def api_client
  @api_client
end

Instance Method Details

#repos_create(owner, opts = {}) ⇒ RepositoryCreate

Create a new repository in a given namespace. Create a new repository in a given namespace.

Parameters:

  • owner
  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

Returns:



28
29
30
31
# File 'lib/cloudsmith-api/api/repos_api.rb', line 28

def repos_create(owner, opts = {})
  data, _status_code, _headers = repos_create_with_http_info(owner, opts)
  data
end

#repos_create_with_http_info(owner, opts = {}) ⇒ Array<(RepositoryCreate, Fixnum, Hash)>

Create a new repository in a given namespace. Create a new repository in a given namespace.

Parameters:

  • owner
  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

Returns:

  • (Array<(RepositoryCreate, Fixnum, Hash)>)

    RepositoryCreate data, response status code and response headers



39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
# File 'lib/cloudsmith-api/api/repos_api.rb', line 39

def repos_create_with_http_info(owner, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: ReposApi.repos_create ...'
  end
  # verify the required parameter 'owner' is set
  if @api_client.config.client_side_validation && owner.nil?
    fail ArgumentError, "Missing the required parameter 'owner' when calling ReposApi.repos_create"
  end
  # resource path
  local_var_path = '/repos/{owner}/'.sub('{' + 'owner' + '}', owner.to_s)

  # query parameters
  query_params = {}

  # header parameters
  header_params = {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
  # HTTP header 'Content-Type'
  header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])

  # form parameters
  form_params = {}

  # http body (model)
  post_body = @api_client.object_to_http_body(opts[:'data'])
  auth_names = ['apikey']
  data, status_code, headers = @api_client.call_api(:POST, local_var_path,
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => 'RepositoryCreate')
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: ReposApi#repos_create\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#repos_delete(owner, identifier, opts = {}) ⇒ nil

Delete a repository in a given namespace. Delete a repository in a given namespace.

Parameters:

  • owner
  • identifier
  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:

  • (nil)


84
85
86
87
# File 'lib/cloudsmith-api/api/repos_api.rb', line 84

def repos_delete(owner, identifier, opts = {})
  repos_delete_with_http_info(owner, identifier, opts)
  nil
end

#repos_delete_with_http_info(owner, identifier, opts = {}) ⇒ Array<(nil, Fixnum, Hash)>

Delete a repository in a given namespace. Delete a repository in a given namespace.

Parameters:

  • owner
  • identifier
  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:

  • (Array<(nil, Fixnum, Hash)>)

    nil, response status code and response headers



95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
# File 'lib/cloudsmith-api/api/repos_api.rb', line 95

def repos_delete_with_http_info(owner, identifier, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: ReposApi.repos_delete ...'
  end
  # verify the required parameter 'owner' is set
  if @api_client.config.client_side_validation && owner.nil?
    fail ArgumentError, "Missing the required parameter 'owner' when calling ReposApi.repos_delete"
  end
  # verify the required parameter 'identifier' is set
  if @api_client.config.client_side_validation && identifier.nil?
    fail ArgumentError, "Missing the required parameter 'identifier' when calling ReposApi.repos_delete"
  end
  # resource path
  local_var_path = '/repos/{owner}/{identifier}/'.sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'identifier' + '}', identifier.to_s)

  # query parameters
  query_params = {}

  # header parameters
  header_params = {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
  # HTTP header 'Content-Type'
  header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])

  # form parameters
  form_params = {}

  # http body (model)
  post_body = nil
  auth_names = ['apikey']
  data, status_code, headers = @api_client.call_api(:DELETE, local_var_path,
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names)
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: ReposApi#repos_delete\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#repos_geoip_disable(owner, identifier, opts = {}) ⇒ nil

Disable GeoIP for this repository. Disable GeoIP for this repository.

Parameters:

  • owner
  • identifier
  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

Returns:

  • (nil)


144
145
146
147
# File 'lib/cloudsmith-api/api/repos_api.rb', line 144

def repos_geoip_disable(owner, identifier, opts = {})
  repos_geoip_disable_with_http_info(owner, identifier, opts)
  nil
end

#repos_geoip_disable_with_http_info(owner, identifier, opts = {}) ⇒ Array<(nil, Fixnum, Hash)>

Disable GeoIP for this repository. Disable GeoIP for this repository.

Parameters:

  • owner
  • identifier
  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

Returns:

  • (Array<(nil, Fixnum, Hash)>)

    nil, response status code and response headers



156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
# File 'lib/cloudsmith-api/api/repos_api.rb', line 156

def repos_geoip_disable_with_http_info(owner, identifier, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: ReposApi.repos_geoip_disable ...'
  end
  # verify the required parameter 'owner' is set
  if @api_client.config.client_side_validation && owner.nil?
    fail ArgumentError, "Missing the required parameter 'owner' when calling ReposApi.repos_geoip_disable"
  end
  # verify the required parameter 'identifier' is set
  if @api_client.config.client_side_validation && identifier.nil?
    fail ArgumentError, "Missing the required parameter 'identifier' when calling ReposApi.repos_geoip_disable"
  end
  # resource path
  local_var_path = '/repos/{owner}/{identifier}/geoip/disable/'.sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'identifier' + '}', identifier.to_s)

  # query parameters
  query_params = {}

  # header parameters
  header_params = {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
  # HTTP header 'Content-Type'
  header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])

  # form parameters
  form_params = {}

  # http body (model)
  post_body = @api_client.object_to_http_body(opts[:'data'])
  auth_names = ['apikey']
  data, status_code, headers = @api_client.call_api(:POST, local_var_path,
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names)
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: ReposApi#repos_geoip_disable\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#repos_geoip_enable(owner, identifier, opts = {}) ⇒ nil

Enable GeoIP for this repository. Enable GeoIP for this repository.

Parameters:

  • owner
  • identifier
  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

Returns:

  • (nil)


205
206
207
208
# File 'lib/cloudsmith-api/api/repos_api.rb', line 205

def repos_geoip_enable(owner, identifier, opts = {})
  repos_geoip_enable_with_http_info(owner, identifier, opts)
  nil
end

#repos_geoip_enable_with_http_info(owner, identifier, opts = {}) ⇒ Array<(nil, Fixnum, Hash)>

Enable GeoIP for this repository. Enable GeoIP for this repository.

Parameters:

  • owner
  • identifier
  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

Returns:

  • (Array<(nil, Fixnum, Hash)>)

    nil, response status code and response headers



217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
# File 'lib/cloudsmith-api/api/repos_api.rb', line 217

def repos_geoip_enable_with_http_info(owner, identifier, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: ReposApi.repos_geoip_enable ...'
  end
  # verify the required parameter 'owner' is set
  if @api_client.config.client_side_validation && owner.nil?
    fail ArgumentError, "Missing the required parameter 'owner' when calling ReposApi.repos_geoip_enable"
  end
  # verify the required parameter 'identifier' is set
  if @api_client.config.client_side_validation && identifier.nil?
    fail ArgumentError, "Missing the required parameter 'identifier' when calling ReposApi.repos_geoip_enable"
  end
  # resource path
  local_var_path = '/repos/{owner}/{identifier}/geoip/enable/'.sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'identifier' + '}', identifier.to_s)

  # query parameters
  query_params = {}

  # header parameters
  header_params = {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
  # HTTP header 'Content-Type'
  header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])

  # form parameters
  form_params = {}

  # http body (model)
  post_body = @api_client.object_to_http_body(opts[:'data'])
  auth_names = ['apikey']
  data, status_code, headers = @api_client.call_api(:POST, local_var_path,
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names)
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: ReposApi#repos_geoip_enable\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#repos_geoip_partial_update(owner, identifier, opts = {}) ⇒ RepositoryGeoIpRules

Partially update repository geoip rules. Partially update repository geoip rules.

Parameters:

  • owner
  • identifier
  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

Returns:



266
267
268
269
# File 'lib/cloudsmith-api/api/repos_api.rb', line 266

def repos_geoip_partial_update(owner, identifier, opts = {})
  data, _status_code, _headers = repos_geoip_partial_update_with_http_info(owner, identifier, opts)
  data
end

#repos_geoip_partial_update_with_http_info(owner, identifier, opts = {}) ⇒ Array<(RepositoryGeoIpRules, Fixnum, Hash)>

Partially update repository geoip rules. Partially update repository geoip rules.

Parameters:

  • owner
  • identifier
  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

Returns:

  • (Array<(RepositoryGeoIpRules, Fixnum, Hash)>)

    RepositoryGeoIpRules data, response status code and response headers



278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
# File 'lib/cloudsmith-api/api/repos_api.rb', line 278

def repos_geoip_partial_update_with_http_info(owner, identifier, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: ReposApi.repos_geoip_partial_update ...'
  end
  # verify the required parameter 'owner' is set
  if @api_client.config.client_side_validation && owner.nil?
    fail ArgumentError, "Missing the required parameter 'owner' when calling ReposApi.repos_geoip_partial_update"
  end
  # verify the required parameter 'identifier' is set
  if @api_client.config.client_side_validation && identifier.nil?
    fail ArgumentError, "Missing the required parameter 'identifier' when calling ReposApi.repos_geoip_partial_update"
  end
  # resource path
  local_var_path = '/repos/{owner}/{identifier}/geoip'.sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'identifier' + '}', identifier.to_s)

  # query parameters
  query_params = {}

  # header parameters
  header_params = {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
  # HTTP header 'Content-Type'
  header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])

  # form parameters
  form_params = {}

  # http body (model)
  post_body = @api_client.object_to_http_body(opts[:'data'])
  auth_names = ['apikey']
  data, status_code, headers = @api_client.call_api(:PATCH, local_var_path,
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => 'RepositoryGeoIpRules')
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: ReposApi#repos_geoip_partial_update\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#repos_geoip_read(owner, identifier, opts = {}) ⇒ RepositoryGeoIpRules

List all repository geoip rules. List all repository geoip rules.

Parameters:

  • owner
  • identifier
  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:



327
328
329
330
# File 'lib/cloudsmith-api/api/repos_api.rb', line 327

def repos_geoip_read(owner, identifier, opts = {})
  data, _status_code, _headers = repos_geoip_read_with_http_info(owner, identifier, opts)
  data
end

#repos_geoip_read_with_http_info(owner, identifier, opts = {}) ⇒ Array<(RepositoryGeoIpRules, Fixnum, Hash)>

List all repository geoip rules. List all repository geoip rules.

Parameters:

  • owner
  • identifier
  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:

  • (Array<(RepositoryGeoIpRules, Fixnum, Hash)>)

    RepositoryGeoIpRules data, response status code and response headers



338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
# File 'lib/cloudsmith-api/api/repos_api.rb', line 338

def repos_geoip_read_with_http_info(owner, identifier, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: ReposApi.repos_geoip_read ...'
  end
  # verify the required parameter 'owner' is set
  if @api_client.config.client_side_validation && owner.nil?
    fail ArgumentError, "Missing the required parameter 'owner' when calling ReposApi.repos_geoip_read"
  end
  # verify the required parameter 'identifier' is set
  if @api_client.config.client_side_validation && identifier.nil?
    fail ArgumentError, "Missing the required parameter 'identifier' when calling ReposApi.repos_geoip_read"
  end
  # resource path
  local_var_path = '/repos/{owner}/{identifier}/geoip'.sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'identifier' + '}', identifier.to_s)

  # query parameters
  query_params = {}

  # header parameters
  header_params = {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
  # HTTP header 'Content-Type'
  header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])

  # form parameters
  form_params = {}

  # http body (model)
  post_body = nil
  auth_names = ['apikey']
  data, status_code, headers = @api_client.call_api(:GET, local_var_path,
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => 'RepositoryGeoIpRules')
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: ReposApi#repos_geoip_read\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#repos_geoip_test(owner, identifier, opts = {}) ⇒ RepositoryGeoIpTestAddressResponse

Test a list of IP addresses against the repository’s current GeoIP rules. Test a list of IP addresses against the repository’s current GeoIP rules.

Parameters:

  • owner
  • identifier
  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

Returns:



388
389
390
391
# File 'lib/cloudsmith-api/api/repos_api.rb', line 388

def repos_geoip_test(owner, identifier, opts = {})
  data, _status_code, _headers = repos_geoip_test_with_http_info(owner, identifier, opts)
  data
end

#repos_geoip_test_with_http_info(owner, identifier, opts = {}) ⇒ Array<(RepositoryGeoIpTestAddressResponse, Fixnum, Hash)>

Test a list of IP addresses against the repository&#39;s current GeoIP rules. Test a list of IP addresses against the repository&#39;s current GeoIP rules.

Parameters:

  • owner
  • identifier
  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

Returns:



400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
# File 'lib/cloudsmith-api/api/repos_api.rb', line 400

def repos_geoip_test_with_http_info(owner, identifier, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: ReposApi.repos_geoip_test ...'
  end
  # verify the required parameter 'owner' is set
  if @api_client.config.client_side_validation && owner.nil?
    fail ArgumentError, "Missing the required parameter 'owner' when calling ReposApi.repos_geoip_test"
  end
  # verify the required parameter 'identifier' is set
  if @api_client.config.client_side_validation && identifier.nil?
    fail ArgumentError, "Missing the required parameter 'identifier' when calling ReposApi.repos_geoip_test"
  end
  # resource path
  local_var_path = '/repos/{owner}/{identifier}/geoip/test/'.sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'identifier' + '}', identifier.to_s)

  # query parameters
  query_params = {}

  # header parameters
  header_params = {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
  # HTTP header 'Content-Type'
  header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])

  # form parameters
  form_params = {}

  # http body (model)
  post_body = @api_client.object_to_http_body(opts[:'data'])
  auth_names = ['apikey']
  data, status_code, headers = @api_client.call_api(:POST, local_var_path,
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => 'RepositoryGeoIpTestAddressResponse')
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: ReposApi#repos_geoip_test\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#repos_geoip_update(owner, identifier, opts = {}) ⇒ RepositoryGeoIpRules

Replace repository geoip rules. Replace repository geoip rules.

Parameters:

  • owner
  • identifier
  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

Returns:



450
451
452
453
# File 'lib/cloudsmith-api/api/repos_api.rb', line 450

def repos_geoip_update(owner, identifier, opts = {})
  data, _status_code, _headers = repos_geoip_update_with_http_info(owner, identifier, opts)
  data
end

#repos_geoip_update_with_http_info(owner, identifier, opts = {}) ⇒ Array<(RepositoryGeoIpRules, Fixnum, Hash)>

Replace repository geoip rules. Replace repository geoip rules.

Parameters:

  • owner
  • identifier
  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

Returns:

  • (Array<(RepositoryGeoIpRules, Fixnum, Hash)>)

    RepositoryGeoIpRules data, response status code and response headers



462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
# File 'lib/cloudsmith-api/api/repos_api.rb', line 462

def repos_geoip_update_with_http_info(owner, identifier, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: ReposApi.repos_geoip_update ...'
  end
  # verify the required parameter 'owner' is set
  if @api_client.config.client_side_validation && owner.nil?
    fail ArgumentError, "Missing the required parameter 'owner' when calling ReposApi.repos_geoip_update"
  end
  # verify the required parameter 'identifier' is set
  if @api_client.config.client_side_validation && identifier.nil?
    fail ArgumentError, "Missing the required parameter 'identifier' when calling ReposApi.repos_geoip_update"
  end
  # resource path
  local_var_path = '/repos/{owner}/{identifier}/geoip'.sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'identifier' + '}', identifier.to_s)

  # query parameters
  query_params = {}

  # header parameters
  header_params = {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
  # HTTP header 'Content-Type'
  header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])

  # form parameters
  form_params = {}

  # http body (model)
  post_body = @api_client.object_to_http_body(opts[:'data'])
  auth_names = ['apikey']
  data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => 'RepositoryGeoIpRules')
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: ReposApi#repos_geoip_update\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#repos_gpg_create(owner, identifier, opts = {}) ⇒ RepositoryGpgKey

Set the active GPG key for the Repository. Set the active GPG key for the Repository.

Parameters:

  • owner
  • identifier
  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

Returns:



512
513
514
515
# File 'lib/cloudsmith-api/api/repos_api.rb', line 512

def repos_gpg_create(owner, identifier, opts = {})
  data, _status_code, _headers = repos_gpg_create_with_http_info(owner, identifier, opts)
  data
end

#repos_gpg_create_with_http_info(owner, identifier, opts = {}) ⇒ Array<(RepositoryGpgKey, Fixnum, Hash)>

Set the active GPG key for the Repository. Set the active GPG key for the Repository.

Parameters:

  • owner
  • identifier
  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

Returns:

  • (Array<(RepositoryGpgKey, Fixnum, Hash)>)

    RepositoryGpgKey data, response status code and response headers



524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
# File 'lib/cloudsmith-api/api/repos_api.rb', line 524

def repos_gpg_create_with_http_info(owner, identifier, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: ReposApi.repos_gpg_create ...'
  end
  # verify the required parameter 'owner' is set
  if @api_client.config.client_side_validation && owner.nil?
    fail ArgumentError, "Missing the required parameter 'owner' when calling ReposApi.repos_gpg_create"
  end
  # verify the required parameter 'identifier' is set
  if @api_client.config.client_side_validation && identifier.nil?
    fail ArgumentError, "Missing the required parameter 'identifier' when calling ReposApi.repos_gpg_create"
  end
  # resource path
  local_var_path = '/repos/{owner}/{identifier}/gpg/'.sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'identifier' + '}', identifier.to_s)

  # query parameters
  query_params = {}

  # header parameters
  header_params = {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
  # HTTP header 'Content-Type'
  header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])

  # form parameters
  form_params = {}

  # http body (model)
  post_body = @api_client.object_to_http_body(opts[:'data'])
  auth_names = ['apikey']
  data, status_code, headers = @api_client.call_api(:POST, local_var_path,
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => 'RepositoryGpgKey')
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: ReposApi#repos_gpg_create\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#repos_gpg_list(owner, identifier, opts = {}) ⇒ RepositoryGpgKey

Retrieve the active GPG key for the Repository. Retrieve the active GPG key for the Repository.

Parameters:

  • owner
  • identifier
  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:



573
574
575
576
# File 'lib/cloudsmith-api/api/repos_api.rb', line 573

def repos_gpg_list(owner, identifier, opts = {})
  data, _status_code, _headers = repos_gpg_list_with_http_info(owner, identifier, opts)
  data
end

#repos_gpg_list_with_http_info(owner, identifier, opts = {}) ⇒ Array<(RepositoryGpgKey, Fixnum, Hash)>

Retrieve the active GPG key for the Repository. Retrieve the active GPG key for the Repository.

Parameters:

  • owner
  • identifier
  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:

  • (Array<(RepositoryGpgKey, Fixnum, Hash)>)

    RepositoryGpgKey data, response status code and response headers



584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
# File 'lib/cloudsmith-api/api/repos_api.rb', line 584

def repos_gpg_list_with_http_info(owner, identifier, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: ReposApi.repos_gpg_list ...'
  end
  # verify the required parameter 'owner' is set
  if @api_client.config.client_side_validation && owner.nil?
    fail ArgumentError, "Missing the required parameter 'owner' when calling ReposApi.repos_gpg_list"
  end
  # verify the required parameter 'identifier' is set
  if @api_client.config.client_side_validation && identifier.nil?
    fail ArgumentError, "Missing the required parameter 'identifier' when calling ReposApi.repos_gpg_list"
  end
  # resource path
  local_var_path = '/repos/{owner}/{identifier}/gpg/'.sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'identifier' + '}', identifier.to_s)

  # query parameters
  query_params = {}

  # header parameters
  header_params = {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
  # HTTP header 'Content-Type'
  header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])

  # form parameters
  form_params = {}

  # http body (model)
  post_body = nil
  auth_names = ['apikey']
  data, status_code, headers = @api_client.call_api(:GET, local_var_path,
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => 'RepositoryGpgKey')
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: ReposApi#repos_gpg_list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#repos_gpg_regenerate(owner, identifier, opts = {}) ⇒ RepositoryGpgKey

Regenerate GPG Key for the Repository. Regenerate GPG Key for the Repository.

Parameters:

  • owner
  • identifier
  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:



633
634
635
636
# File 'lib/cloudsmith-api/api/repos_api.rb', line 633

def repos_gpg_regenerate(owner, identifier, opts = {})
  data, _status_code, _headers = repos_gpg_regenerate_with_http_info(owner, identifier, opts)
  data
end

#repos_gpg_regenerate_with_http_info(owner, identifier, opts = {}) ⇒ Array<(RepositoryGpgKey, Fixnum, Hash)>

Regenerate GPG Key for the Repository. Regenerate GPG Key for the Repository.

Parameters:

  • owner
  • identifier
  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:

  • (Array<(RepositoryGpgKey, Fixnum, Hash)>)

    RepositoryGpgKey data, response status code and response headers



644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
# File 'lib/cloudsmith-api/api/repos_api.rb', line 644

def repos_gpg_regenerate_with_http_info(owner, identifier, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: ReposApi.repos_gpg_regenerate ...'
  end
  # verify the required parameter 'owner' is set
  if @api_client.config.client_side_validation && owner.nil?
    fail ArgumentError, "Missing the required parameter 'owner' when calling ReposApi.repos_gpg_regenerate"
  end
  # verify the required parameter 'identifier' is set
  if @api_client.config.client_side_validation && identifier.nil?
    fail ArgumentError, "Missing the required parameter 'identifier' when calling ReposApi.repos_gpg_regenerate"
  end
  # resource path
  local_var_path = '/repos/{owner}/{identifier}/gpg/regenerate/'.sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'identifier' + '}', identifier.to_s)

  # query parameters
  query_params = {}

  # header parameters
  header_params = {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
  # HTTP header 'Content-Type'
  header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])

  # form parameters
  form_params = {}

  # http body (model)
  post_body = nil
  auth_names = ['apikey']
  data, status_code, headers = @api_client.call_api(:POST, local_var_path,
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => 'RepositoryGpgKey')
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: ReposApi#repos_gpg_regenerate\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#repos_namespace_list(owner, opts = {}) ⇒ Array<Repository>

Get a list of all repositories within a namespace. Get a list of all repositories within a namespace.

Parameters:

  • owner
  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :page (Integer)

    A page number within the paginated result set.

  • :page_size (Integer)

    Number of results to return per page.

Returns:



694
695
696
697
# File 'lib/cloudsmith-api/api/repos_api.rb', line 694

def repos_namespace_list(owner, opts = {})
  data, _status_code, _headers = repos_namespace_list_with_http_info(owner, opts)
  data
end

#repos_namespace_list_with_http_info(owner, opts = {}) ⇒ Array<(Array<Repository>, Fixnum, Hash)>

Get a list of all repositories within a namespace. Get a list of all repositories within a namespace.

Parameters:

  • owner
  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :page (Integer)

    A page number within the paginated result set.

  • :page_size (Integer)

    Number of results to return per page.

Returns:

  • (Array<(Array<Repository>, Fixnum, Hash)>)

    Array<Repository> data, response status code and response headers



706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
# File 'lib/cloudsmith-api/api/repos_api.rb', line 706

def repos_namespace_list_with_http_info(owner, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: ReposApi.repos_namespace_list ...'
  end
  # verify the required parameter 'owner' is set
  if @api_client.config.client_side_validation && owner.nil?
    fail ArgumentError, "Missing the required parameter 'owner' when calling ReposApi.repos_namespace_list"
  end
  # resource path
  local_var_path = '/repos/{owner}/'.sub('{' + 'owner' + '}', owner.to_s)

  # query parameters
  query_params = {}
  query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil?
  query_params[:'page_size'] = opts[:'page_size'] if !opts[:'page_size'].nil?

  # header parameters
  header_params = {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
  # HTTP header 'Content-Type'
  header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])

  # form parameters
  form_params = {}

  # http body (model)
  post_body = nil
  auth_names = ['apikey']
  data, status_code, headers = @api_client.call_api(:GET, local_var_path,
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => 'Array<Repository>')
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: ReposApi#repos_namespace_list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#repos_partial_update(owner, identifier, opts = {}) ⇒ Repository

Update details about a repository in a given namespace. Update details about a repository in a given namespace.

Parameters:

  • owner
  • identifier
  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

Returns:



754
755
756
757
# File 'lib/cloudsmith-api/api/repos_api.rb', line 754

def repos_partial_update(owner, identifier, opts = {})
  data, _status_code, _headers = repos_partial_update_with_http_info(owner, identifier, opts)
  data
end

#repos_partial_update_with_http_info(owner, identifier, opts = {}) ⇒ Array<(Repository, Fixnum, Hash)>

Update details about a repository in a given namespace. Update details about a repository in a given namespace.

Parameters:

  • owner
  • identifier
  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

Returns:

  • (Array<(Repository, Fixnum, Hash)>)

    Repository data, response status code and response headers



766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
# File 'lib/cloudsmith-api/api/repos_api.rb', line 766

def repos_partial_update_with_http_info(owner, identifier, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: ReposApi.repos_partial_update ...'
  end
  # verify the required parameter 'owner' is set
  if @api_client.config.client_side_validation && owner.nil?
    fail ArgumentError, "Missing the required parameter 'owner' when calling ReposApi.repos_partial_update"
  end
  # verify the required parameter 'identifier' is set
  if @api_client.config.client_side_validation && identifier.nil?
    fail ArgumentError, "Missing the required parameter 'identifier' when calling ReposApi.repos_partial_update"
  end
  # resource path
  local_var_path = '/repos/{owner}/{identifier}/'.sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'identifier' + '}', identifier.to_s)

  # query parameters
  query_params = {}

  # header parameters
  header_params = {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
  # HTTP header 'Content-Type'
  header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])

  # form parameters
  form_params = {}

  # http body (model)
  post_body = @api_client.object_to_http_body(opts[:'data'])
  auth_names = ['apikey']
  data, status_code, headers = @api_client.call_api(:PATCH, local_var_path,
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => 'Repository')
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: ReposApi#repos_partial_update\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#repos_privileges_list(owner, identifier, opts = {}) ⇒ RepositoryPrivilegeInput

List all explicity created privileges for the repository. List all explicity created privileges for the repository.

Parameters:

  • owner
  • identifier
  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :page (Integer)

    A page number within the paginated result set.

  • :page_size (Integer)

    Number of results to return per page.

Returns:



817
818
819
820
# File 'lib/cloudsmith-api/api/repos_api.rb', line 817

def repos_privileges_list(owner, identifier, opts = {})
  data, _status_code, _headers = repos_privileges_list_with_http_info(owner, identifier, opts)
  data
end

#repos_privileges_list_with_http_info(owner, identifier, opts = {}) ⇒ Array<(RepositoryPrivilegeInput, Fixnum, Hash)>

List all explicity created privileges for the repository. List all explicity created privileges for the repository.

Parameters:

  • owner
  • identifier
  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :page (Integer)

    A page number within the paginated result set.

  • :page_size (Integer)

    Number of results to return per page.

Returns:

  • (Array<(RepositoryPrivilegeInput, Fixnum, Hash)>)

    RepositoryPrivilegeInput data, response status code and response headers



830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
# File 'lib/cloudsmith-api/api/repos_api.rb', line 830

def repos_privileges_list_with_http_info(owner, identifier, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: ReposApi.repos_privileges_list ...'
  end
  # verify the required parameter 'owner' is set
  if @api_client.config.client_side_validation && owner.nil?
    fail ArgumentError, "Missing the required parameter 'owner' when calling ReposApi.repos_privileges_list"
  end
  # verify the required parameter 'identifier' is set
  if @api_client.config.client_side_validation && identifier.nil?
    fail ArgumentError, "Missing the required parameter 'identifier' when calling ReposApi.repos_privileges_list"
  end
  # resource path
  local_var_path = '/repos/{owner}/{identifier}/privileges'.sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'identifier' + '}', identifier.to_s)

  # query parameters
  query_params = {}
  query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil?
  query_params[:'page_size'] = opts[:'page_size'] if !opts[:'page_size'].nil?

  # header parameters
  header_params = {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
  # HTTP header 'Content-Type'
  header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])

  # form parameters
  form_params = {}

  # http body (model)
  post_body = nil
  auth_names = ['apikey']
  data, status_code, headers = @api_client.call_api(:GET, local_var_path,
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => 'RepositoryPrivilegeInput')
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: ReposApi#repos_privileges_list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#repos_privileges_partial_update(owner, identifier, opts = {}) ⇒ nil

Modify privileges for the repository. Modify privileges for the repository.

Parameters:

  • owner
  • identifier
  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

Returns:

  • (nil)


882
883
884
885
# File 'lib/cloudsmith-api/api/repos_api.rb', line 882

def repos_privileges_partial_update(owner, identifier, opts = {})
  repos_privileges_partial_update_with_http_info(owner, identifier, opts)
  nil
end

#repos_privileges_partial_update_with_http_info(owner, identifier, opts = {}) ⇒ Array<(nil, Fixnum, Hash)>

Modify privileges for the repository. Modify privileges for the repository.

Parameters:

  • owner
  • identifier
  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

Returns:

  • (Array<(nil, Fixnum, Hash)>)

    nil, response status code and response headers



894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
# File 'lib/cloudsmith-api/api/repos_api.rb', line 894

def repos_privileges_partial_update_with_http_info(owner, identifier, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: ReposApi.repos_privileges_partial_update ...'
  end
  # verify the required parameter 'owner' is set
  if @api_client.config.client_side_validation && owner.nil?
    fail ArgumentError, "Missing the required parameter 'owner' when calling ReposApi.repos_privileges_partial_update"
  end
  # verify the required parameter 'identifier' is set
  if @api_client.config.client_side_validation && identifier.nil?
    fail ArgumentError, "Missing the required parameter 'identifier' when calling ReposApi.repos_privileges_partial_update"
  end
  # resource path
  local_var_path = '/repos/{owner}/{identifier}/privileges'.sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'identifier' + '}', identifier.to_s)

  # query parameters
  query_params = {}

  # header parameters
  header_params = {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
  # HTTP header 'Content-Type'
  header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])

  # form parameters
  form_params = {}

  # http body (model)
  post_body = @api_client.object_to_http_body(opts[:'data'])
  auth_names = ['apikey']
  data, status_code, headers = @api_client.call_api(:PATCH, local_var_path,
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names)
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: ReposApi#repos_privileges_partial_update\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#repos_privileges_update(owner, identifier, opts = {}) ⇒ nil

Replace all existing repository privileges with those specified. Replace all existing repository privileges with those specified.

Parameters:

  • owner
  • identifier
  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

Returns:

  • (nil)


943
944
945
946
# File 'lib/cloudsmith-api/api/repos_api.rb', line 943

def repos_privileges_update(owner, identifier, opts = {})
  repos_privileges_update_with_http_info(owner, identifier, opts)
  nil
end

#repos_privileges_update_with_http_info(owner, identifier, opts = {}) ⇒ Array<(nil, Fixnum, Hash)>

Replace all existing repository privileges with those specified. Replace all existing repository privileges with those specified.

Parameters:

  • owner
  • identifier
  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

Returns:

  • (Array<(nil, Fixnum, Hash)>)

    nil, response status code and response headers



955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
# File 'lib/cloudsmith-api/api/repos_api.rb', line 955

def repos_privileges_update_with_http_info(owner, identifier, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: ReposApi.repos_privileges_update ...'
  end
  # verify the required parameter 'owner' is set
  if @api_client.config.client_side_validation && owner.nil?
    fail ArgumentError, "Missing the required parameter 'owner' when calling ReposApi.repos_privileges_update"
  end
  # verify the required parameter 'identifier' is set
  if @api_client.config.client_side_validation && identifier.nil?
    fail ArgumentError, "Missing the required parameter 'identifier' when calling ReposApi.repos_privileges_update"
  end
  # resource path
  local_var_path = '/repos/{owner}/{identifier}/privileges'.sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'identifier' + '}', identifier.to_s)

  # query parameters
  query_params = {}

  # header parameters
  header_params = {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
  # HTTP header 'Content-Type'
  header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])

  # form parameters
  form_params = {}

  # http body (model)
  post_body = @api_client.object_to_http_body(opts[:'data'])
  auth_names = ['apikey']
  data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names)
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: ReposApi#repos_privileges_update\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#repos_read(owner, identifier, opts = {}) ⇒ Repository

Get a specific repository. Get a specific repository.

Parameters:

  • owner
  • identifier
  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:



1003
1004
1005
1006
# File 'lib/cloudsmith-api/api/repos_api.rb', line 1003

def repos_read(owner, identifier, opts = {})
  data, _status_code, _headers = repos_read_with_http_info(owner, identifier, opts)
  data
end

#repos_read_with_http_info(owner, identifier, opts = {}) ⇒ Array<(Repository, Fixnum, Hash)>

Get a specific repository. Get a specific repository.

Parameters:

  • owner
  • identifier
  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:

  • (Array<(Repository, Fixnum, Hash)>)

    Repository data, response status code and response headers



1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
# File 'lib/cloudsmith-api/api/repos_api.rb', line 1014

def repos_read_with_http_info(owner, identifier, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: ReposApi.repos_read ...'
  end
  # verify the required parameter 'owner' is set
  if @api_client.config.client_side_validation && owner.nil?
    fail ArgumentError, "Missing the required parameter 'owner' when calling ReposApi.repos_read"
  end
  # verify the required parameter 'identifier' is set
  if @api_client.config.client_side_validation && identifier.nil?
    fail ArgumentError, "Missing the required parameter 'identifier' when calling ReposApi.repos_read"
  end
  # resource path
  local_var_path = '/repos/{owner}/{identifier}/'.sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'identifier' + '}', identifier.to_s)

  # query parameters
  query_params = {}

  # header parameters
  header_params = {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
  # HTTP header 'Content-Type'
  header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])

  # form parameters
  form_params = {}

  # http body (model)
  post_body = nil
  auth_names = ['apikey']
  data, status_code, headers = @api_client.call_api(:GET, local_var_path,
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => 'Repository')
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: ReposApi#repos_read\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#repos_rsa_create(owner, identifier, opts = {}) ⇒ RepositoryRsaKey

Set the active RSA key for the Repository. Set the active RSA key for the Repository.

Parameters:

  • owner
  • identifier
  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

Returns:



1064
1065
1066
1067
# File 'lib/cloudsmith-api/api/repos_api.rb', line 1064

def repos_rsa_create(owner, identifier, opts = {})
  data, _status_code, _headers = repos_rsa_create_with_http_info(owner, identifier, opts)
  data
end

#repos_rsa_create_with_http_info(owner, identifier, opts = {}) ⇒ Array<(RepositoryRsaKey, Fixnum, Hash)>

Set the active RSA key for the Repository. Set the active RSA key for the Repository.

Parameters:

  • owner
  • identifier
  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

Returns:

  • (Array<(RepositoryRsaKey, Fixnum, Hash)>)

    RepositoryRsaKey data, response status code and response headers



1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
# File 'lib/cloudsmith-api/api/repos_api.rb', line 1076

def repos_rsa_create_with_http_info(owner, identifier, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: ReposApi.repos_rsa_create ...'
  end
  # verify the required parameter 'owner' is set
  if @api_client.config.client_side_validation && owner.nil?
    fail ArgumentError, "Missing the required parameter 'owner' when calling ReposApi.repos_rsa_create"
  end
  # verify the required parameter 'identifier' is set
  if @api_client.config.client_side_validation && identifier.nil?
    fail ArgumentError, "Missing the required parameter 'identifier' when calling ReposApi.repos_rsa_create"
  end
  # resource path
  local_var_path = '/repos/{owner}/{identifier}/rsa/'.sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'identifier' + '}', identifier.to_s)

  # query parameters
  query_params = {}

  # header parameters
  header_params = {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
  # HTTP header 'Content-Type'
  header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])

  # form parameters
  form_params = {}

  # http body (model)
  post_body = @api_client.object_to_http_body(opts[:'data'])
  auth_names = ['apikey']
  data, status_code, headers = @api_client.call_api(:POST, local_var_path,
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => 'RepositoryRsaKey')
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: ReposApi#repos_rsa_create\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#repos_rsa_list(owner, identifier, opts = {}) ⇒ RepositoryRsaKey

Retrieve the active RSA key for the Repository. Retrieve the active RSA key for the Repository.

Parameters:

  • owner
  • identifier
  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:



1125
1126
1127
1128
# File 'lib/cloudsmith-api/api/repos_api.rb', line 1125

def repos_rsa_list(owner, identifier, opts = {})
  data, _status_code, _headers = repos_rsa_list_with_http_info(owner, identifier, opts)
  data
end

#repos_rsa_list_with_http_info(owner, identifier, opts = {}) ⇒ Array<(RepositoryRsaKey, Fixnum, Hash)>

Retrieve the active RSA key for the Repository. Retrieve the active RSA key for the Repository.

Parameters:

  • owner
  • identifier
  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:

  • (Array<(RepositoryRsaKey, Fixnum, Hash)>)

    RepositoryRsaKey data, response status code and response headers



1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
# File 'lib/cloudsmith-api/api/repos_api.rb', line 1136

def repos_rsa_list_with_http_info(owner, identifier, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: ReposApi.repos_rsa_list ...'
  end
  # verify the required parameter 'owner' is set
  if @api_client.config.client_side_validation && owner.nil?
    fail ArgumentError, "Missing the required parameter 'owner' when calling ReposApi.repos_rsa_list"
  end
  # verify the required parameter 'identifier' is set
  if @api_client.config.client_side_validation && identifier.nil?
    fail ArgumentError, "Missing the required parameter 'identifier' when calling ReposApi.repos_rsa_list"
  end
  # resource path
  local_var_path = '/repos/{owner}/{identifier}/rsa/'.sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'identifier' + '}', identifier.to_s)

  # query parameters
  query_params = {}

  # header parameters
  header_params = {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
  # HTTP header 'Content-Type'
  header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])

  # form parameters
  form_params = {}

  # http body (model)
  post_body = nil
  auth_names = ['apikey']
  data, status_code, headers = @api_client.call_api(:GET, local_var_path,
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => 'RepositoryRsaKey')
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: ReposApi#repos_rsa_list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#repos_rsa_regenerate(owner, identifier, opts = {}) ⇒ RepositoryRsaKey

Regenerate RSA Key for the Repository. Regenerate RSA Key for the Repository.

Parameters:

  • owner
  • identifier
  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:



1185
1186
1187
1188
# File 'lib/cloudsmith-api/api/repos_api.rb', line 1185

def repos_rsa_regenerate(owner, identifier, opts = {})
  data, _status_code, _headers = repos_rsa_regenerate_with_http_info(owner, identifier, opts)
  data
end

#repos_rsa_regenerate_with_http_info(owner, identifier, opts = {}) ⇒ Array<(RepositoryRsaKey, Fixnum, Hash)>

Regenerate RSA Key for the Repository. Regenerate RSA Key for the Repository.

Parameters:

  • owner
  • identifier
  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:

  • (Array<(RepositoryRsaKey, Fixnum, Hash)>)

    RepositoryRsaKey data, response status code and response headers



1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
# File 'lib/cloudsmith-api/api/repos_api.rb', line 1196

def repos_rsa_regenerate_with_http_info(owner, identifier, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: ReposApi.repos_rsa_regenerate ...'
  end
  # verify the required parameter 'owner' is set
  if @api_client.config.client_side_validation && owner.nil?
    fail ArgumentError, "Missing the required parameter 'owner' when calling ReposApi.repos_rsa_regenerate"
  end
  # verify the required parameter 'identifier' is set
  if @api_client.config.client_side_validation && identifier.nil?
    fail ArgumentError, "Missing the required parameter 'identifier' when calling ReposApi.repos_rsa_regenerate"
  end
  # resource path
  local_var_path = '/repos/{owner}/{identifier}/rsa/regenerate/'.sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'identifier' + '}', identifier.to_s)

  # query parameters
  query_params = {}

  # header parameters
  header_params = {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
  # HTTP header 'Content-Type'
  header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])

  # form parameters
  form_params = {}

  # http body (model)
  post_body = nil
  auth_names = ['apikey']
  data, status_code, headers = @api_client.call_api(:POST, local_var_path,
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => 'RepositoryRsaKey')
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: ReposApi#repos_rsa_regenerate\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#repos_upstream_cran_create(owner, identifier, opts = {}) ⇒ CranUpstream

Create a CRAN upstream config for this repository. Create a CRAN upstream config for this repository.

Parameters:

  • owner
  • identifier
  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

Returns:



1246
1247
1248
1249
# File 'lib/cloudsmith-api/api/repos_api.rb', line 1246

def repos_upstream_cran_create(owner, identifier, opts = {})
  data, _status_code, _headers = repos_upstream_cran_create_with_http_info(owner, identifier, opts)
  data
end

#repos_upstream_cran_create_with_http_info(owner, identifier, opts = {}) ⇒ Array<(CranUpstream, Fixnum, Hash)>

Create a CRAN upstream config for this repository. Create a CRAN upstream config for this repository.

Parameters:

  • owner
  • identifier
  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

Returns:

  • (Array<(CranUpstream, Fixnum, Hash)>)

    CranUpstream data, response status code and response headers



1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
# File 'lib/cloudsmith-api/api/repos_api.rb', line 1258

def repos_upstream_cran_create_with_http_info(owner, identifier, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: ReposApi.repos_upstream_cran_create ...'
  end
  # verify the required parameter 'owner' is set
  if @api_client.config.client_side_validation && owner.nil?
    fail ArgumentError, "Missing the required parameter 'owner' when calling ReposApi.repos_upstream_cran_create"
  end
  # verify the required parameter 'identifier' is set
  if @api_client.config.client_side_validation && identifier.nil?
    fail ArgumentError, "Missing the required parameter 'identifier' when calling ReposApi.repos_upstream_cran_create"
  end
  # resource path
  local_var_path = '/repos/{owner}/{identifier}/upstream/cran/'.sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'identifier' + '}', identifier.to_s)

  # query parameters
  query_params = {}

  # header parameters
  header_params = {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
  # HTTP header 'Content-Type'
  header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])

  # form parameters
  form_params = {}

  # http body (model)
  post_body = @api_client.object_to_http_body(opts[:'data'])
  auth_names = ['apikey']
  data, status_code, headers = @api_client.call_api(:POST, local_var_path,
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => 'CranUpstream')
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: ReposApi#repos_upstream_cran_create\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#repos_upstream_cran_delete(owner, identifier, slug_perm, opts = {}) ⇒ nil

Delete a CRAN upstream config for this repository. Delete a CRAN upstream config for this repository.

Parameters:

  • owner
  • identifier
  • slug_perm
  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:

  • (nil)


1308
1309
1310
1311
# File 'lib/cloudsmith-api/api/repos_api.rb', line 1308

def repos_upstream_cran_delete(owner, identifier, slug_perm, opts = {})
  repos_upstream_cran_delete_with_http_info(owner, identifier, slug_perm, opts)
  nil
end

#repos_upstream_cran_delete_with_http_info(owner, identifier, slug_perm, opts = {}) ⇒ Array<(nil, Fixnum, Hash)>

Delete a CRAN upstream config for this repository. Delete a CRAN upstream config for this repository.

Parameters:

  • owner
  • identifier
  • slug_perm
  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:

  • (Array<(nil, Fixnum, Hash)>)

    nil, response status code and response headers



1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
# File 'lib/cloudsmith-api/api/repos_api.rb', line 1320

def repos_upstream_cran_delete_with_http_info(owner, identifier, slug_perm, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: ReposApi.repos_upstream_cran_delete ...'
  end
  # verify the required parameter 'owner' is set
  if @api_client.config.client_side_validation && owner.nil?
    fail ArgumentError, "Missing the required parameter 'owner' when calling ReposApi.repos_upstream_cran_delete"
  end
  # verify the required parameter 'identifier' is set
  if @api_client.config.client_side_validation && identifier.nil?
    fail ArgumentError, "Missing the required parameter 'identifier' when calling ReposApi.repos_upstream_cran_delete"
  end
  # verify the required parameter 'slug_perm' is set
  if @api_client.config.client_side_validation && slug_perm.nil?
    fail ArgumentError, "Missing the required parameter 'slug_perm' when calling ReposApi.repos_upstream_cran_delete"
  end
  # resource path
  local_var_path = '/repos/{owner}/{identifier}/upstream/cran/{slug_perm}/'.sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'identifier' + '}', identifier.to_s).sub('{' + 'slug_perm' + '}', slug_perm.to_s)

  # query parameters
  query_params = {}

  # header parameters
  header_params = {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
  # HTTP header 'Content-Type'
  header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])

  # form parameters
  form_params = {}

  # http body (model)
  post_body = nil
  auth_names = ['apikey']
  data, status_code, headers = @api_client.call_api(:DELETE, local_var_path,
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names)
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: ReposApi#repos_upstream_cran_delete\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#repos_upstream_cran_list(owner, identifier, opts = {}) ⇒ Array<CranUpstream>

List CRAN upstream configs for this repository. List CRAN upstream configs for this repository.

Parameters:

  • owner
  • identifier
  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :page (Integer)

    A page number within the paginated result set.

  • :page_size (Integer)

    Number of results to return per page.

Returns:



1374
1375
1376
1377
# File 'lib/cloudsmith-api/api/repos_api.rb', line 1374

def repos_upstream_cran_list(owner, identifier, opts = {})
  data, _status_code, _headers = repos_upstream_cran_list_with_http_info(owner, identifier, opts)
  data
end

#repos_upstream_cran_list_with_http_info(owner, identifier, opts = {}) ⇒ Array<(Array<CranUpstream>, Fixnum, Hash)>

List CRAN upstream configs for this repository. List CRAN upstream configs for this repository.

Parameters:

  • owner
  • identifier
  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :page (Integer)

    A page number within the paginated result set.

  • :page_size (Integer)

    Number of results to return per page.

Returns:

  • (Array<(Array<CranUpstream>, Fixnum, Hash)>)

    Array<CranUpstream> data, response status code and response headers



1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
1425
1426
1427
1428
1429
1430
1431
# File 'lib/cloudsmith-api/api/repos_api.rb', line 1387

def repos_upstream_cran_list_with_http_info(owner, identifier, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: ReposApi.repos_upstream_cran_list ...'
  end
  # verify the required parameter 'owner' is set
  if @api_client.config.client_side_validation && owner.nil?
    fail ArgumentError, "Missing the required parameter 'owner' when calling ReposApi.repos_upstream_cran_list"
  end
  # verify the required parameter 'identifier' is set
  if @api_client.config.client_side_validation && identifier.nil?
    fail ArgumentError, "Missing the required parameter 'identifier' when calling ReposApi.repos_upstream_cran_list"
  end
  # resource path
  local_var_path = '/repos/{owner}/{identifier}/upstream/cran/'.sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'identifier' + '}', identifier.to_s)

  # query parameters
  query_params = {}
  query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil?
  query_params[:'page_size'] = opts[:'page_size'] if !opts[:'page_size'].nil?

  # header parameters
  header_params = {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
  # HTTP header 'Content-Type'
  header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])

  # form parameters
  form_params = {}

  # http body (model)
  post_body = nil
  auth_names = ['apikey']
  data, status_code, headers = @api_client.call_api(:GET, local_var_path,
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => 'Array<CranUpstream>')
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: ReposApi#repos_upstream_cran_list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#repos_upstream_cran_partial_update(owner, identifier, slug_perm, opts = {}) ⇒ CranUpstream

Partially update a CRAN upstream config for this repository. Partially update a CRAN upstream config for this repository.

Parameters:

  • owner
  • identifier
  • slug_perm
  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

Returns:



1440
1441
1442
1443
# File 'lib/cloudsmith-api/api/repos_api.rb', line 1440

def repos_upstream_cran_partial_update(owner, identifier, slug_perm, opts = {})
  data, _status_code, _headers = repos_upstream_cran_partial_update_with_http_info(owner, identifier, slug_perm, opts)
  data
end

#repos_upstream_cran_partial_update_with_http_info(owner, identifier, slug_perm, opts = {}) ⇒ Array<(CranUpstream, Fixnum, Hash)>

Partially update a CRAN upstream config for this repository. Partially update a CRAN upstream config for this repository.

Parameters:

  • owner
  • identifier
  • slug_perm
  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

Returns:

  • (Array<(CranUpstream, Fixnum, Hash)>)

    CranUpstream data, response status code and response headers



1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
# File 'lib/cloudsmith-api/api/repos_api.rb', line 1453

def repos_upstream_cran_partial_update_with_http_info(owner, identifier, slug_perm, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: ReposApi.repos_upstream_cran_partial_update ...'
  end
  # verify the required parameter 'owner' is set
  if @api_client.config.client_side_validation && owner.nil?
    fail ArgumentError, "Missing the required parameter 'owner' when calling ReposApi.repos_upstream_cran_partial_update"
  end
  # verify the required parameter 'identifier' is set
  if @api_client.config.client_side_validation && identifier.nil?
    fail ArgumentError, "Missing the required parameter 'identifier' when calling ReposApi.repos_upstream_cran_partial_update"
  end
  # verify the required parameter 'slug_perm' is set
  if @api_client.config.client_side_validation && slug_perm.nil?
    fail ArgumentError, "Missing the required parameter 'slug_perm' when calling ReposApi.repos_upstream_cran_partial_update"
  end
  # resource path
  local_var_path = '/repos/{owner}/{identifier}/upstream/cran/{slug_perm}/'.sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'identifier' + '}', identifier.to_s).sub('{' + 'slug_perm' + '}', slug_perm.to_s)

  # query parameters
  query_params = {}

  # header parameters
  header_params = {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
  # HTTP header 'Content-Type'
  header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])

  # form parameters
  form_params = {}

  # http body (model)
  post_body = @api_client.object_to_http_body(opts[:'data'])
  auth_names = ['apikey']
  data, status_code, headers = @api_client.call_api(:PATCH, local_var_path,
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => 'CranUpstream')
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: ReposApi#repos_upstream_cran_partial_update\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#repos_upstream_cran_read(owner, identifier, slug_perm, opts = {}) ⇒ CranUpstream

Retrieve a CRAN upstream config for this repository. Retrieve a CRAN upstream config for this repository.

Parameters:

  • owner
  • identifier
  • slug_perm
  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:



1507
1508
1509
1510
# File 'lib/cloudsmith-api/api/repos_api.rb', line 1507

def repos_upstream_cran_read(owner, identifier, slug_perm, opts = {})
  data, _status_code, _headers = repos_upstream_cran_read_with_http_info(owner, identifier, slug_perm, opts)
  data
end

#repos_upstream_cran_read_with_http_info(owner, identifier, slug_perm, opts = {}) ⇒ Array<(CranUpstream, Fixnum, Hash)>

Retrieve a CRAN upstream config for this repository. Retrieve a CRAN upstream config for this repository.

Parameters:

  • owner
  • identifier
  • slug_perm
  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:

  • (Array<(CranUpstream, Fixnum, Hash)>)

    CranUpstream data, response status code and response headers



1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
1553
1554
1555
1556
1557
1558
1559
1560
1561
1562
1563
1564
1565
# File 'lib/cloudsmith-api/api/repos_api.rb', line 1519

def repos_upstream_cran_read_with_http_info(owner, identifier, slug_perm, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: ReposApi.repos_upstream_cran_read ...'
  end
  # verify the required parameter 'owner' is set
  if @api_client.config.client_side_validation && owner.nil?
    fail ArgumentError, "Missing the required parameter 'owner' when calling ReposApi.repos_upstream_cran_read"
  end
  # verify the required parameter 'identifier' is set
  if @api_client.config.client_side_validation && identifier.nil?
    fail ArgumentError, "Missing the required parameter 'identifier' when calling ReposApi.repos_upstream_cran_read"
  end
  # verify the required parameter 'slug_perm' is set
  if @api_client.config.client_side_validation && slug_perm.nil?
    fail ArgumentError, "Missing the required parameter 'slug_perm' when calling ReposApi.repos_upstream_cran_read"
  end
  # resource path
  local_var_path = '/repos/{owner}/{identifier}/upstream/cran/{slug_perm}/'.sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'identifier' + '}', identifier.to_s).sub('{' + 'slug_perm' + '}', slug_perm.to_s)

  # query parameters
  query_params = {}

  # header parameters
  header_params = {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
  # HTTP header 'Content-Type'
  header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])

  # form parameters
  form_params = {}

  # http body (model)
  post_body = nil
  auth_names = ['apikey']
  data, status_code, headers = @api_client.call_api(:GET, local_var_path,
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => 'CranUpstream')
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: ReposApi#repos_upstream_cran_read\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#repos_upstream_cran_update(owner, identifier, slug_perm, opts = {}) ⇒ CranUpstream

Update a CRAN upstream config for this repository. Update a CRAN upstream config for this repository.

Parameters:

  • owner
  • identifier
  • slug_perm
  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

Returns:



1574
1575
1576
1577
# File 'lib/cloudsmith-api/api/repos_api.rb', line 1574

def repos_upstream_cran_update(owner, identifier, slug_perm, opts = {})
  data, _status_code, _headers = repos_upstream_cran_update_with_http_info(owner, identifier, slug_perm, opts)
  data
end

#repos_upstream_cran_update_with_http_info(owner, identifier, slug_perm, opts = {}) ⇒ Array<(CranUpstream, Fixnum, Hash)>

Update a CRAN upstream config for this repository. Update a CRAN upstream config for this repository.

Parameters:

  • owner
  • identifier
  • slug_perm
  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

Returns:

  • (Array<(CranUpstream, Fixnum, Hash)>)

    CranUpstream data, response status code and response headers



1587
1588
1589
1590
1591
1592
1593
1594
1595
1596
1597
1598
1599
1600
1601
1602
1603
1604
1605
1606
1607
1608
1609
1610
1611
1612
1613
1614
1615
1616
1617
1618
1619
1620
1621
1622
1623
1624
1625
1626
1627
1628
1629
1630
1631
1632
1633
# File 'lib/cloudsmith-api/api/repos_api.rb', line 1587

def repos_upstream_cran_update_with_http_info(owner, identifier, slug_perm, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: ReposApi.repos_upstream_cran_update ...'
  end
  # verify the required parameter 'owner' is set
  if @api_client.config.client_side_validation && owner.nil?
    fail ArgumentError, "Missing the required parameter 'owner' when calling ReposApi.repos_upstream_cran_update"
  end
  # verify the required parameter 'identifier' is set
  if @api_client.config.client_side_validation && identifier.nil?
    fail ArgumentError, "Missing the required parameter 'identifier' when calling ReposApi.repos_upstream_cran_update"
  end
  # verify the required parameter 'slug_perm' is set
  if @api_client.config.client_side_validation && slug_perm.nil?
    fail ArgumentError, "Missing the required parameter 'slug_perm' when calling ReposApi.repos_upstream_cran_update"
  end
  # resource path
  local_var_path = '/repos/{owner}/{identifier}/upstream/cran/{slug_perm}/'.sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'identifier' + '}', identifier.to_s).sub('{' + 'slug_perm' + '}', slug_perm.to_s)

  # query parameters
  query_params = {}

  # header parameters
  header_params = {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
  # HTTP header 'Content-Type'
  header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])

  # form parameters
  form_params = {}

  # http body (model)
  post_body = @api_client.object_to_http_body(opts[:'data'])
  auth_names = ['apikey']
  data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => 'CranUpstream')
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: ReposApi#repos_upstream_cran_update\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#repos_upstream_dart_create(owner, identifier, opts = {}) ⇒ DartUpstream

Create a Dart upstream config for this repository. Create a Dart upstream config for this repository.

Parameters:

  • owner
  • identifier
  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

Returns:



1641
1642
1643
1644
# File 'lib/cloudsmith-api/api/repos_api.rb', line 1641

def repos_upstream_dart_create(owner, identifier, opts = {})
  data, _status_code, _headers = repos_upstream_dart_create_with_http_info(owner, identifier, opts)
  data
end

#repos_upstream_dart_create_with_http_info(owner, identifier, opts = {}) ⇒ Array<(DartUpstream, Fixnum, Hash)>

Create a Dart upstream config for this repository. Create a Dart upstream config for this repository.

Parameters:

  • owner
  • identifier
  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

Returns:

  • (Array<(DartUpstream, Fixnum, Hash)>)

    DartUpstream data, response status code and response headers



1653
1654
1655
1656
1657
1658
1659
1660
1661
1662
1663
1664
1665
1666
1667
1668
1669
1670
1671
1672
1673
1674
1675
1676
1677
1678
1679
1680
1681
1682
1683
1684
1685
1686
1687
1688
1689
1690
1691
1692
1693
1694
1695
# File 'lib/cloudsmith-api/api/repos_api.rb', line 1653

def repos_upstream_dart_create_with_http_info(owner, identifier, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: ReposApi.repos_upstream_dart_create ...'
  end
  # verify the required parameter 'owner' is set
  if @api_client.config.client_side_validation && owner.nil?
    fail ArgumentError, "Missing the required parameter 'owner' when calling ReposApi.repos_upstream_dart_create"
  end
  # verify the required parameter 'identifier' is set
  if @api_client.config.client_side_validation && identifier.nil?
    fail ArgumentError, "Missing the required parameter 'identifier' when calling ReposApi.repos_upstream_dart_create"
  end
  # resource path
  local_var_path = '/repos/{owner}/{identifier}/upstream/dart/'.sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'identifier' + '}', identifier.to_s)

  # query parameters
  query_params = {}

  # header parameters
  header_params = {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
  # HTTP header 'Content-Type'
  header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])

  # form parameters
  form_params = {}

  # http body (model)
  post_body = @api_client.object_to_http_body(opts[:'data'])
  auth_names = ['apikey']
  data, status_code, headers = @api_client.call_api(:POST, local_var_path,
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => 'DartUpstream')
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: ReposApi#repos_upstream_dart_create\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#repos_upstream_dart_delete(owner, identifier, slug_perm, opts = {}) ⇒ nil

Delete a Dart upstream config for this repository. Delete a Dart upstream config for this repository.

Parameters:

  • owner
  • identifier
  • slug_perm
  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:

  • (nil)


1703
1704
1705
1706
# File 'lib/cloudsmith-api/api/repos_api.rb', line 1703

def repos_upstream_dart_delete(owner, identifier, slug_perm, opts = {})
  repos_upstream_dart_delete_with_http_info(owner, identifier, slug_perm, opts)
  nil
end

#repos_upstream_dart_delete_with_http_info(owner, identifier, slug_perm, opts = {}) ⇒ Array<(nil, Fixnum, Hash)>

Delete a Dart upstream config for this repository. Delete a Dart upstream config for this repository.

Parameters:

  • owner
  • identifier
  • slug_perm
  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:

  • (Array<(nil, Fixnum, Hash)>)

    nil, response status code and response headers



1715
1716
1717
1718
1719
1720
1721
1722
1723
1724
1725
1726
1727
1728
1729
1730
1731
1732
1733
1734
1735
1736
1737
1738
1739
1740
1741
1742
1743
1744
1745
1746
1747
1748
1749
1750
1751
1752
1753
1754
1755
1756
1757
1758
1759
1760
# File 'lib/cloudsmith-api/api/repos_api.rb', line 1715

def repos_upstream_dart_delete_with_http_info(owner, identifier, slug_perm, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: ReposApi.repos_upstream_dart_delete ...'
  end
  # verify the required parameter 'owner' is set
  if @api_client.config.client_side_validation && owner.nil?
    fail ArgumentError, "Missing the required parameter 'owner' when calling ReposApi.repos_upstream_dart_delete"
  end
  # verify the required parameter 'identifier' is set
  if @api_client.config.client_side_validation && identifier.nil?
    fail ArgumentError, "Missing the required parameter 'identifier' when calling ReposApi.repos_upstream_dart_delete"
  end
  # verify the required parameter 'slug_perm' is set
  if @api_client.config.client_side_validation && slug_perm.nil?
    fail ArgumentError, "Missing the required parameter 'slug_perm' when calling ReposApi.repos_upstream_dart_delete"
  end
  # resource path
  local_var_path = '/repos/{owner}/{identifier}/upstream/dart/{slug_perm}/'.sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'identifier' + '}', identifier.to_s).sub('{' + 'slug_perm' + '}', slug_perm.to_s)

  # query parameters
  query_params = {}

  # header parameters
  header_params = {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
  # HTTP header 'Content-Type'
  header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])

  # form parameters
  form_params = {}

  # http body (model)
  post_body = nil
  auth_names = ['apikey']
  data, status_code, headers = @api_client.call_api(:DELETE, local_var_path,
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names)
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: ReposApi#repos_upstream_dart_delete\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#repos_upstream_dart_list(owner, identifier, opts = {}) ⇒ Array<DartUpstream>

List Dart upstream configs for this repository. List Dart upstream configs for this repository.

Parameters:

  • owner
  • identifier
  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :page (Integer)

    A page number within the paginated result set.

  • :page_size (Integer)

    Number of results to return per page.

Returns:



1769
1770
1771
1772
# File 'lib/cloudsmith-api/api/repos_api.rb', line 1769

def repos_upstream_dart_list(owner, identifier, opts = {})
  data, _status_code, _headers = repos_upstream_dart_list_with_http_info(owner, identifier, opts)
  data
end

#repos_upstream_dart_list_with_http_info(owner, identifier, opts = {}) ⇒ Array<(Array<DartUpstream>, Fixnum, Hash)>

List Dart upstream configs for this repository. List Dart upstream configs for this repository.

Parameters:

  • owner
  • identifier
  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :page (Integer)

    A page number within the paginated result set.

  • :page_size (Integer)

    Number of results to return per page.

Returns:

  • (Array<(Array<DartUpstream>, Fixnum, Hash)>)

    Array<DartUpstream> data, response status code and response headers



1782
1783
1784
1785
1786
1787
1788
1789
1790
1791
1792
1793
1794
1795
1796
1797
1798
1799
1800
1801
1802
1803
1804
1805
1806
1807
1808
1809
1810
1811
1812
1813
1814
1815
1816
1817
1818
1819
1820
1821
1822
1823
1824
1825
1826
# File 'lib/cloudsmith-api/api/repos_api.rb', line 1782

def repos_upstream_dart_list_with_http_info(owner, identifier, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: ReposApi.repos_upstream_dart_list ...'
  end
  # verify the required parameter 'owner' is set
  if @api_client.config.client_side_validation && owner.nil?
    fail ArgumentError, "Missing the required parameter 'owner' when calling ReposApi.repos_upstream_dart_list"
  end
  # verify the required parameter 'identifier' is set
  if @api_client.config.client_side_validation && identifier.nil?
    fail ArgumentError, "Missing the required parameter 'identifier' when calling ReposApi.repos_upstream_dart_list"
  end
  # resource path
  local_var_path = '/repos/{owner}/{identifier}/upstream/dart/'.sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'identifier' + '}', identifier.to_s)

  # query parameters
  query_params = {}
  query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil?
  query_params[:'page_size'] = opts[:'page_size'] if !opts[:'page_size'].nil?

  # header parameters
  header_params = {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
  # HTTP header 'Content-Type'
  header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])

  # form parameters
  form_params = {}

  # http body (model)
  post_body = nil
  auth_names = ['apikey']
  data, status_code, headers = @api_client.call_api(:GET, local_var_path,
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => 'Array<DartUpstream>')
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: ReposApi#repos_upstream_dart_list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#repos_upstream_dart_partial_update(owner, identifier, slug_perm, opts = {}) ⇒ DartUpstream

Partially update a Dart upstream config for this repository. Partially update a Dart upstream config for this repository.

Parameters:

  • owner
  • identifier
  • slug_perm
  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

Returns:



1835
1836
1837
1838
# File 'lib/cloudsmith-api/api/repos_api.rb', line 1835

def repos_upstream_dart_partial_update(owner, identifier, slug_perm, opts = {})
  data, _status_code, _headers = repos_upstream_dart_partial_update_with_http_info(owner, identifier, slug_perm, opts)
  data
end

#repos_upstream_dart_partial_update_with_http_info(owner, identifier, slug_perm, opts = {}) ⇒ Array<(DartUpstream, Fixnum, Hash)>

Partially update a Dart upstream config for this repository. Partially update a Dart upstream config for this repository.

Parameters:

  • owner
  • identifier
  • slug_perm
  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

Returns:

  • (Array<(DartUpstream, Fixnum, Hash)>)

    DartUpstream data, response status code and response headers



1848
1849
1850
1851
1852
1853
1854
1855
1856
1857
1858
1859
1860
1861
1862
1863
1864
1865
1866
1867
1868
1869
1870
1871
1872
1873
1874
1875
1876
1877
1878
1879
1880
1881
1882
1883
1884
1885
1886
1887
1888
1889
1890
1891
1892
1893
1894
# File 'lib/cloudsmith-api/api/repos_api.rb', line 1848

def repos_upstream_dart_partial_update_with_http_info(owner, identifier, slug_perm, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: ReposApi.repos_upstream_dart_partial_update ...'
  end
  # verify the required parameter 'owner' is set
  if @api_client.config.client_side_validation && owner.nil?
    fail ArgumentError, "Missing the required parameter 'owner' when calling ReposApi.repos_upstream_dart_partial_update"
  end
  # verify the required parameter 'identifier' is set
  if @api_client.config.client_side_validation && identifier.nil?
    fail ArgumentError, "Missing the required parameter 'identifier' when calling ReposApi.repos_upstream_dart_partial_update"
  end
  # verify the required parameter 'slug_perm' is set
  if @api_client.config.client_side_validation && slug_perm.nil?
    fail ArgumentError, "Missing the required parameter 'slug_perm' when calling ReposApi.repos_upstream_dart_partial_update"
  end
  # resource path
  local_var_path = '/repos/{owner}/{identifier}/upstream/dart/{slug_perm}/'.sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'identifier' + '}', identifier.to_s).sub('{' + 'slug_perm' + '}', slug_perm.to_s)

  # query parameters
  query_params = {}

  # header parameters
  header_params = {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
  # HTTP header 'Content-Type'
  header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])

  # form parameters
  form_params = {}

  # http body (model)
  post_body = @api_client.object_to_http_body(opts[:'data'])
  auth_names = ['apikey']
  data, status_code, headers = @api_client.call_api(:PATCH, local_var_path,
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => 'DartUpstream')
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: ReposApi#repos_upstream_dart_partial_update\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#repos_upstream_dart_read(owner, identifier, slug_perm, opts = {}) ⇒ DartUpstream

Retrieve a Dart upstream config for this repository. Retrieve a Dart upstream config for this repository.

Parameters:

  • owner
  • identifier
  • slug_perm
  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:



1902
1903
1904
1905
# File 'lib/cloudsmith-api/api/repos_api.rb', line 1902

def repos_upstream_dart_read(owner, identifier, slug_perm, opts = {})
  data, _status_code, _headers = repos_upstream_dart_read_with_http_info(owner, identifier, slug_perm, opts)
  data
end

#repos_upstream_dart_read_with_http_info(owner, identifier, slug_perm, opts = {}) ⇒ Array<(DartUpstream, Fixnum, Hash)>

Retrieve a Dart upstream config for this repository. Retrieve a Dart upstream config for this repository.

Parameters:

  • owner
  • identifier
  • slug_perm
  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:

  • (Array<(DartUpstream, Fixnum, Hash)>)

    DartUpstream data, response status code and response headers



1914
1915
1916
1917
1918
1919
1920
1921
1922
1923
1924
1925
1926
1927
1928
1929
1930
1931
1932
1933
1934
1935
1936
1937
1938
1939
1940
1941
1942
1943
1944
1945
1946
1947
1948
1949
1950
1951
1952
1953
1954
1955
1956
1957
1958
1959
1960
# File 'lib/cloudsmith-api/api/repos_api.rb', line 1914

def repos_upstream_dart_read_with_http_info(owner, identifier, slug_perm, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: ReposApi.repos_upstream_dart_read ...'
  end
  # verify the required parameter 'owner' is set
  if @api_client.config.client_side_validation && owner.nil?
    fail ArgumentError, "Missing the required parameter 'owner' when calling ReposApi.repos_upstream_dart_read"
  end
  # verify the required parameter 'identifier' is set
  if @api_client.config.client_side_validation && identifier.nil?
    fail ArgumentError, "Missing the required parameter 'identifier' when calling ReposApi.repos_upstream_dart_read"
  end
  # verify the required parameter 'slug_perm' is set
  if @api_client.config.client_side_validation && slug_perm.nil?
    fail ArgumentError, "Missing the required parameter 'slug_perm' when calling ReposApi.repos_upstream_dart_read"
  end
  # resource path
  local_var_path = '/repos/{owner}/{identifier}/upstream/dart/{slug_perm}/'.sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'identifier' + '}', identifier.to_s).sub('{' + 'slug_perm' + '}', slug_perm.to_s)

  # query parameters
  query_params = {}

  # header parameters
  header_params = {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
  # HTTP header 'Content-Type'
  header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])

  # form parameters
  form_params = {}

  # http body (model)
  post_body = nil
  auth_names = ['apikey']
  data, status_code, headers = @api_client.call_api(:GET, local_var_path,
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => 'DartUpstream')
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: ReposApi#repos_upstream_dart_read\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#repos_upstream_dart_update(owner, identifier, slug_perm, opts = {}) ⇒ DartUpstream

Update a Dart upstream config for this repository. Update a Dart upstream config for this repository.

Parameters:

  • owner
  • identifier
  • slug_perm
  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

Returns:



1969
1970
1971
1972
# File 'lib/cloudsmith-api/api/repos_api.rb', line 1969

def repos_upstream_dart_update(owner, identifier, slug_perm, opts = {})
  data, _status_code, _headers = repos_upstream_dart_update_with_http_info(owner, identifier, slug_perm, opts)
  data
end

#repos_upstream_dart_update_with_http_info(owner, identifier, slug_perm, opts = {}) ⇒ Array<(DartUpstream, Fixnum, Hash)>

Update a Dart upstream config for this repository. Update a Dart upstream config for this repository.

Parameters:

  • owner
  • identifier
  • slug_perm
  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

Returns:

  • (Array<(DartUpstream, Fixnum, Hash)>)

    DartUpstream data, response status code and response headers



1982
1983
1984
1985
1986
1987
1988
1989
1990
1991
1992
1993
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
2027
2028
# File 'lib/cloudsmith-api/api/repos_api.rb', line 1982

def repos_upstream_dart_update_with_http_info(owner, identifier, slug_perm, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: ReposApi.repos_upstream_dart_update ...'
  end
  # verify the required parameter 'owner' is set
  if @api_client.config.client_side_validation && owner.nil?
    fail ArgumentError, "Missing the required parameter 'owner' when calling ReposApi.repos_upstream_dart_update"
  end
  # verify the required parameter 'identifier' is set
  if @api_client.config.client_side_validation && identifier.nil?
    fail ArgumentError, "Missing the required parameter 'identifier' when calling ReposApi.repos_upstream_dart_update"
  end
  # verify the required parameter 'slug_perm' is set
  if @api_client.config.client_side_validation && slug_perm.nil?
    fail ArgumentError, "Missing the required parameter 'slug_perm' when calling ReposApi.repos_upstream_dart_update"
  end
  # resource path
  local_var_path = '/repos/{owner}/{identifier}/upstream/dart/{slug_perm}/'.sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'identifier' + '}', identifier.to_s).sub('{' + 'slug_perm' + '}', slug_perm.to_s)

  # query parameters
  query_params = {}

  # header parameters
  header_params = {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
  # HTTP header 'Content-Type'
  header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])

  # form parameters
  form_params = {}

  # http body (model)
  post_body = @api_client.object_to_http_body(opts[:'data'])
  auth_names = ['apikey']
  data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => 'DartUpstream')
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: ReposApi#repos_upstream_dart_update\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#repos_upstream_deb_create(owner, identifier, opts = {}) ⇒ DebUpstream

Create a Debian upstream config for this repository. Create a Debian upstream config for this repository.

Parameters:

  • owner
  • identifier
  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

Returns:



2036
2037
2038
2039
# File 'lib/cloudsmith-api/api/repos_api.rb', line 2036

def repos_upstream_deb_create(owner, identifier, opts = {})
  data, _status_code, _headers = repos_upstream_deb_create_with_http_info(owner, identifier, opts)
  data
end

#repos_upstream_deb_create_with_http_info(owner, identifier, opts = {}) ⇒ Array<(DebUpstream, Fixnum, Hash)>

Create a Debian upstream config for this repository. Create a Debian upstream config for this repository.

Parameters:

  • owner
  • identifier
  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

Returns:

  • (Array<(DebUpstream, Fixnum, Hash)>)

    DebUpstream data, response status code and response headers



2048
2049
2050
2051
2052
2053
2054
2055
2056
2057
2058
2059
2060
2061
2062
2063
2064
2065
2066
2067
2068
2069
2070
2071
2072
2073
2074
2075
2076
2077
2078
2079
2080
2081
2082
2083
2084
2085
2086
2087
2088
2089
2090
# File 'lib/cloudsmith-api/api/repos_api.rb', line 2048

def repos_upstream_deb_create_with_http_info(owner, identifier, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: ReposApi.repos_upstream_deb_create ...'
  end
  # verify the required parameter 'owner' is set
  if @api_client.config.client_side_validation && owner.nil?
    fail ArgumentError, "Missing the required parameter 'owner' when calling ReposApi.repos_upstream_deb_create"
  end
  # verify the required parameter 'identifier' is set
  if @api_client.config.client_side_validation && identifier.nil?
    fail ArgumentError, "Missing the required parameter 'identifier' when calling ReposApi.repos_upstream_deb_create"
  end
  # resource path
  local_var_path = '/repos/{owner}/{identifier}/upstream/deb/'.sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'identifier' + '}', identifier.to_s)

  # query parameters
  query_params = {}

  # header parameters
  header_params = {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
  # HTTP header 'Content-Type'
  header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])

  # form parameters
  form_params = {}

  # http body (model)
  post_body = @api_client.object_to_http_body(opts[:'data'])
  auth_names = ['apikey']
  data, status_code, headers = @api_client.call_api(:POST, local_var_path,
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => 'DebUpstream')
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: ReposApi#repos_upstream_deb_create\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#repos_upstream_deb_delete(owner, identifier, slug_perm, opts = {}) ⇒ nil

Delete a Debian upstream config for this repository. Delete a Debian upstream config for this repository.

Parameters:

  • owner
  • identifier
  • slug_perm
  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:

  • (nil)


2098
2099
2100
2101
# File 'lib/cloudsmith-api/api/repos_api.rb', line 2098

def repos_upstream_deb_delete(owner, identifier, slug_perm, opts = {})
  repos_upstream_deb_delete_with_http_info(owner, identifier, slug_perm, opts)
  nil
end

#repos_upstream_deb_delete_with_http_info(owner, identifier, slug_perm, opts = {}) ⇒ Array<(nil, Fixnum, Hash)>

Delete a Debian upstream config for this repository. Delete a Debian upstream config for this repository.

Parameters:

  • owner
  • identifier
  • slug_perm
  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:

  • (Array<(nil, Fixnum, Hash)>)

    nil, response status code and response headers



2110
2111
2112
2113
2114
2115
2116
2117
2118
2119
2120
2121
2122
2123
2124
2125
2126
2127
2128
2129
2130
2131
2132
2133
2134
2135
2136
2137
2138
2139
2140
2141
2142
2143
2144
2145
2146
2147
2148
2149
2150
2151
2152
2153
2154
2155
# File 'lib/cloudsmith-api/api/repos_api.rb', line 2110

def repos_upstream_deb_delete_with_http_info(owner, identifier, slug_perm, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: ReposApi.repos_upstream_deb_delete ...'
  end
  # verify the required parameter 'owner' is set
  if @api_client.config.client_side_validation && owner.nil?
    fail ArgumentError, "Missing the required parameter 'owner' when calling ReposApi.repos_upstream_deb_delete"
  end
  # verify the required parameter 'identifier' is set
  if @api_client.config.client_side_validation && identifier.nil?
    fail ArgumentError, "Missing the required parameter 'identifier' when calling ReposApi.repos_upstream_deb_delete"
  end
  # verify the required parameter 'slug_perm' is set
  if @api_client.config.client_side_validation && slug_perm.nil?
    fail ArgumentError, "Missing the required parameter 'slug_perm' when calling ReposApi.repos_upstream_deb_delete"
  end
  # resource path
  local_var_path = '/repos/{owner}/{identifier}/upstream/deb/{slug_perm}/'.sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'identifier' + '}', identifier.to_s).sub('{' + 'slug_perm' + '}', slug_perm.to_s)

  # query parameters
  query_params = {}

  # header parameters
  header_params = {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
  # HTTP header 'Content-Type'
  header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])

  # form parameters
  form_params = {}

  # http body (model)
  post_body = nil
  auth_names = ['apikey']
  data, status_code, headers = @api_client.call_api(:DELETE, local_var_path,
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names)
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: ReposApi#repos_upstream_deb_delete\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#repos_upstream_deb_list(owner, identifier, opts = {}) ⇒ Array<DebUpstream>

List Debian upstream configs for this repository. List Debian upstream configs for this repository.

Parameters:

  • owner
  • identifier
  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :page (Integer)

    A page number within the paginated result set.

  • :page_size (Integer)

    Number of results to return per page.

Returns:



2164
2165
2166
2167
# File 'lib/cloudsmith-api/api/repos_api.rb', line 2164

def repos_upstream_deb_list(owner, identifier, opts = {})
  data, _status_code, _headers = repos_upstream_deb_list_with_http_info(owner, identifier, opts)
  data
end

#repos_upstream_deb_list_with_http_info(owner, identifier, opts = {}) ⇒ Array<(Array<DebUpstream>, Fixnum, Hash)>

List Debian upstream configs for this repository. List Debian upstream configs for this repository.

Parameters:

  • owner
  • identifier
  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :page (Integer)

    A page number within the paginated result set.

  • :page_size (Integer)

    Number of results to return per page.

Returns:

  • (Array<(Array<DebUpstream>, Fixnum, Hash)>)

    Array<DebUpstream> data, response status code and response headers



2177
2178
2179
2180
2181
2182
2183
2184
2185
2186
2187
2188
2189
2190
2191
2192
2193
2194
2195
2196
2197
2198
2199
2200
2201
2202
2203
2204
2205
2206
2207
2208
2209
2210
2211
2212
2213
2214
2215
2216
2217
2218
2219
2220
2221
# File 'lib/cloudsmith-api/api/repos_api.rb', line 2177

def repos_upstream_deb_list_with_http_info(owner, identifier, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: ReposApi.repos_upstream_deb_list ...'
  end
  # verify the required parameter 'owner' is set
  if @api_client.config.client_side_validation && owner.nil?
    fail ArgumentError, "Missing the required parameter 'owner' when calling ReposApi.repos_upstream_deb_list"
  end
  # verify the required parameter 'identifier' is set
  if @api_client.config.client_side_validation && identifier.nil?
    fail ArgumentError, "Missing the required parameter 'identifier' when calling ReposApi.repos_upstream_deb_list"
  end
  # resource path
  local_var_path = '/repos/{owner}/{identifier}/upstream/deb/'.sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'identifier' + '}', identifier.to_s)

  # query parameters
  query_params = {}
  query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil?
  query_params[:'page_size'] = opts[:'page_size'] if !opts[:'page_size'].nil?

  # header parameters
  header_params = {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
  # HTTP header 'Content-Type'
  header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])

  # form parameters
  form_params = {}

  # http body (model)
  post_body = nil
  auth_names = ['apikey']
  data, status_code, headers = @api_client.call_api(:GET, local_var_path,
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => 'Array<DebUpstream>')
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: ReposApi#repos_upstream_deb_list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#repos_upstream_deb_partial_update(owner, identifier, slug_perm, opts = {}) ⇒ DebUpstream

Partially update a Debian upstream config for this repository. Partially update a Debian upstream config for this repository.

Parameters:

  • owner
  • identifier
  • slug_perm
  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

Returns:



2230
2231
2232
2233
# File 'lib/cloudsmith-api/api/repos_api.rb', line 2230

def repos_upstream_deb_partial_update(owner, identifier, slug_perm, opts = {})
  data, _status_code, _headers = repos_upstream_deb_partial_update_with_http_info(owner, identifier, slug_perm, opts)
  data
end

#repos_upstream_deb_partial_update_with_http_info(owner, identifier, slug_perm, opts = {}) ⇒ Array<(DebUpstream, Fixnum, Hash)>

Partially update a Debian upstream config for this repository. Partially update a Debian upstream config for this repository.

Parameters:

  • owner
  • identifier
  • slug_perm
  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

Returns:

  • (Array<(DebUpstream, Fixnum, Hash)>)

    DebUpstream data, response status code and response headers



2243
2244
2245
2246
2247
2248
2249
2250
2251
2252
2253
2254
2255
2256
2257
2258
2259
2260
2261
2262
2263
2264
2265
2266
2267
2268
2269
2270
2271
2272
2273
2274
2275
2276
2277
2278
2279
2280
2281
2282
2283
2284
2285
2286
2287
2288
2289
# File 'lib/cloudsmith-api/api/repos_api.rb', line 2243

def repos_upstream_deb_partial_update_with_http_info(owner, identifier, slug_perm, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: ReposApi.repos_upstream_deb_partial_update ...'
  end
  # verify the required parameter 'owner' is set
  if @api_client.config.client_side_validation && owner.nil?
    fail ArgumentError, "Missing the required parameter 'owner' when calling ReposApi.repos_upstream_deb_partial_update"
  end
  # verify the required parameter 'identifier' is set
  if @api_client.config.client_side_validation && identifier.nil?
    fail ArgumentError, "Missing the required parameter 'identifier' when calling ReposApi.repos_upstream_deb_partial_update"
  end
  # verify the required parameter 'slug_perm' is set
  if @api_client.config.client_side_validation && slug_perm.nil?
    fail ArgumentError, "Missing the required parameter 'slug_perm' when calling ReposApi.repos_upstream_deb_partial_update"
  end
  # resource path
  local_var_path = '/repos/{owner}/{identifier}/upstream/deb/{slug_perm}/'.sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'identifier' + '}', identifier.to_s).sub('{' + 'slug_perm' + '}', slug_perm.to_s)

  # query parameters
  query_params = {}

  # header parameters
  header_params = {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
  # HTTP header 'Content-Type'
  header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])

  # form parameters
  form_params = {}

  # http body (model)
  post_body = @api_client.object_to_http_body(opts[:'data'])
  auth_names = ['apikey']
  data, status_code, headers = @api_client.call_api(:PATCH, local_var_path,
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => 'DebUpstream')
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: ReposApi#repos_upstream_deb_partial_update\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#repos_upstream_deb_read(owner, identifier, slug_perm, opts = {}) ⇒ DebUpstream

Retrieve a Debian upstream config for this repository. Retrieve a Debian upstream config for this repository.

Parameters:

  • owner
  • identifier
  • slug_perm
  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:



2297
2298
2299
2300
# File 'lib/cloudsmith-api/api/repos_api.rb', line 2297

def repos_upstream_deb_read(owner, identifier, slug_perm, opts = {})
  data, _status_code, _headers = repos_upstream_deb_read_with_http_info(owner, identifier, slug_perm, opts)
  data
end

#repos_upstream_deb_read_with_http_info(owner, identifier, slug_perm, opts = {}) ⇒ Array<(DebUpstream, Fixnum, Hash)>

Retrieve a Debian upstream config for this repository. Retrieve a Debian upstream config for this repository.

Parameters:

  • owner
  • identifier
  • slug_perm
  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:

  • (Array<(DebUpstream, Fixnum, Hash)>)

    DebUpstream data, response status code and response headers



2309
2310
2311
2312
2313
2314
2315
2316
2317
2318
2319
2320
2321
2322
2323
2324
2325
2326
2327
2328
2329
2330
2331
2332
2333
2334
2335
2336
2337
2338
2339
2340
2341
2342
2343
2344
2345
2346
2347
2348
2349
2350
2351
2352
2353
2354
2355
# File 'lib/cloudsmith-api/api/repos_api.rb', line 2309

def repos_upstream_deb_read_with_http_info(owner, identifier, slug_perm, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: ReposApi.repos_upstream_deb_read ...'
  end
  # verify the required parameter 'owner' is set
  if @api_client.config.client_side_validation && owner.nil?
    fail ArgumentError, "Missing the required parameter 'owner' when calling ReposApi.repos_upstream_deb_read"
  end
  # verify the required parameter 'identifier' is set
  if @api_client.config.client_side_validation && identifier.nil?
    fail ArgumentError, "Missing the required parameter 'identifier' when calling ReposApi.repos_upstream_deb_read"
  end
  # verify the required parameter 'slug_perm' is set
  if @api_client.config.client_side_validation && slug_perm.nil?
    fail ArgumentError, "Missing the required parameter 'slug_perm' when calling ReposApi.repos_upstream_deb_read"
  end
  # resource path
  local_var_path = '/repos/{owner}/{identifier}/upstream/deb/{slug_perm}/'.sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'identifier' + '}', identifier.to_s).sub('{' + 'slug_perm' + '}', slug_perm.to_s)

  # query parameters
  query_params = {}

  # header parameters
  header_params = {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
  # HTTP header 'Content-Type'
  header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])

  # form parameters
  form_params = {}

  # http body (model)
  post_body = nil
  auth_names = ['apikey']
  data, status_code, headers = @api_client.call_api(:GET, local_var_path,
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => 'DebUpstream')
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: ReposApi#repos_upstream_deb_read\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#repos_upstream_deb_update(owner, identifier, slug_perm, opts = {}) ⇒ DebUpstream

Update a Debian upstream config for this repository. Update a Debian upstream config for this repository.

Parameters:

  • owner
  • identifier
  • slug_perm
  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

Returns:



2364
2365
2366
2367
# File 'lib/cloudsmith-api/api/repos_api.rb', line 2364

def repos_upstream_deb_update(owner, identifier, slug_perm, opts = {})
  data, _status_code, _headers = repos_upstream_deb_update_with_http_info(owner, identifier, slug_perm, opts)
  data
end

#repos_upstream_deb_update_with_http_info(owner, identifier, slug_perm, opts = {}) ⇒ Array<(DebUpstream, Fixnum, Hash)>

Update a Debian upstream config for this repository. Update a Debian upstream config for this repository.

Parameters:

  • owner
  • identifier
  • slug_perm
  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

Returns:

  • (Array<(DebUpstream, Fixnum, Hash)>)

    DebUpstream data, response status code and response headers



2377
2378
2379
2380
2381
2382
2383
2384
2385
2386
2387
2388
2389
2390
2391
2392
2393
2394
2395
2396
2397
2398
2399
2400
2401
2402
2403
2404
2405
2406
2407
2408
2409
2410
2411
2412
2413
2414
2415
2416
2417
2418
2419
2420
2421
2422
2423
# File 'lib/cloudsmith-api/api/repos_api.rb', line 2377

def repos_upstream_deb_update_with_http_info(owner, identifier, slug_perm, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: ReposApi.repos_upstream_deb_update ...'
  end
  # verify the required parameter 'owner' is set
  if @api_client.config.client_side_validation && owner.nil?
    fail ArgumentError, "Missing the required parameter 'owner' when calling ReposApi.repos_upstream_deb_update"
  end
  # verify the required parameter 'identifier' is set
  if @api_client.config.client_side_validation && identifier.nil?
    fail ArgumentError, "Missing the required parameter 'identifier' when calling ReposApi.repos_upstream_deb_update"
  end
  # verify the required parameter 'slug_perm' is set
  if @api_client.config.client_side_validation && slug_perm.nil?
    fail ArgumentError, "Missing the required parameter 'slug_perm' when calling ReposApi.repos_upstream_deb_update"
  end
  # resource path
  local_var_path = '/repos/{owner}/{identifier}/upstream/deb/{slug_perm}/'.sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'identifier' + '}', identifier.to_s).sub('{' + 'slug_perm' + '}', slug_perm.to_s)

  # query parameters
  query_params = {}

  # header parameters
  header_params = {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
  # HTTP header 'Content-Type'
  header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])

  # form parameters
  form_params = {}

  # http body (model)
  post_body = @api_client.object_to_http_body(opts[:'data'])
  auth_names = ['apikey']
  data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => 'DebUpstream')
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: ReposApi#repos_upstream_deb_update\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#repos_upstream_docker_create(owner, identifier, opts = {}) ⇒ DockerUpstream

Create a Docker upstream config for this repository. Create a Docker upstream config for this repository.

Parameters:

  • owner
  • identifier
  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

Returns:



2431
2432
2433
2434
# File 'lib/cloudsmith-api/api/repos_api.rb', line 2431

def repos_upstream_docker_create(owner, identifier, opts = {})
  data, _status_code, _headers = repos_upstream_docker_create_with_http_info(owner, identifier, opts)
  data
end

#repos_upstream_docker_create_with_http_info(owner, identifier, opts = {}) ⇒ Array<(DockerUpstream, Fixnum, Hash)>

Create a Docker upstream config for this repository. Create a Docker upstream config for this repository.

Parameters:

  • owner
  • identifier
  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

Returns:

  • (Array<(DockerUpstream, Fixnum, Hash)>)

    DockerUpstream data, response status code and response headers



2443
2444
2445
2446
2447
2448
2449
2450
2451
2452
2453
2454
2455
2456
2457
2458
2459
2460
2461
2462
2463
2464
2465
2466
2467
2468
2469
2470
2471
2472
2473
2474
2475
2476
2477
2478
2479
2480
2481
2482
2483
2484
2485
# File 'lib/cloudsmith-api/api/repos_api.rb', line 2443

def repos_upstream_docker_create_with_http_info(owner, identifier, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: ReposApi.repos_upstream_docker_create ...'
  end
  # verify the required parameter 'owner' is set
  if @api_client.config.client_side_validation && owner.nil?
    fail ArgumentError, "Missing the required parameter 'owner' when calling ReposApi.repos_upstream_docker_create"
  end
  # verify the required parameter 'identifier' is set
  if @api_client.config.client_side_validation && identifier.nil?
    fail ArgumentError, "Missing the required parameter 'identifier' when calling ReposApi.repos_upstream_docker_create"
  end
  # resource path
  local_var_path = '/repos/{owner}/{identifier}/upstream/docker/'.sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'identifier' + '}', identifier.to_s)

  # query parameters
  query_params = {}

  # header parameters
  header_params = {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
  # HTTP header 'Content-Type'
  header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])

  # form parameters
  form_params = {}

  # http body (model)
  post_body = @api_client.object_to_http_body(opts[:'data'])
  auth_names = ['apikey']
  data, status_code, headers = @api_client.call_api(:POST, local_var_path,
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => 'DockerUpstream')
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: ReposApi#repos_upstream_docker_create\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#repos_upstream_docker_delete(owner, identifier, slug_perm, opts = {}) ⇒ nil

Delete a Docker upstream config for this repository. Delete a Docker upstream config for this repository.

Parameters:

  • owner
  • identifier
  • slug_perm
  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:

  • (nil)


2493
2494
2495
2496
# File 'lib/cloudsmith-api/api/repos_api.rb', line 2493

def repos_upstream_docker_delete(owner, identifier, slug_perm, opts = {})
  repos_upstream_docker_delete_with_http_info(owner, identifier, slug_perm, opts)
  nil
end

#repos_upstream_docker_delete_with_http_info(owner, identifier, slug_perm, opts = {}) ⇒ Array<(nil, Fixnum, Hash)>

Delete a Docker upstream config for this repository. Delete a Docker upstream config for this repository.

Parameters:

  • owner
  • identifier
  • slug_perm
  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:

  • (Array<(nil, Fixnum, Hash)>)

    nil, response status code and response headers



2505
2506
2507
2508
2509
2510
2511
2512
2513
2514
2515
2516
2517
2518
2519
2520
2521
2522
2523
2524
2525
2526
2527
2528
2529
2530
2531
2532
2533
2534
2535
2536
2537
2538
2539
2540
2541
2542
2543
2544
2545
2546
2547
2548
2549
2550
# File 'lib/cloudsmith-api/api/repos_api.rb', line 2505

def repos_upstream_docker_delete_with_http_info(owner, identifier, slug_perm, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: ReposApi.repos_upstream_docker_delete ...'
  end
  # verify the required parameter 'owner' is set
  if @api_client.config.client_side_validation && owner.nil?
    fail ArgumentError, "Missing the required parameter 'owner' when calling ReposApi.repos_upstream_docker_delete"
  end
  # verify the required parameter 'identifier' is set
  if @api_client.config.client_side_validation && identifier.nil?
    fail ArgumentError, "Missing the required parameter 'identifier' when calling ReposApi.repos_upstream_docker_delete"
  end
  # verify the required parameter 'slug_perm' is set
  if @api_client.config.client_side_validation && slug_perm.nil?
    fail ArgumentError, "Missing the required parameter 'slug_perm' when calling ReposApi.repos_upstream_docker_delete"
  end
  # resource path
  local_var_path = '/repos/{owner}/{identifier}/upstream/docker/{slug_perm}/'.sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'identifier' + '}', identifier.to_s).sub('{' + 'slug_perm' + '}', slug_perm.to_s)

  # query parameters
  query_params = {}

  # header parameters
  header_params = {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
  # HTTP header 'Content-Type'
  header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])

  # form parameters
  form_params = {}

  # http body (model)
  post_body = nil
  auth_names = ['apikey']
  data, status_code, headers = @api_client.call_api(:DELETE, local_var_path,
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names)
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: ReposApi#repos_upstream_docker_delete\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#repos_upstream_docker_list(owner, identifier, opts = {}) ⇒ Array<DockerUpstream>

List Docker upstream configs for this repository. List Docker upstream configs for this repository.

Parameters:

  • owner
  • identifier
  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :page (Integer)

    A page number within the paginated result set.

  • :page_size (Integer)

    Number of results to return per page.

Returns:



2559
2560
2561
2562
# File 'lib/cloudsmith-api/api/repos_api.rb', line 2559

def repos_upstream_docker_list(owner, identifier, opts = {})
  data, _status_code, _headers = repos_upstream_docker_list_with_http_info(owner, identifier, opts)
  data
end

#repos_upstream_docker_list_with_http_info(owner, identifier, opts = {}) ⇒ Array<(Array<DockerUpstream>, Fixnum, Hash)>

List Docker upstream configs for this repository. List Docker upstream configs for this repository.

Parameters:

  • owner
  • identifier
  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :page (Integer)

    A page number within the paginated result set.

  • :page_size (Integer)

    Number of results to return per page.

Returns:

  • (Array<(Array<DockerUpstream>, Fixnum, Hash)>)

    Array<DockerUpstream> data, response status code and response headers



2572
2573
2574
2575
2576
2577
2578
2579
2580
2581
2582
2583
2584
2585
2586
2587
2588
2589
2590
2591
2592
2593
2594
2595
2596
2597
2598
2599
2600
2601
2602
2603
2604
2605
2606
2607
2608
2609
2610
2611
2612
2613
2614
2615
2616
# File 'lib/cloudsmith-api/api/repos_api.rb', line 2572

def repos_upstream_docker_list_with_http_info(owner, identifier, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: ReposApi.repos_upstream_docker_list ...'
  end
  # verify the required parameter 'owner' is set
  if @api_client.config.client_side_validation && owner.nil?
    fail ArgumentError, "Missing the required parameter 'owner' when calling ReposApi.repos_upstream_docker_list"
  end
  # verify the required parameter 'identifier' is set
  if @api_client.config.client_side_validation && identifier.nil?
    fail ArgumentError, "Missing the required parameter 'identifier' when calling ReposApi.repos_upstream_docker_list"
  end
  # resource path
  local_var_path = '/repos/{owner}/{identifier}/upstream/docker/'.sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'identifier' + '}', identifier.to_s)

  # query parameters
  query_params = {}
  query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil?
  query_params[:'page_size'] = opts[:'page_size'] if !opts[:'page_size'].nil?

  # header parameters
  header_params = {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
  # HTTP header 'Content-Type'
  header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])

  # form parameters
  form_params = {}

  # http body (model)
  post_body = nil
  auth_names = ['apikey']
  data, status_code, headers = @api_client.call_api(:GET, local_var_path,
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => 'Array<DockerUpstream>')
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: ReposApi#repos_upstream_docker_list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#repos_upstream_docker_partial_update(owner, identifier, slug_perm, opts = {}) ⇒ DockerUpstream

Partially update a Docker upstream config for this repository. Partially update a Docker upstream config for this repository.

Parameters:

  • owner
  • identifier
  • slug_perm
  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

Returns:



2625
2626
2627
2628
# File 'lib/cloudsmith-api/api/repos_api.rb', line 2625

def repos_upstream_docker_partial_update(owner, identifier, slug_perm, opts = {})
  data, _status_code, _headers = repos_upstream_docker_partial_update_with_http_info(owner, identifier, slug_perm, opts)
  data
end

#repos_upstream_docker_partial_update_with_http_info(owner, identifier, slug_perm, opts = {}) ⇒ Array<(DockerUpstream, Fixnum, Hash)>

Partially update a Docker upstream config for this repository. Partially update a Docker upstream config for this repository.

Parameters:

  • owner
  • identifier
  • slug_perm
  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

Returns:

  • (Array<(DockerUpstream, Fixnum, Hash)>)

    DockerUpstream data, response status code and response headers



2638
2639
2640
2641
2642
2643
2644
2645
2646
2647
2648
2649
2650
2651
2652
2653
2654
2655
2656
2657
2658
2659
2660
2661
2662
2663
2664
2665
2666
2667
2668
2669
2670
2671
2672
2673
2674
2675
2676
2677
2678
2679
2680
2681
2682
2683
2684
# File 'lib/cloudsmith-api/api/repos_api.rb', line 2638

def repos_upstream_docker_partial_update_with_http_info(owner, identifier, slug_perm, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: ReposApi.repos_upstream_docker_partial_update ...'
  end
  # verify the required parameter 'owner' is set
  if @api_client.config.client_side_validation && owner.nil?
    fail ArgumentError, "Missing the required parameter 'owner' when calling ReposApi.repos_upstream_docker_partial_update"
  end
  # verify the required parameter 'identifier' is set
  if @api_client.config.client_side_validation && identifier.nil?
    fail ArgumentError, "Missing the required parameter 'identifier' when calling ReposApi.repos_upstream_docker_partial_update"
  end
  # verify the required parameter 'slug_perm' is set
  if @api_client.config.client_side_validation && slug_perm.nil?
    fail ArgumentError, "Missing the required parameter 'slug_perm' when calling ReposApi.repos_upstream_docker_partial_update"
  end
  # resource path
  local_var_path = '/repos/{owner}/{identifier}/upstream/docker/{slug_perm}/'.sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'identifier' + '}', identifier.to_s).sub('{' + 'slug_perm' + '}', slug_perm.to_s)

  # query parameters
  query_params = {}

  # header parameters
  header_params = {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
  # HTTP header 'Content-Type'
  header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])

  # form parameters
  form_params = {}

  # http body (model)
  post_body = @api_client.object_to_http_body(opts[:'data'])
  auth_names = ['apikey']
  data, status_code, headers = @api_client.call_api(:PATCH, local_var_path,
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => 'DockerUpstream')
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: ReposApi#repos_upstream_docker_partial_update\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#repos_upstream_docker_read(owner, identifier, slug_perm, opts = {}) ⇒ DockerUpstream

Retrieve a Docker upstream config for this repository. Retrieve a Docker upstream config for this repository.

Parameters:

  • owner
  • identifier
  • slug_perm
  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:



2692
2693
2694
2695
# File 'lib/cloudsmith-api/api/repos_api.rb', line 2692

def repos_upstream_docker_read(owner, identifier, slug_perm, opts = {})
  data, _status_code, _headers = repos_upstream_docker_read_with_http_info(owner, identifier, slug_perm, opts)
  data
end

#repos_upstream_docker_read_with_http_info(owner, identifier, slug_perm, opts = {}) ⇒ Array<(DockerUpstream, Fixnum, Hash)>

Retrieve a Docker upstream config for this repository. Retrieve a Docker upstream config for this repository.

Parameters:

  • owner
  • identifier
  • slug_perm
  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:

  • (Array<(DockerUpstream, Fixnum, Hash)>)

    DockerUpstream data, response status code and response headers



2704
2705
2706
2707
2708
2709
2710
2711
2712
2713
2714
2715
2716
2717
2718
2719
2720
2721
2722
2723
2724
2725
2726
2727
2728
2729
2730
2731
2732
2733
2734
2735
2736
2737
2738
2739
2740
2741
2742
2743
2744
2745
2746
2747
2748
2749
2750
# File 'lib/cloudsmith-api/api/repos_api.rb', line 2704

def repos_upstream_docker_read_with_http_info(owner, identifier, slug_perm, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: ReposApi.repos_upstream_docker_read ...'
  end
  # verify the required parameter 'owner' is set
  if @api_client.config.client_side_validation && owner.nil?
    fail ArgumentError, "Missing the required parameter 'owner' when calling ReposApi.repos_upstream_docker_read"
  end
  # verify the required parameter 'identifier' is set
  if @api_client.config.client_side_validation && identifier.nil?
    fail ArgumentError, "Missing the required parameter 'identifier' when calling ReposApi.repos_upstream_docker_read"
  end
  # verify the required parameter 'slug_perm' is set
  if @api_client.config.client_side_validation && slug_perm.nil?
    fail ArgumentError, "Missing the required parameter 'slug_perm' when calling ReposApi.repos_upstream_docker_read"
  end
  # resource path
  local_var_path = '/repos/{owner}/{identifier}/upstream/docker/{slug_perm}/'.sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'identifier' + '}', identifier.to_s).sub('{' + 'slug_perm' + '}', slug_perm.to_s)

  # query parameters
  query_params = {}

  # header parameters
  header_params = {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
  # HTTP header 'Content-Type'
  header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])

  # form parameters
  form_params = {}

  # http body (model)
  post_body = nil
  auth_names = ['apikey']
  data, status_code, headers = @api_client.call_api(:GET, local_var_path,
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => 'DockerUpstream')
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: ReposApi#repos_upstream_docker_read\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#repos_upstream_docker_update(owner, identifier, slug_perm, opts = {}) ⇒ DockerUpstream

Update a Docker upstream config for this repository. Update a Docker upstream config for this repository.

Parameters:

  • owner
  • identifier
  • slug_perm
  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

Returns:



2759
2760
2761
2762
# File 'lib/cloudsmith-api/api/repos_api.rb', line 2759

def repos_upstream_docker_update(owner, identifier, slug_perm, opts = {})
  data, _status_code, _headers = repos_upstream_docker_update_with_http_info(owner, identifier, slug_perm, opts)
  data
end

#repos_upstream_docker_update_with_http_info(owner, identifier, slug_perm, opts = {}) ⇒ Array<(DockerUpstream, Fixnum, Hash)>

Update a Docker upstream config for this repository. Update a Docker upstream config for this repository.

Parameters:

  • owner
  • identifier
  • slug_perm
  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

Returns:

  • (Array<(DockerUpstream, Fixnum, Hash)>)

    DockerUpstream data, response status code and response headers



2772
2773
2774
2775
2776
2777
2778
2779
2780
2781
2782
2783
2784
2785
2786
2787
2788
2789
2790
2791
2792
2793
2794
2795
2796
2797
2798
2799
2800
2801
2802
2803
2804
2805
2806
2807
2808
2809
2810
2811
2812
2813
2814
2815
2816
2817
2818
# File 'lib/cloudsmith-api/api/repos_api.rb', line 2772

def repos_upstream_docker_update_with_http_info(owner, identifier, slug_perm, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: ReposApi.repos_upstream_docker_update ...'
  end
  # verify the required parameter 'owner' is set
  if @api_client.config.client_side_validation && owner.nil?
    fail ArgumentError, "Missing the required parameter 'owner' when calling ReposApi.repos_upstream_docker_update"
  end
  # verify the required parameter 'identifier' is set
  if @api_client.config.client_side_validation && identifier.nil?
    fail ArgumentError, "Missing the required parameter 'identifier' when calling ReposApi.repos_upstream_docker_update"
  end
  # verify the required parameter 'slug_perm' is set
  if @api_client.config.client_side_validation && slug_perm.nil?
    fail ArgumentError, "Missing the required parameter 'slug_perm' when calling ReposApi.repos_upstream_docker_update"
  end
  # resource path
  local_var_path = '/repos/{owner}/{identifier}/upstream/docker/{slug_perm}/'.sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'identifier' + '}', identifier.to_s).sub('{' + 'slug_perm' + '}', slug_perm.to_s)

  # query parameters
  query_params = {}

  # header parameters
  header_params = {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
  # HTTP header 'Content-Type'
  header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])

  # form parameters
  form_params = {}

  # http body (model)
  post_body = @api_client.object_to_http_body(opts[:'data'])
  auth_names = ['apikey']
  data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => 'DockerUpstream')
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: ReposApi#repos_upstream_docker_update\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#repos_upstream_helm_create(owner, identifier, opts = {}) ⇒ HelmUpstream

Create a Helm upstream config for this repository. Create a Helm upstream config for this repository.

Parameters:

  • owner
  • identifier
  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

Returns:



2826
2827
2828
2829
# File 'lib/cloudsmith-api/api/repos_api.rb', line 2826

def repos_upstream_helm_create(owner, identifier, opts = {})
  data, _status_code, _headers = repos_upstream_helm_create_with_http_info(owner, identifier, opts)
  data
end

#repos_upstream_helm_create_with_http_info(owner, identifier, opts = {}) ⇒ Array<(HelmUpstream, Fixnum, Hash)>

Create a Helm upstream config for this repository. Create a Helm upstream config for this repository.

Parameters:

  • owner
  • identifier
  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

Returns:

  • (Array<(HelmUpstream, Fixnum, Hash)>)

    HelmUpstream data, response status code and response headers



2838
2839
2840
2841
2842
2843
2844
2845
2846
2847
2848
2849
2850
2851
2852
2853
2854
2855
2856
2857
2858
2859
2860
2861
2862
2863
2864
2865
2866
2867
2868
2869
2870
2871
2872
2873
2874
2875
2876
2877
2878
2879
2880
# File 'lib/cloudsmith-api/api/repos_api.rb', line 2838

def repos_upstream_helm_create_with_http_info(owner, identifier, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: ReposApi.repos_upstream_helm_create ...'
  end
  # verify the required parameter 'owner' is set
  if @api_client.config.client_side_validation && owner.nil?
    fail ArgumentError, "Missing the required parameter 'owner' when calling ReposApi.repos_upstream_helm_create"
  end
  # verify the required parameter 'identifier' is set
  if @api_client.config.client_side_validation && identifier.nil?
    fail ArgumentError, "Missing the required parameter 'identifier' when calling ReposApi.repos_upstream_helm_create"
  end
  # resource path
  local_var_path = '/repos/{owner}/{identifier}/upstream/helm/'.sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'identifier' + '}', identifier.to_s)

  # query parameters
  query_params = {}

  # header parameters
  header_params = {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
  # HTTP header 'Content-Type'
  header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])

  # form parameters
  form_params = {}

  # http body (model)
  post_body = @api_client.object_to_http_body(opts[:'data'])
  auth_names = ['apikey']
  data, status_code, headers = @api_client.call_api(:POST, local_var_path,
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => 'HelmUpstream')
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: ReposApi#repos_upstream_helm_create\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#repos_upstream_helm_delete(owner, identifier, slug_perm, opts = {}) ⇒ nil

Delete a Helm upstream config for this repository. Delete a Helm upstream config for this repository.

Parameters:

  • owner
  • identifier
  • slug_perm
  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:

  • (nil)


2888
2889
2890
2891
# File 'lib/cloudsmith-api/api/repos_api.rb', line 2888

def repos_upstream_helm_delete(owner, identifier, slug_perm, opts = {})
  repos_upstream_helm_delete_with_http_info(owner, identifier, slug_perm, opts)
  nil
end

#repos_upstream_helm_delete_with_http_info(owner, identifier, slug_perm, opts = {}) ⇒ Array<(nil, Fixnum, Hash)>

Delete a Helm upstream config for this repository. Delete a Helm upstream config for this repository.

Parameters:

  • owner
  • identifier
  • slug_perm
  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:

  • (Array<(nil, Fixnum, Hash)>)

    nil, response status code and response headers



2900
2901
2902
2903
2904
2905
2906
2907
2908
2909
2910
2911
2912
2913
2914
2915
2916
2917
2918
2919
2920
2921
2922
2923
2924
2925
2926
2927
2928
2929
2930
2931
2932
2933
2934
2935
2936
2937
2938
2939
2940
2941
2942
2943
2944
2945
# File 'lib/cloudsmith-api/api/repos_api.rb', line 2900

def repos_upstream_helm_delete_with_http_info(owner, identifier, slug_perm, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: ReposApi.repos_upstream_helm_delete ...'
  end
  # verify the required parameter 'owner' is set
  if @api_client.config.client_side_validation && owner.nil?
    fail ArgumentError, "Missing the required parameter 'owner' when calling ReposApi.repos_upstream_helm_delete"
  end
  # verify the required parameter 'identifier' is set
  if @api_client.config.client_side_validation && identifier.nil?
    fail ArgumentError, "Missing the required parameter 'identifier' when calling ReposApi.repos_upstream_helm_delete"
  end
  # verify the required parameter 'slug_perm' is set
  if @api_client.config.client_side_validation && slug_perm.nil?
    fail ArgumentError, "Missing the required parameter 'slug_perm' when calling ReposApi.repos_upstream_helm_delete"
  end
  # resource path
  local_var_path = '/repos/{owner}/{identifier}/upstream/helm/{slug_perm}/'.sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'identifier' + '}', identifier.to_s).sub('{' + 'slug_perm' + '}', slug_perm.to_s)

  # query parameters
  query_params = {}

  # header parameters
  header_params = {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
  # HTTP header 'Content-Type'
  header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])

  # form parameters
  form_params = {}

  # http body (model)
  post_body = nil
  auth_names = ['apikey']
  data, status_code, headers = @api_client.call_api(:DELETE, local_var_path,
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names)
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: ReposApi#repos_upstream_helm_delete\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#repos_upstream_helm_list(owner, identifier, opts = {}) ⇒ Array<HelmUpstream>

List Helm upstream configs for this repository. List Helm upstream configs for this repository.

Parameters:

  • owner
  • identifier
  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :page (Integer)

    A page number within the paginated result set.

  • :page_size (Integer)

    Number of results to return per page.

Returns:



2954
2955
2956
2957
# File 'lib/cloudsmith-api/api/repos_api.rb', line 2954

def repos_upstream_helm_list(owner, identifier, opts = {})
  data, _status_code, _headers = repos_upstream_helm_list_with_http_info(owner, identifier, opts)
  data
end

#repos_upstream_helm_list_with_http_info(owner, identifier, opts = {}) ⇒ Array<(Array<HelmUpstream>, Fixnum, Hash)>

List Helm upstream configs for this repository. List Helm upstream configs for this repository.

Parameters:

  • owner
  • identifier
  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :page (Integer)

    A page number within the paginated result set.

  • :page_size (Integer)

    Number of results to return per page.

Returns:

  • (Array<(Array<HelmUpstream>, Fixnum, Hash)>)

    Array<HelmUpstream> data, response status code and response headers



2967
2968
2969
2970
2971
2972
2973
2974
2975
2976
2977
2978
2979
2980
2981
2982
2983
2984
2985
2986
2987
2988
2989
2990
2991
2992
2993
2994
2995
2996
2997
2998
2999
3000
3001
3002
3003
3004
3005
3006
3007
3008
3009
3010
3011
# File 'lib/cloudsmith-api/api/repos_api.rb', line 2967

def repos_upstream_helm_list_with_http_info(owner, identifier, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: ReposApi.repos_upstream_helm_list ...'
  end
  # verify the required parameter 'owner' is set
  if @api_client.config.client_side_validation && owner.nil?
    fail ArgumentError, "Missing the required parameter 'owner' when calling ReposApi.repos_upstream_helm_list"
  end
  # verify the required parameter 'identifier' is set
  if @api_client.config.client_side_validation && identifier.nil?
    fail ArgumentError, "Missing the required parameter 'identifier' when calling ReposApi.repos_upstream_helm_list"
  end
  # resource path
  local_var_path = '/repos/{owner}/{identifier}/upstream/helm/'.sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'identifier' + '}', identifier.to_s)

  # query parameters
  query_params = {}
  query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil?
  query_params[:'page_size'] = opts[:'page_size'] if !opts[:'page_size'].nil?

  # header parameters
  header_params = {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
  # HTTP header 'Content-Type'
  header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])

  # form parameters
  form_params = {}

  # http body (model)
  post_body = nil
  auth_names = ['apikey']
  data, status_code, headers = @api_client.call_api(:GET, local_var_path,
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => 'Array<HelmUpstream>')
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: ReposApi#repos_upstream_helm_list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#repos_upstream_helm_partial_update(owner, identifier, slug_perm, opts = {}) ⇒ HelmUpstream

Partially update a Helm upstream config for this repository. Partially update a Helm upstream config for this repository.

Parameters:

  • owner
  • identifier
  • slug_perm
  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

Returns:



3020
3021
3022
3023
# File 'lib/cloudsmith-api/api/repos_api.rb', line 3020

def repos_upstream_helm_partial_update(owner, identifier, slug_perm, opts = {})
  data, _status_code, _headers = repos_upstream_helm_partial_update_with_http_info(owner, identifier, slug_perm, opts)
  data
end

#repos_upstream_helm_partial_update_with_http_info(owner, identifier, slug_perm, opts = {}) ⇒ Array<(HelmUpstream, Fixnum, Hash)>

Partially update a Helm upstream config for this repository. Partially update a Helm upstream config for this repository.

Parameters:

  • owner
  • identifier
  • slug_perm
  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

Returns:

  • (Array<(HelmUpstream, Fixnum, Hash)>)

    HelmUpstream data, response status code and response headers



3033
3034
3035
3036
3037
3038
3039
3040
3041
3042
3043
3044
3045
3046
3047
3048
3049
3050
3051
3052
3053
3054
3055
3056
3057
3058
3059
3060
3061
3062
3063
3064
3065
3066
3067
3068
3069
3070
3071
3072
3073
3074
3075
3076
3077
3078
3079
# File 'lib/cloudsmith-api/api/repos_api.rb', line 3033

def repos_upstream_helm_partial_update_with_http_info(owner, identifier, slug_perm, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: ReposApi.repos_upstream_helm_partial_update ...'
  end
  # verify the required parameter 'owner' is set
  if @api_client.config.client_side_validation && owner.nil?
    fail ArgumentError, "Missing the required parameter 'owner' when calling ReposApi.repos_upstream_helm_partial_update"
  end
  # verify the required parameter 'identifier' is set
  if @api_client.config.client_side_validation && identifier.nil?
    fail ArgumentError, "Missing the required parameter 'identifier' when calling ReposApi.repos_upstream_helm_partial_update"
  end
  # verify the required parameter 'slug_perm' is set
  if @api_client.config.client_side_validation && slug_perm.nil?
    fail ArgumentError, "Missing the required parameter 'slug_perm' when calling ReposApi.repos_upstream_helm_partial_update"
  end
  # resource path
  local_var_path = '/repos/{owner}/{identifier}/upstream/helm/{slug_perm}/'.sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'identifier' + '}', identifier.to_s).sub('{' + 'slug_perm' + '}', slug_perm.to_s)

  # query parameters
  query_params = {}

  # header parameters
  header_params = {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
  # HTTP header 'Content-Type'
  header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])

  # form parameters
  form_params = {}

  # http body (model)
  post_body = @api_client.object_to_http_body(opts[:'data'])
  auth_names = ['apikey']
  data, status_code, headers = @api_client.call_api(:PATCH, local_var_path,
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => 'HelmUpstream')
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: ReposApi#repos_upstream_helm_partial_update\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#repos_upstream_helm_read(owner, identifier, slug_perm, opts = {}) ⇒ HelmUpstream

Retrieve a Helm upstream config for this repository. Retrieve a Helm upstream config for this repository.

Parameters:

  • owner
  • identifier
  • slug_perm
  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:



3087
3088
3089
3090
# File 'lib/cloudsmith-api/api/repos_api.rb', line 3087

def repos_upstream_helm_read(owner, identifier, slug_perm, opts = {})
  data, _status_code, _headers = repos_upstream_helm_read_with_http_info(owner, identifier, slug_perm, opts)
  data
end

#repos_upstream_helm_read_with_http_info(owner, identifier, slug_perm, opts = {}) ⇒ Array<(HelmUpstream, Fixnum, Hash)>

Retrieve a Helm upstream config for this repository. Retrieve a Helm upstream config for this repository.

Parameters:

  • owner
  • identifier
  • slug_perm
  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:

  • (Array<(HelmUpstream, Fixnum, Hash)>)

    HelmUpstream data, response status code and response headers



3099
3100
3101
3102
3103
3104
3105
3106
3107
3108
3109
3110
3111
3112
3113
3114
3115
3116
3117
3118
3119
3120
3121
3122
3123
3124
3125
3126
3127
3128
3129
3130
3131
3132
3133
3134
3135
3136
3137
3138
3139
3140
3141
3142
3143
3144
3145
# File 'lib/cloudsmith-api/api/repos_api.rb', line 3099

def repos_upstream_helm_read_with_http_info(owner, identifier, slug_perm, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: ReposApi.repos_upstream_helm_read ...'
  end
  # verify the required parameter 'owner' is set
  if @api_client.config.client_side_validation && owner.nil?
    fail ArgumentError, "Missing the required parameter 'owner' when calling ReposApi.repos_upstream_helm_read"
  end
  # verify the required parameter 'identifier' is set
  if @api_client.config.client_side_validation && identifier.nil?
    fail ArgumentError, "Missing the required parameter 'identifier' when calling ReposApi.repos_upstream_helm_read"
  end
  # verify the required parameter 'slug_perm' is set
  if @api_client.config.client_side_validation && slug_perm.nil?
    fail ArgumentError, "Missing the required parameter 'slug_perm' when calling ReposApi.repos_upstream_helm_read"
  end
  # resource path
  local_var_path = '/repos/{owner}/{identifier}/upstream/helm/{slug_perm}/'.sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'identifier' + '}', identifier.to_s).sub('{' + 'slug_perm' + '}', slug_perm.to_s)

  # query parameters
  query_params = {}

  # header parameters
  header_params = {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
  # HTTP header 'Content-Type'
  header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])

  # form parameters
  form_params = {}

  # http body (model)
  post_body = nil
  auth_names = ['apikey']
  data, status_code, headers = @api_client.call_api(:GET, local_var_path,
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => 'HelmUpstream')
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: ReposApi#repos_upstream_helm_read\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#repos_upstream_helm_update(owner, identifier, slug_perm, opts = {}) ⇒ HelmUpstream

Update a Helm upstream config for this repository. Update a Helm upstream config for this repository.

Parameters:

  • owner
  • identifier
  • slug_perm
  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

Returns:



3154
3155
3156
3157
# File 'lib/cloudsmith-api/api/repos_api.rb', line 3154

def repos_upstream_helm_update(owner, identifier, slug_perm, opts = {})
  data, _status_code, _headers = repos_upstream_helm_update_with_http_info(owner, identifier, slug_perm, opts)
  data
end

#repos_upstream_helm_update_with_http_info(owner, identifier, slug_perm, opts = {}) ⇒ Array<(HelmUpstream, Fixnum, Hash)>

Update a Helm upstream config for this repository. Update a Helm upstream config for this repository.

Parameters:

  • owner
  • identifier
  • slug_perm
  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

Returns:

  • (Array<(HelmUpstream, Fixnum, Hash)>)

    HelmUpstream data, response status code and response headers



3167
3168
3169
3170
3171
3172
3173
3174
3175
3176
3177
3178
3179
3180
3181
3182
3183
3184
3185
3186
3187
3188
3189
3190
3191
3192
3193
3194
3195
3196
3197
3198
3199
3200
3201
3202
3203
3204
3205
3206
3207
3208
3209
3210
3211
3212
3213
# File 'lib/cloudsmith-api/api/repos_api.rb', line 3167

def repos_upstream_helm_update_with_http_info(owner, identifier, slug_perm, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: ReposApi.repos_upstream_helm_update ...'
  end
  # verify the required parameter 'owner' is set
  if @api_client.config.client_side_validation && owner.nil?
    fail ArgumentError, "Missing the required parameter 'owner' when calling ReposApi.repos_upstream_helm_update"
  end
  # verify the required parameter 'identifier' is set
  if @api_client.config.client_side_validation && identifier.nil?
    fail ArgumentError, "Missing the required parameter 'identifier' when calling ReposApi.repos_upstream_helm_update"
  end
  # verify the required parameter 'slug_perm' is set
  if @api_client.config.client_side_validation && slug_perm.nil?
    fail ArgumentError, "Missing the required parameter 'slug_perm' when calling ReposApi.repos_upstream_helm_update"
  end
  # resource path
  local_var_path = '/repos/{owner}/{identifier}/upstream/helm/{slug_perm}/'.sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'identifier' + '}', identifier.to_s).sub('{' + 'slug_perm' + '}', slug_perm.to_s)

  # query parameters
  query_params = {}

  # header parameters
  header_params = {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
  # HTTP header 'Content-Type'
  header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])

  # form parameters
  form_params = {}

  # http body (model)
  post_body = @api_client.object_to_http_body(opts[:'data'])
  auth_names = ['apikey']
  data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => 'HelmUpstream')
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: ReposApi#repos_upstream_helm_update\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#repos_upstream_maven_create(owner, identifier, opts = {}) ⇒ MavenUpstream

Create a Maven upstream config for this repository. Create a Maven upstream config for this repository.

Parameters:

  • owner
  • identifier
  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

Returns:



3221
3222
3223
3224
# File 'lib/cloudsmith-api/api/repos_api.rb', line 3221

def repos_upstream_maven_create(owner, identifier, opts = {})
  data, _status_code, _headers = repos_upstream_maven_create_with_http_info(owner, identifier, opts)
  data
end

#repos_upstream_maven_create_with_http_info(owner, identifier, opts = {}) ⇒ Array<(MavenUpstream, Fixnum, Hash)>

Create a Maven upstream config for this repository. Create a Maven upstream config for this repository.

Parameters:

  • owner
  • identifier
  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

Returns:

  • (Array<(MavenUpstream, Fixnum, Hash)>)

    MavenUpstream data, response status code and response headers



3233
3234
3235
3236
3237
3238
3239
3240
3241
3242
3243
3244
3245
3246
3247
3248
3249
3250
3251
3252
3253
3254
3255
3256
3257
3258
3259
3260
3261
3262
3263
3264
3265
3266
3267
3268
3269
3270
3271
3272
3273
3274
3275
# File 'lib/cloudsmith-api/api/repos_api.rb', line 3233

def repos_upstream_maven_create_with_http_info(owner, identifier, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: ReposApi.repos_upstream_maven_create ...'
  end
  # verify the required parameter 'owner' is set
  if @api_client.config.client_side_validation && owner.nil?
    fail ArgumentError, "Missing the required parameter 'owner' when calling ReposApi.repos_upstream_maven_create"
  end
  # verify the required parameter 'identifier' is set
  if @api_client.config.client_side_validation && identifier.nil?
    fail ArgumentError, "Missing the required parameter 'identifier' when calling ReposApi.repos_upstream_maven_create"
  end
  # resource path
  local_var_path = '/repos/{owner}/{identifier}/upstream/maven/'.sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'identifier' + '}', identifier.to_s)

  # query parameters
  query_params = {}

  # header parameters
  header_params = {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
  # HTTP header 'Content-Type'
  header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])

  # form parameters
  form_params = {}

  # http body (model)
  post_body = @api_client.object_to_http_body(opts[:'data'])
  auth_names = ['apikey']
  data, status_code, headers = @api_client.call_api(:POST, local_var_path,
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => 'MavenUpstream')
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: ReposApi#repos_upstream_maven_create\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#repos_upstream_maven_delete(owner, identifier, slug_perm, opts = {}) ⇒ nil

Delete a Maven upstream config for this repository. Delete a Maven upstream config for this repository.

Parameters:

  • owner
  • identifier
  • slug_perm
  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:

  • (nil)


3283
3284
3285
3286
# File 'lib/cloudsmith-api/api/repos_api.rb', line 3283

def repos_upstream_maven_delete(owner, identifier, slug_perm, opts = {})
  repos_upstream_maven_delete_with_http_info(owner, identifier, slug_perm, opts)
  nil
end

#repos_upstream_maven_delete_with_http_info(owner, identifier, slug_perm, opts = {}) ⇒ Array<(nil, Fixnum, Hash)>

Delete a Maven upstream config for this repository. Delete a Maven upstream config for this repository.

Parameters:

  • owner
  • identifier
  • slug_perm
  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:

  • (Array<(nil, Fixnum, Hash)>)

    nil, response status code and response headers



3295
3296
3297
3298
3299
3300
3301
3302
3303
3304
3305
3306
3307
3308
3309
3310
3311
3312
3313
3314
3315
3316
3317
3318
3319
3320
3321
3322
3323
3324
3325
3326
3327
3328
3329
3330
3331
3332
3333
3334
3335
3336
3337
3338
3339
3340
# File 'lib/cloudsmith-api/api/repos_api.rb', line 3295

def repos_upstream_maven_delete_with_http_info(owner, identifier, slug_perm, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: ReposApi.repos_upstream_maven_delete ...'
  end
  # verify the required parameter 'owner' is set
  if @api_client.config.client_side_validation && owner.nil?
    fail ArgumentError, "Missing the required parameter 'owner' when calling ReposApi.repos_upstream_maven_delete"
  end
  # verify the required parameter 'identifier' is set
  if @api_client.config.client_side_validation && identifier.nil?
    fail ArgumentError, "Missing the required parameter 'identifier' when calling ReposApi.repos_upstream_maven_delete"
  end
  # verify the required parameter 'slug_perm' is set
  if @api_client.config.client_side_validation && slug_perm.nil?
    fail ArgumentError, "Missing the required parameter 'slug_perm' when calling ReposApi.repos_upstream_maven_delete"
  end
  # resource path
  local_var_path = '/repos/{owner}/{identifier}/upstream/maven/{slug_perm}/'.sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'identifier' + '}', identifier.to_s).sub('{' + 'slug_perm' + '}', slug_perm.to_s)

  # query parameters
  query_params = {}

  # header parameters
  header_params = {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
  # HTTP header 'Content-Type'
  header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])

  # form parameters
  form_params = {}

  # http body (model)
  post_body = nil
  auth_names = ['apikey']
  data, status_code, headers = @api_client.call_api(:DELETE, local_var_path,
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names)
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: ReposApi#repos_upstream_maven_delete\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#repos_upstream_maven_list(owner, identifier, opts = {}) ⇒ Array<MavenUpstream>

List Maven upstream configs for this repository. List Maven upstream configs for this repository.

Parameters:

  • owner
  • identifier
  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :page (Integer)

    A page number within the paginated result set.

  • :page_size (Integer)

    Number of results to return per page.

Returns:



3349
3350
3351
3352
# File 'lib/cloudsmith-api/api/repos_api.rb', line 3349

def repos_upstream_maven_list(owner, identifier, opts = {})
  data, _status_code, _headers = repos_upstream_maven_list_with_http_info(owner, identifier, opts)
  data
end

#repos_upstream_maven_list_with_http_info(owner, identifier, opts = {}) ⇒ Array<(Array<MavenUpstream>, Fixnum, Hash)>

List Maven upstream configs for this repository. List Maven upstream configs for this repository.

Parameters:

  • owner
  • identifier
  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :page (Integer)

    A page number within the paginated result set.

  • :page_size (Integer)

    Number of results to return per page.

Returns:

  • (Array<(Array<MavenUpstream>, Fixnum, Hash)>)

    Array<MavenUpstream> data, response status code and response headers



3362
3363
3364
3365
3366
3367
3368
3369
3370
3371
3372
3373
3374
3375
3376
3377
3378
3379
3380
3381
3382
3383
3384
3385
3386
3387
3388
3389
3390
3391
3392
3393
3394
3395
3396
3397
3398
3399
3400
3401
3402
3403
3404
3405
3406
# File 'lib/cloudsmith-api/api/repos_api.rb', line 3362

def repos_upstream_maven_list_with_http_info(owner, identifier, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: ReposApi.repos_upstream_maven_list ...'
  end
  # verify the required parameter 'owner' is set
  if @api_client.config.client_side_validation && owner.nil?
    fail ArgumentError, "Missing the required parameter 'owner' when calling ReposApi.repos_upstream_maven_list"
  end
  # verify the required parameter 'identifier' is set
  if @api_client.config.client_side_validation && identifier.nil?
    fail ArgumentError, "Missing the required parameter 'identifier' when calling ReposApi.repos_upstream_maven_list"
  end
  # resource path
  local_var_path = '/repos/{owner}/{identifier}/upstream/maven/'.sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'identifier' + '}', identifier.to_s)

  # query parameters
  query_params = {}
  query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil?
  query_params[:'page_size'] = opts[:'page_size'] if !opts[:'page_size'].nil?

  # header parameters
  header_params = {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
  # HTTP header 'Content-Type'
  header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])

  # form parameters
  form_params = {}

  # http body (model)
  post_body = nil
  auth_names = ['apikey']
  data, status_code, headers = @api_client.call_api(:GET, local_var_path,
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => 'Array<MavenUpstream>')
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: ReposApi#repos_upstream_maven_list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#repos_upstream_maven_partial_update(owner, identifier, slug_perm, opts = {}) ⇒ MavenUpstream

Partially update a Maven upstream config for this repository. Partially update a Maven upstream config for this repository.

Parameters:

  • owner
  • identifier
  • slug_perm
  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

Returns:



3415
3416
3417
3418
# File 'lib/cloudsmith-api/api/repos_api.rb', line 3415

def repos_upstream_maven_partial_update(owner, identifier, slug_perm, opts = {})
  data, _status_code, _headers = repos_upstream_maven_partial_update_with_http_info(owner, identifier, slug_perm, opts)
  data
end

#repos_upstream_maven_partial_update_with_http_info(owner, identifier, slug_perm, opts = {}) ⇒ Array<(MavenUpstream, Fixnum, Hash)>

Partially update a Maven upstream config for this repository. Partially update a Maven upstream config for this repository.

Parameters:

  • owner
  • identifier
  • slug_perm
  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

Returns:

  • (Array<(MavenUpstream, Fixnum, Hash)>)

    MavenUpstream data, response status code and response headers



3428
3429
3430
3431
3432
3433
3434
3435
3436
3437
3438
3439
3440
3441
3442
3443
3444
3445
3446
3447
3448
3449
3450
3451
3452
3453
3454
3455
3456
3457
3458
3459
3460
3461
3462
3463
3464
3465
3466
3467
3468
3469
3470
3471
3472
3473
3474
# File 'lib/cloudsmith-api/api/repos_api.rb', line 3428

def repos_upstream_maven_partial_update_with_http_info(owner, identifier, slug_perm, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: ReposApi.repos_upstream_maven_partial_update ...'
  end
  # verify the required parameter 'owner' is set
  if @api_client.config.client_side_validation && owner.nil?
    fail ArgumentError, "Missing the required parameter 'owner' when calling ReposApi.repos_upstream_maven_partial_update"
  end
  # verify the required parameter 'identifier' is set
  if @api_client.config.client_side_validation && identifier.nil?
    fail ArgumentError, "Missing the required parameter 'identifier' when calling ReposApi.repos_upstream_maven_partial_update"
  end
  # verify the required parameter 'slug_perm' is set
  if @api_client.config.client_side_validation && slug_perm.nil?
    fail ArgumentError, "Missing the required parameter 'slug_perm' when calling ReposApi.repos_upstream_maven_partial_update"
  end
  # resource path
  local_var_path = '/repos/{owner}/{identifier}/upstream/maven/{slug_perm}/'.sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'identifier' + '}', identifier.to_s).sub('{' + 'slug_perm' + '}', slug_perm.to_s)

  # query parameters
  query_params = {}

  # header parameters
  header_params = {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
  # HTTP header 'Content-Type'
  header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])

  # form parameters
  form_params = {}

  # http body (model)
  post_body = @api_client.object_to_http_body(opts[:'data'])
  auth_names = ['apikey']
  data, status_code, headers = @api_client.call_api(:PATCH, local_var_path,
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => 'MavenUpstream')
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: ReposApi#repos_upstream_maven_partial_update\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#repos_upstream_maven_read(owner, identifier, slug_perm, opts = {}) ⇒ MavenUpstream

Retrieve a Maven upstream config for this repository. Retrieve a Maven upstream config for this repository.

Parameters:

  • owner
  • identifier
  • slug_perm
  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:



3482
3483
3484
3485
# File 'lib/cloudsmith-api/api/repos_api.rb', line 3482

def repos_upstream_maven_read(owner, identifier, slug_perm, opts = {})
  data, _status_code, _headers = repos_upstream_maven_read_with_http_info(owner, identifier, slug_perm, opts)
  data
end

#repos_upstream_maven_read_with_http_info(owner, identifier, slug_perm, opts = {}) ⇒ Array<(MavenUpstream, Fixnum, Hash)>

Retrieve a Maven upstream config for this repository. Retrieve a Maven upstream config for this repository.

Parameters:

  • owner
  • identifier
  • slug_perm
  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:

  • (Array<(MavenUpstream, Fixnum, Hash)>)

    MavenUpstream data, response status code and response headers



3494
3495
3496
3497
3498
3499
3500
3501
3502
3503
3504
3505
3506
3507
3508
3509
3510
3511
3512
3513
3514
3515
3516
3517
3518
3519
3520
3521
3522
3523
3524
3525
3526
3527
3528
3529
3530
3531
3532
3533
3534
3535
3536
3537
3538
3539
3540
# File 'lib/cloudsmith-api/api/repos_api.rb', line 3494

def repos_upstream_maven_read_with_http_info(owner, identifier, slug_perm, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: ReposApi.repos_upstream_maven_read ...'
  end
  # verify the required parameter 'owner' is set
  if @api_client.config.client_side_validation && owner.nil?
    fail ArgumentError, "Missing the required parameter 'owner' when calling ReposApi.repos_upstream_maven_read"
  end
  # verify the required parameter 'identifier' is set
  if @api_client.config.client_side_validation && identifier.nil?
    fail ArgumentError, "Missing the required parameter 'identifier' when calling ReposApi.repos_upstream_maven_read"
  end
  # verify the required parameter 'slug_perm' is set
  if @api_client.config.client_side_validation && slug_perm.nil?
    fail ArgumentError, "Missing the required parameter 'slug_perm' when calling ReposApi.repos_upstream_maven_read"
  end
  # resource path
  local_var_path = '/repos/{owner}/{identifier}/upstream/maven/{slug_perm}/'.sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'identifier' + '}', identifier.to_s).sub('{' + 'slug_perm' + '}', slug_perm.to_s)

  # query parameters
  query_params = {}

  # header parameters
  header_params = {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
  # HTTP header 'Content-Type'
  header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])

  # form parameters
  form_params = {}

  # http body (model)
  post_body = nil
  auth_names = ['apikey']
  data, status_code, headers = @api_client.call_api(:GET, local_var_path,
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => 'MavenUpstream')
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: ReposApi#repos_upstream_maven_read\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#repos_upstream_maven_update(owner, identifier, slug_perm, opts = {}) ⇒ MavenUpstream

Update a Maven upstream config for this repository. Update a Maven upstream config for this repository.

Parameters:

  • owner
  • identifier
  • slug_perm
  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

Returns:



3549
3550
3551
3552
# File 'lib/cloudsmith-api/api/repos_api.rb', line 3549

def repos_upstream_maven_update(owner, identifier, slug_perm, opts = {})
  data, _status_code, _headers = repos_upstream_maven_update_with_http_info(owner, identifier, slug_perm, opts)
  data
end

#repos_upstream_maven_update_with_http_info(owner, identifier, slug_perm, opts = {}) ⇒ Array<(MavenUpstream, Fixnum, Hash)>

Update a Maven upstream config for this repository. Update a Maven upstream config for this repository.

Parameters:

  • owner
  • identifier
  • slug_perm
  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

Returns:

  • (Array<(MavenUpstream, Fixnum, Hash)>)

    MavenUpstream data, response status code and response headers



3562
3563
3564
3565
3566
3567
3568
3569
3570
3571
3572
3573
3574
3575
3576
3577
3578
3579
3580
3581
3582
3583
3584
3585
3586
3587
3588
3589
3590
3591
3592
3593
3594
3595
3596
3597
3598
3599
3600
3601
3602
3603
3604
3605
3606
3607
3608
# File 'lib/cloudsmith-api/api/repos_api.rb', line 3562

def repos_upstream_maven_update_with_http_info(owner, identifier, slug_perm, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: ReposApi.repos_upstream_maven_update ...'
  end
  # verify the required parameter 'owner' is set
  if @api_client.config.client_side_validation && owner.nil?
    fail ArgumentError, "Missing the required parameter 'owner' when calling ReposApi.repos_upstream_maven_update"
  end
  # verify the required parameter 'identifier' is set
  if @api_client.config.client_side_validation && identifier.nil?
    fail ArgumentError, "Missing the required parameter 'identifier' when calling ReposApi.repos_upstream_maven_update"
  end
  # verify the required parameter 'slug_perm' is set
  if @api_client.config.client_side_validation && slug_perm.nil?
    fail ArgumentError, "Missing the required parameter 'slug_perm' when calling ReposApi.repos_upstream_maven_update"
  end
  # resource path
  local_var_path = '/repos/{owner}/{identifier}/upstream/maven/{slug_perm}/'.sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'identifier' + '}', identifier.to_s).sub('{' + 'slug_perm' + '}', slug_perm.to_s)

  # query parameters
  query_params = {}

  # header parameters
  header_params = {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
  # HTTP header 'Content-Type'
  header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])

  # form parameters
  form_params = {}

  # http body (model)
  post_body = @api_client.object_to_http_body(opts[:'data'])
  auth_names = ['apikey']
  data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => 'MavenUpstream')
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: ReposApi#repos_upstream_maven_update\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#repos_upstream_npm_create(owner, identifier, opts = {}) ⇒ NpmUpstream

Create a npm upstream config for this repository. Create a npm upstream config for this repository.

Parameters:

  • owner
  • identifier
  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

Returns:



3616
3617
3618
3619
# File 'lib/cloudsmith-api/api/repos_api.rb', line 3616

def repos_upstream_npm_create(owner, identifier, opts = {})
  data, _status_code, _headers = repos_upstream_npm_create_with_http_info(owner, identifier, opts)
  data
end

#repos_upstream_npm_create_with_http_info(owner, identifier, opts = {}) ⇒ Array<(NpmUpstream, Fixnum, Hash)>

Create a npm upstream config for this repository. Create a npm upstream config for this repository.

Parameters:

  • owner
  • identifier
  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

Returns:

  • (Array<(NpmUpstream, Fixnum, Hash)>)

    NpmUpstream data, response status code and response headers



3628
3629
3630
3631
3632
3633
3634
3635
3636
3637
3638
3639
3640
3641
3642
3643
3644
3645
3646
3647
3648
3649
3650
3651
3652
3653
3654
3655
3656
3657
3658
3659
3660
3661
3662
3663
3664
3665
3666
3667
3668
3669
3670
# File 'lib/cloudsmith-api/api/repos_api.rb', line 3628

def repos_upstream_npm_create_with_http_info(owner, identifier, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: ReposApi.repos_upstream_npm_create ...'
  end
  # verify the required parameter 'owner' is set
  if @api_client.config.client_side_validation && owner.nil?
    fail ArgumentError, "Missing the required parameter 'owner' when calling ReposApi.repos_upstream_npm_create"
  end
  # verify the required parameter 'identifier' is set
  if @api_client.config.client_side_validation && identifier.nil?
    fail ArgumentError, "Missing the required parameter 'identifier' when calling ReposApi.repos_upstream_npm_create"
  end
  # resource path
  local_var_path = '/repos/{owner}/{identifier}/upstream/npm/'.sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'identifier' + '}', identifier.to_s)

  # query parameters
  query_params = {}

  # header parameters
  header_params = {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
  # HTTP header 'Content-Type'
  header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])

  # form parameters
  form_params = {}

  # http body (model)
  post_body = @api_client.object_to_http_body(opts[:'data'])
  auth_names = ['apikey']
  data, status_code, headers = @api_client.call_api(:POST, local_var_path,
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => 'NpmUpstream')
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: ReposApi#repos_upstream_npm_create\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#repos_upstream_npm_delete(owner, identifier, slug_perm, opts = {}) ⇒ nil

Delete a npm upstream config for this repository. Delete a npm upstream config for this repository.

Parameters:

  • owner
  • identifier
  • slug_perm
  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:

  • (nil)


3678
3679
3680
3681
# File 'lib/cloudsmith-api/api/repos_api.rb', line 3678

def repos_upstream_npm_delete(owner, identifier, slug_perm, opts = {})
  repos_upstream_npm_delete_with_http_info(owner, identifier, slug_perm, opts)
  nil
end

#repos_upstream_npm_delete_with_http_info(owner, identifier, slug_perm, opts = {}) ⇒ Array<(nil, Fixnum, Hash)>

Delete a npm upstream config for this repository. Delete a npm upstream config for this repository.

Parameters:

  • owner
  • identifier
  • slug_perm
  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:

  • (Array<(nil, Fixnum, Hash)>)

    nil, response status code and response headers



3690
3691
3692
3693
3694
3695
3696
3697
3698
3699
3700
3701
3702
3703
3704
3705
3706
3707
3708
3709
3710
3711
3712
3713
3714
3715
3716
3717
3718
3719
3720
3721
3722
3723
3724
3725
3726
3727
3728
3729
3730
3731
3732
3733
3734
3735
# File 'lib/cloudsmith-api/api/repos_api.rb', line 3690

def repos_upstream_npm_delete_with_http_info(owner, identifier, slug_perm, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: ReposApi.repos_upstream_npm_delete ...'
  end
  # verify the required parameter 'owner' is set
  if @api_client.config.client_side_validation && owner.nil?
    fail ArgumentError, "Missing the required parameter 'owner' when calling ReposApi.repos_upstream_npm_delete"
  end
  # verify the required parameter 'identifier' is set
  if @api_client.config.client_side_validation && identifier.nil?
    fail ArgumentError, "Missing the required parameter 'identifier' when calling ReposApi.repos_upstream_npm_delete"
  end
  # verify the required parameter 'slug_perm' is set
  if @api_client.config.client_side_validation && slug_perm.nil?
    fail ArgumentError, "Missing the required parameter 'slug_perm' when calling ReposApi.repos_upstream_npm_delete"
  end
  # resource path
  local_var_path = '/repos/{owner}/{identifier}/upstream/npm/{slug_perm}/'.sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'identifier' + '}', identifier.to_s).sub('{' + 'slug_perm' + '}', slug_perm.to_s)

  # query parameters
  query_params = {}

  # header parameters
  header_params = {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
  # HTTP header 'Content-Type'
  header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])

  # form parameters
  form_params = {}

  # http body (model)
  post_body = nil
  auth_names = ['apikey']
  data, status_code, headers = @api_client.call_api(:DELETE, local_var_path,
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names)
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: ReposApi#repos_upstream_npm_delete\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#repos_upstream_npm_list(owner, identifier, opts = {}) ⇒ Array<NpmUpstream>

List npm upstream configs for this repository. List npm upstream configs for this repository.

Parameters:

  • owner
  • identifier
  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :page (Integer)

    A page number within the paginated result set.

  • :page_size (Integer)

    Number of results to return per page.

Returns:



3744
3745
3746
3747
# File 'lib/cloudsmith-api/api/repos_api.rb', line 3744

def repos_upstream_npm_list(owner, identifier, opts = {})
  data, _status_code, _headers = repos_upstream_npm_list_with_http_info(owner, identifier, opts)
  data
end

#repos_upstream_npm_list_with_http_info(owner, identifier, opts = {}) ⇒ Array<(Array<NpmUpstream>, Fixnum, Hash)>

List npm upstream configs for this repository. List npm upstream configs for this repository.

Parameters:

  • owner
  • identifier
  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :page (Integer)

    A page number within the paginated result set.

  • :page_size (Integer)

    Number of results to return per page.

Returns:

  • (Array<(Array<NpmUpstream>, Fixnum, Hash)>)

    Array<NpmUpstream> data, response status code and response headers



3757
3758
3759
3760
3761
3762
3763
3764
3765
3766
3767
3768
3769
3770
3771
3772
3773
3774
3775
3776
3777
3778
3779
3780
3781
3782
3783
3784
3785
3786
3787
3788
3789
3790
3791
3792
3793
3794
3795
3796
3797
3798
3799
3800
3801
# File 'lib/cloudsmith-api/api/repos_api.rb', line 3757

def repos_upstream_npm_list_with_http_info(owner, identifier, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: ReposApi.repos_upstream_npm_list ...'
  end
  # verify the required parameter 'owner' is set
  if @api_client.config.client_side_validation && owner.nil?
    fail ArgumentError, "Missing the required parameter 'owner' when calling ReposApi.repos_upstream_npm_list"
  end
  # verify the required parameter 'identifier' is set
  if @api_client.config.client_side_validation && identifier.nil?
    fail ArgumentError, "Missing the required parameter 'identifier' when calling ReposApi.repos_upstream_npm_list"
  end
  # resource path
  local_var_path = '/repos/{owner}/{identifier}/upstream/npm/'.sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'identifier' + '}', identifier.to_s)

  # query parameters
  query_params = {}
  query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil?
  query_params[:'page_size'] = opts[:'page_size'] if !opts[:'page_size'].nil?

  # header parameters
  header_params = {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
  # HTTP header 'Content-Type'
  header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])

  # form parameters
  form_params = {}

  # http body (model)
  post_body = nil
  auth_names = ['apikey']
  data, status_code, headers = @api_client.call_api(:GET, local_var_path,
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => 'Array<NpmUpstream>')
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: ReposApi#repos_upstream_npm_list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#repos_upstream_npm_partial_update(owner, identifier, slug_perm, opts = {}) ⇒ NpmUpstream

Partially update a npm upstream config for this repository. Partially update a npm upstream config for this repository.

Parameters:

  • owner
  • identifier
  • slug_perm
  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

Returns:



3810
3811
3812
3813
# File 'lib/cloudsmith-api/api/repos_api.rb', line 3810

def repos_upstream_npm_partial_update(owner, identifier, slug_perm, opts = {})
  data, _status_code, _headers = repos_upstream_npm_partial_update_with_http_info(owner, identifier, slug_perm, opts)
  data
end

#repos_upstream_npm_partial_update_with_http_info(owner, identifier, slug_perm, opts = {}) ⇒ Array<(NpmUpstream, Fixnum, Hash)>

Partially update a npm upstream config for this repository. Partially update a npm upstream config for this repository.

Parameters:

  • owner
  • identifier
  • slug_perm
  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

Returns:

  • (Array<(NpmUpstream, Fixnum, Hash)>)

    NpmUpstream data, response status code and response headers



3823
3824
3825
3826
3827
3828
3829
3830
3831
3832
3833
3834
3835
3836
3837
3838
3839
3840
3841
3842
3843
3844
3845
3846
3847
3848
3849
3850
3851
3852
3853
3854
3855
3856
3857
3858
3859
3860
3861
3862
3863
3864
3865
3866
3867
3868
3869
# File 'lib/cloudsmith-api/api/repos_api.rb', line 3823

def repos_upstream_npm_partial_update_with_http_info(owner, identifier, slug_perm, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: ReposApi.repos_upstream_npm_partial_update ...'
  end
  # verify the required parameter 'owner' is set
  if @api_client.config.client_side_validation && owner.nil?
    fail ArgumentError, "Missing the required parameter 'owner' when calling ReposApi.repos_upstream_npm_partial_update"
  end
  # verify the required parameter 'identifier' is set
  if @api_client.config.client_side_validation && identifier.nil?
    fail ArgumentError, "Missing the required parameter 'identifier' when calling ReposApi.repos_upstream_npm_partial_update"
  end
  # verify the required parameter 'slug_perm' is set
  if @api_client.config.client_side_validation && slug_perm.nil?
    fail ArgumentError, "Missing the required parameter 'slug_perm' when calling ReposApi.repos_upstream_npm_partial_update"
  end
  # resource path
  local_var_path = '/repos/{owner}/{identifier}/upstream/npm/{slug_perm}/'.sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'identifier' + '}', identifier.to_s).sub('{' + 'slug_perm' + '}', slug_perm.to_s)

  # query parameters
  query_params = {}

  # header parameters
  header_params = {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
  # HTTP header 'Content-Type'
  header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])

  # form parameters
  form_params = {}

  # http body (model)
  post_body = @api_client.object_to_http_body(opts[:'data'])
  auth_names = ['apikey']
  data, status_code, headers = @api_client.call_api(:PATCH, local_var_path,
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => 'NpmUpstream')
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: ReposApi#repos_upstream_npm_partial_update\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#repos_upstream_npm_read(owner, identifier, slug_perm, opts = {}) ⇒ NpmUpstream

Retrieve a npm upstream config for this repository. Retrieve a npm upstream config for this repository.

Parameters:

  • owner
  • identifier
  • slug_perm
  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:



3877
3878
3879
3880
# File 'lib/cloudsmith-api/api/repos_api.rb', line 3877

def repos_upstream_npm_read(owner, identifier, slug_perm, opts = {})
  data, _status_code, _headers = repos_upstream_npm_read_with_http_info(owner, identifier, slug_perm, opts)
  data
end

#repos_upstream_npm_read_with_http_info(owner, identifier, slug_perm, opts = {}) ⇒ Array<(NpmUpstream, Fixnum, Hash)>

Retrieve a npm upstream config for this repository. Retrieve a npm upstream config for this repository.

Parameters:

  • owner
  • identifier
  • slug_perm
  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:

  • (Array<(NpmUpstream, Fixnum, Hash)>)

    NpmUpstream data, response status code and response headers



3889
3890
3891
3892
3893
3894
3895
3896
3897
3898
3899
3900
3901
3902
3903
3904
3905
3906
3907
3908
3909
3910
3911
3912
3913
3914
3915
3916
3917
3918
3919
3920
3921
3922
3923
3924
3925
3926
3927
3928
3929
3930
3931
3932
3933
3934
3935
# File 'lib/cloudsmith-api/api/repos_api.rb', line 3889

def repos_upstream_npm_read_with_http_info(owner, identifier, slug_perm, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: ReposApi.repos_upstream_npm_read ...'
  end
  # verify the required parameter 'owner' is set
  if @api_client.config.client_side_validation && owner.nil?
    fail ArgumentError, "Missing the required parameter 'owner' when calling ReposApi.repos_upstream_npm_read"
  end
  # verify the required parameter 'identifier' is set
  if @api_client.config.client_side_validation && identifier.nil?
    fail ArgumentError, "Missing the required parameter 'identifier' when calling ReposApi.repos_upstream_npm_read"
  end
  # verify the required parameter 'slug_perm' is set
  if @api_client.config.client_side_validation && slug_perm.nil?
    fail ArgumentError, "Missing the required parameter 'slug_perm' when calling ReposApi.repos_upstream_npm_read"
  end
  # resource path
  local_var_path = '/repos/{owner}/{identifier}/upstream/npm/{slug_perm}/'.sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'identifier' + '}', identifier.to_s).sub('{' + 'slug_perm' + '}', slug_perm.to_s)

  # query parameters
  query_params = {}

  # header parameters
  header_params = {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
  # HTTP header 'Content-Type'
  header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])

  # form parameters
  form_params = {}

  # http body (model)
  post_body = nil
  auth_names = ['apikey']
  data, status_code, headers = @api_client.call_api(:GET, local_var_path,
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => 'NpmUpstream')
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: ReposApi#repos_upstream_npm_read\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#repos_upstream_npm_update(owner, identifier, slug_perm, opts = {}) ⇒ NpmUpstream

Update a npm upstream config for this repository. Update a npm upstream config for this repository.

Parameters:

  • owner
  • identifier
  • slug_perm
  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

Returns:



3944
3945
3946
3947
# File 'lib/cloudsmith-api/api/repos_api.rb', line 3944

def repos_upstream_npm_update(owner, identifier, slug_perm, opts = {})
  data, _status_code, _headers = repos_upstream_npm_update_with_http_info(owner, identifier, slug_perm, opts)
  data
end

#repos_upstream_npm_update_with_http_info(owner, identifier, slug_perm, opts = {}) ⇒ Array<(NpmUpstream, Fixnum, Hash)>

Update a npm upstream config for this repository. Update a npm upstream config for this repository.

Parameters:

  • owner
  • identifier
  • slug_perm
  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

Returns:

  • (Array<(NpmUpstream, Fixnum, Hash)>)

    NpmUpstream data, response status code and response headers



3957
3958
3959
3960
3961
3962
3963
3964
3965
3966
3967
3968
3969
3970
3971
3972
3973
3974
3975
3976
3977
3978
3979
3980
3981
3982
3983
3984
3985
3986
3987
3988
3989
3990
3991
3992
3993
3994
3995
3996
3997
3998
3999
4000
4001
4002
4003
# File 'lib/cloudsmith-api/api/repos_api.rb', line 3957

def repos_upstream_npm_update_with_http_info(owner, identifier, slug_perm, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: ReposApi.repos_upstream_npm_update ...'
  end
  # verify the required parameter 'owner' is set
  if @api_client.config.client_side_validation && owner.nil?
    fail ArgumentError, "Missing the required parameter 'owner' when calling ReposApi.repos_upstream_npm_update"
  end
  # verify the required parameter 'identifier' is set
  if @api_client.config.client_side_validation && identifier.nil?
    fail ArgumentError, "Missing the required parameter 'identifier' when calling ReposApi.repos_upstream_npm_update"
  end
  # verify the required parameter 'slug_perm' is set
  if @api_client.config.client_side_validation && slug_perm.nil?
    fail ArgumentError, "Missing the required parameter 'slug_perm' when calling ReposApi.repos_upstream_npm_update"
  end
  # resource path
  local_var_path = '/repos/{owner}/{identifier}/upstream/npm/{slug_perm}/'.sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'identifier' + '}', identifier.to_s).sub('{' + 'slug_perm' + '}', slug_perm.to_s)

  # query parameters
  query_params = {}

  # header parameters
  header_params = {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
  # HTTP header 'Content-Type'
  header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])

  # form parameters
  form_params = {}

  # http body (model)
  post_body = @api_client.object_to_http_body(opts[:'data'])
  auth_names = ['apikey']
  data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => 'NpmUpstream')
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: ReposApi#repos_upstream_npm_update\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#repos_upstream_nuget_create(owner, identifier, opts = {}) ⇒ NugetUpstream

Create a NuGet upstream config for this repository. Create a NuGet upstream config for this repository.

Parameters:

  • owner
  • identifier
  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

Returns:



4011
4012
4013
4014
# File 'lib/cloudsmith-api/api/repos_api.rb', line 4011

def repos_upstream_nuget_create(owner, identifier, opts = {})
  data, _status_code, _headers = repos_upstream_nuget_create_with_http_info(owner, identifier, opts)
  data
end

#repos_upstream_nuget_create_with_http_info(owner, identifier, opts = {}) ⇒ Array<(NugetUpstream, Fixnum, Hash)>

Create a NuGet upstream config for this repository. Create a NuGet upstream config for this repository.

Parameters:

  • owner
  • identifier
  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

Returns:

  • (Array<(NugetUpstream, Fixnum, Hash)>)

    NugetUpstream data, response status code and response headers



4023
4024
4025
4026
4027
4028
4029
4030
4031
4032
4033
4034
4035
4036
4037
4038
4039
4040
4041
4042
4043
4044
4045
4046
4047
4048
4049
4050
4051
4052
4053
4054
4055
4056
4057
4058
4059
4060
4061
4062
4063
4064
4065
# File 'lib/cloudsmith-api/api/repos_api.rb', line 4023

def repos_upstream_nuget_create_with_http_info(owner, identifier, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: ReposApi.repos_upstream_nuget_create ...'
  end
  # verify the required parameter 'owner' is set
  if @api_client.config.client_side_validation && owner.nil?
    fail ArgumentError, "Missing the required parameter 'owner' when calling ReposApi.repos_upstream_nuget_create"
  end
  # verify the required parameter 'identifier' is set
  if @api_client.config.client_side_validation && identifier.nil?
    fail ArgumentError, "Missing the required parameter 'identifier' when calling ReposApi.repos_upstream_nuget_create"
  end
  # resource path
  local_var_path = '/repos/{owner}/{identifier}/upstream/nuget/'.sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'identifier' + '}', identifier.to_s)

  # query parameters
  query_params = {}

  # header parameters
  header_params = {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
  # HTTP header 'Content-Type'
  header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])

  # form parameters
  form_params = {}

  # http body (model)
  post_body = @api_client.object_to_http_body(opts[:'data'])
  auth_names = ['apikey']
  data, status_code, headers = @api_client.call_api(:POST, local_var_path,
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => 'NugetUpstream')
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: ReposApi#repos_upstream_nuget_create\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#repos_upstream_nuget_delete(owner, identifier, slug_perm, opts = {}) ⇒ nil

Delete a NuGet upstream config for this repository. Delete a NuGet upstream config for this repository.

Parameters:

  • owner
  • identifier
  • slug_perm
  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:

  • (nil)


4073
4074
4075
4076
# File 'lib/cloudsmith-api/api/repos_api.rb', line 4073

def repos_upstream_nuget_delete(owner, identifier, slug_perm, opts = {})
  repos_upstream_nuget_delete_with_http_info(owner, identifier, slug_perm, opts)
  nil
end

#repos_upstream_nuget_delete_with_http_info(owner, identifier, slug_perm, opts = {}) ⇒ Array<(nil, Fixnum, Hash)>

Delete a NuGet upstream config for this repository. Delete a NuGet upstream config for this repository.

Parameters:

  • owner
  • identifier
  • slug_perm
  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:

  • (Array<(nil, Fixnum, Hash)>)

    nil, response status code and response headers



4085
4086
4087
4088
4089
4090
4091
4092
4093
4094
4095
4096
4097
4098
4099
4100
4101
4102
4103
4104
4105
4106
4107
4108
4109
4110
4111
4112
4113
4114
4115
4116
4117
4118
4119
4120
4121
4122
4123
4124
4125
4126
4127
4128
4129
4130
# File 'lib/cloudsmith-api/api/repos_api.rb', line 4085

def repos_upstream_nuget_delete_with_http_info(owner, identifier, slug_perm, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: ReposApi.repos_upstream_nuget_delete ...'
  end
  # verify the required parameter 'owner' is set
  if @api_client.config.client_side_validation && owner.nil?
    fail ArgumentError, "Missing the required parameter 'owner' when calling ReposApi.repos_upstream_nuget_delete"
  end
  # verify the required parameter 'identifier' is set
  if @api_client.config.client_side_validation && identifier.nil?
    fail ArgumentError, "Missing the required parameter 'identifier' when calling ReposApi.repos_upstream_nuget_delete"
  end
  # verify the required parameter 'slug_perm' is set
  if @api_client.config.client_side_validation && slug_perm.nil?
    fail ArgumentError, "Missing the required parameter 'slug_perm' when calling ReposApi.repos_upstream_nuget_delete"
  end
  # resource path
  local_var_path = '/repos/{owner}/{identifier}/upstream/nuget/{slug_perm}/'.sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'identifier' + '}', identifier.to_s).sub('{' + 'slug_perm' + '}', slug_perm.to_s)

  # query parameters
  query_params = {}

  # header parameters
  header_params = {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
  # HTTP header 'Content-Type'
  header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])

  # form parameters
  form_params = {}

  # http body (model)
  post_body = nil
  auth_names = ['apikey']
  data, status_code, headers = @api_client.call_api(:DELETE, local_var_path,
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names)
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: ReposApi#repos_upstream_nuget_delete\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#repos_upstream_nuget_list(owner, identifier, opts = {}) ⇒ Array<NugetUpstream>

List NuGet upstream configs for this repository. List NuGet upstream configs for this repository.

Parameters:

  • owner
  • identifier
  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :page (Integer)

    A page number within the paginated result set.

  • :page_size (Integer)

    Number of results to return per page.

Returns:



4139
4140
4141
4142
# File 'lib/cloudsmith-api/api/repos_api.rb', line 4139

def repos_upstream_nuget_list(owner, identifier, opts = {})
  data, _status_code, _headers = repos_upstream_nuget_list_with_http_info(owner, identifier, opts)
  data
end

#repos_upstream_nuget_list_with_http_info(owner, identifier, opts = {}) ⇒ Array<(Array<NugetUpstream>, Fixnum, Hash)>

List NuGet upstream configs for this repository. List NuGet upstream configs for this repository.

Parameters:

  • owner
  • identifier
  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :page (Integer)

    A page number within the paginated result set.

  • :page_size (Integer)

    Number of results to return per page.

Returns:

  • (Array<(Array<NugetUpstream>, Fixnum, Hash)>)

    Array<NugetUpstream> data, response status code and response headers



4152
4153
4154
4155
4156
4157
4158
4159
4160
4161
4162
4163
4164
4165
4166
4167
4168
4169
4170
4171
4172
4173
4174
4175
4176
4177
4178
4179
4180
4181
4182
4183
4184
4185
4186
4187
4188
4189
4190
4191
4192
4193
4194
4195
4196
# File 'lib/cloudsmith-api/api/repos_api.rb', line 4152

def repos_upstream_nuget_list_with_http_info(owner, identifier, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: ReposApi.repos_upstream_nuget_list ...'
  end
  # verify the required parameter 'owner' is set
  if @api_client.config.client_side_validation && owner.nil?
    fail ArgumentError, "Missing the required parameter 'owner' when calling ReposApi.repos_upstream_nuget_list"
  end
  # verify the required parameter 'identifier' is set
  if @api_client.config.client_side_validation && identifier.nil?
    fail ArgumentError, "Missing the required parameter 'identifier' when calling ReposApi.repos_upstream_nuget_list"
  end
  # resource path
  local_var_path = '/repos/{owner}/{identifier}/upstream/nuget/'.sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'identifier' + '}', identifier.to_s)

  # query parameters
  query_params = {}
  query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil?
  query_params[:'page_size'] = opts[:'page_size'] if !opts[:'page_size'].nil?

  # header parameters
  header_params = {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
  # HTTP header 'Content-Type'
  header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])

  # form parameters
  form_params = {}

  # http body (model)
  post_body = nil
  auth_names = ['apikey']
  data, status_code, headers = @api_client.call_api(:GET, local_var_path,
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => 'Array<NugetUpstream>')
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: ReposApi#repos_upstream_nuget_list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#repos_upstream_nuget_partial_update(owner, identifier, slug_perm, opts = {}) ⇒ NugetUpstream

Partially update a NuGet upstream config for this repository. Partially update a NuGet upstream config for this repository.

Parameters:

  • owner
  • identifier
  • slug_perm
  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

Returns:



4205
4206
4207
4208
# File 'lib/cloudsmith-api/api/repos_api.rb', line 4205

def repos_upstream_nuget_partial_update(owner, identifier, slug_perm, opts = {})
  data, _status_code, _headers = repos_upstream_nuget_partial_update_with_http_info(owner, identifier, slug_perm, opts)
  data
end

#repos_upstream_nuget_partial_update_with_http_info(owner, identifier, slug_perm, opts = {}) ⇒ Array<(NugetUpstream, Fixnum, Hash)>

Partially update a NuGet upstream config for this repository. Partially update a NuGet upstream config for this repository.

Parameters:

  • owner
  • identifier
  • slug_perm
  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

Returns:

  • (Array<(NugetUpstream, Fixnum, Hash)>)

    NugetUpstream data, response status code and response headers



4218
4219
4220
4221
4222
4223
4224
4225
4226
4227
4228
4229
4230
4231
4232
4233
4234
4235
4236
4237
4238
4239
4240
4241
4242
4243
4244
4245
4246
4247
4248
4249
4250
4251
4252
4253
4254
4255
4256
4257
4258
4259
4260
4261
4262
4263
4264
# File 'lib/cloudsmith-api/api/repos_api.rb', line 4218

def repos_upstream_nuget_partial_update_with_http_info(owner, identifier, slug_perm, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: ReposApi.repos_upstream_nuget_partial_update ...'
  end
  # verify the required parameter 'owner' is set
  if @api_client.config.client_side_validation && owner.nil?
    fail ArgumentError, "Missing the required parameter 'owner' when calling ReposApi.repos_upstream_nuget_partial_update"
  end
  # verify the required parameter 'identifier' is set
  if @api_client.config.client_side_validation && identifier.nil?
    fail ArgumentError, "Missing the required parameter 'identifier' when calling ReposApi.repos_upstream_nuget_partial_update"
  end
  # verify the required parameter 'slug_perm' is set
  if @api_client.config.client_side_validation && slug_perm.nil?
    fail ArgumentError, "Missing the required parameter 'slug_perm' when calling ReposApi.repos_upstream_nuget_partial_update"
  end
  # resource path
  local_var_path = '/repos/{owner}/{identifier}/upstream/nuget/{slug_perm}/'.sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'identifier' + '}', identifier.to_s).sub('{' + 'slug_perm' + '}', slug_perm.to_s)

  # query parameters
  query_params = {}

  # header parameters
  header_params = {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
  # HTTP header 'Content-Type'
  header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])

  # form parameters
  form_params = {}

  # http body (model)
  post_body = @api_client.object_to_http_body(opts[:'data'])
  auth_names = ['apikey']
  data, status_code, headers = @api_client.call_api(:PATCH, local_var_path,
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => 'NugetUpstream')
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: ReposApi#repos_upstream_nuget_partial_update\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#repos_upstream_nuget_read(owner, identifier, slug_perm, opts = {}) ⇒ NugetUpstream

Retrieve a NuGet upstream config for this repository. Retrieve a NuGet upstream config for this repository.

Parameters:

  • owner
  • identifier
  • slug_perm
  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:



4272
4273
4274
4275
# File 'lib/cloudsmith-api/api/repos_api.rb', line 4272

def repos_upstream_nuget_read(owner, identifier, slug_perm, opts = {})
  data, _status_code, _headers = repos_upstream_nuget_read_with_http_info(owner, identifier, slug_perm, opts)
  data
end

#repos_upstream_nuget_read_with_http_info(owner, identifier, slug_perm, opts = {}) ⇒ Array<(NugetUpstream, Fixnum, Hash)>

Retrieve a NuGet upstream config for this repository. Retrieve a NuGet upstream config for this repository.

Parameters:

  • owner
  • identifier
  • slug_perm
  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:

  • (Array<(NugetUpstream, Fixnum, Hash)>)

    NugetUpstream data, response status code and response headers



4284
4285
4286
4287
4288
4289
4290
4291
4292
4293
4294
4295
4296
4297
4298
4299
4300
4301
4302
4303
4304
4305
4306
4307
4308
4309
4310
4311
4312
4313
4314
4315
4316
4317
4318
4319
4320
4321
4322
4323
4324
4325
4326
4327
4328
4329
4330
# File 'lib/cloudsmith-api/api/repos_api.rb', line 4284

def repos_upstream_nuget_read_with_http_info(owner, identifier, slug_perm, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: ReposApi.repos_upstream_nuget_read ...'
  end
  # verify the required parameter 'owner' is set
  if @api_client.config.client_side_validation && owner.nil?
    fail ArgumentError, "Missing the required parameter 'owner' when calling ReposApi.repos_upstream_nuget_read"
  end
  # verify the required parameter 'identifier' is set
  if @api_client.config.client_side_validation && identifier.nil?
    fail ArgumentError, "Missing the required parameter 'identifier' when calling ReposApi.repos_upstream_nuget_read"
  end
  # verify the required parameter 'slug_perm' is set
  if @api_client.config.client_side_validation && slug_perm.nil?
    fail ArgumentError, "Missing the required parameter 'slug_perm' when calling ReposApi.repos_upstream_nuget_read"
  end
  # resource path
  local_var_path = '/repos/{owner}/{identifier}/upstream/nuget/{slug_perm}/'.sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'identifier' + '}', identifier.to_s).sub('{' + 'slug_perm' + '}', slug_perm.to_s)

  # query parameters
  query_params = {}

  # header parameters
  header_params = {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
  # HTTP header 'Content-Type'
  header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])

  # form parameters
  form_params = {}

  # http body (model)
  post_body = nil
  auth_names = ['apikey']
  data, status_code, headers = @api_client.call_api(:GET, local_var_path,
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => 'NugetUpstream')
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: ReposApi#repos_upstream_nuget_read\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#repos_upstream_nuget_update(owner, identifier, slug_perm, opts = {}) ⇒ NugetUpstream

Update a NuGet upstream config for this repository. Update a NuGet upstream config for this repository.

Parameters:

  • owner
  • identifier
  • slug_perm
  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

Returns:



4339
4340
4341
4342
# File 'lib/cloudsmith-api/api/repos_api.rb', line 4339

def repos_upstream_nuget_update(owner, identifier, slug_perm, opts = {})
  data, _status_code, _headers = repos_upstream_nuget_update_with_http_info(owner, identifier, slug_perm, opts)
  data
end

#repos_upstream_nuget_update_with_http_info(owner, identifier, slug_perm, opts = {}) ⇒ Array<(NugetUpstream, Fixnum, Hash)>

Update a NuGet upstream config for this repository. Update a NuGet upstream config for this repository.

Parameters:

  • owner
  • identifier
  • slug_perm
  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

Returns:

  • (Array<(NugetUpstream, Fixnum, Hash)>)

    NugetUpstream data, response status code and response headers



4352
4353
4354
4355
4356
4357
4358
4359
4360
4361
4362
4363
4364
4365
4366
4367
4368
4369
4370
4371
4372
4373
4374
4375
4376
4377
4378
4379
4380
4381
4382
4383
4384
4385
4386
4387
4388
4389
4390
4391
4392
4393
4394
4395
4396
4397
4398
# File 'lib/cloudsmith-api/api/repos_api.rb', line 4352

def repos_upstream_nuget_update_with_http_info(owner, identifier, slug_perm, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: ReposApi.repos_upstream_nuget_update ...'
  end
  # verify the required parameter 'owner' is set
  if @api_client.config.client_side_validation && owner.nil?
    fail ArgumentError, "Missing the required parameter 'owner' when calling ReposApi.repos_upstream_nuget_update"
  end
  # verify the required parameter 'identifier' is set
  if @api_client.config.client_side_validation && identifier.nil?
    fail ArgumentError, "Missing the required parameter 'identifier' when calling ReposApi.repos_upstream_nuget_update"
  end
  # verify the required parameter 'slug_perm' is set
  if @api_client.config.client_side_validation && slug_perm.nil?
    fail ArgumentError, "Missing the required parameter 'slug_perm' when calling ReposApi.repos_upstream_nuget_update"
  end
  # resource path
  local_var_path = '/repos/{owner}/{identifier}/upstream/nuget/{slug_perm}/'.sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'identifier' + '}', identifier.to_s).sub('{' + 'slug_perm' + '}', slug_perm.to_s)

  # query parameters
  query_params = {}

  # header parameters
  header_params = {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
  # HTTP header 'Content-Type'
  header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])

  # form parameters
  form_params = {}

  # http body (model)
  post_body = @api_client.object_to_http_body(opts[:'data'])
  auth_names = ['apikey']
  data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => 'NugetUpstream')
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: ReposApi#repos_upstream_nuget_update\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#repos_upstream_python_create(owner, identifier, opts = {}) ⇒ PythonUpstream

Create a Python upstream config for this repository. Create a Python upstream config for this repository.

Parameters:

  • owner
  • identifier
  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

Returns:



4406
4407
4408
4409
# File 'lib/cloudsmith-api/api/repos_api.rb', line 4406

def repos_upstream_python_create(owner, identifier, opts = {})
  data, _status_code, _headers = repos_upstream_python_create_with_http_info(owner, identifier, opts)
  data
end

#repos_upstream_python_create_with_http_info(owner, identifier, opts = {}) ⇒ Array<(PythonUpstream, Fixnum, Hash)>

Create a Python upstream config for this repository. Create a Python upstream config for this repository.

Parameters:

  • owner
  • identifier
  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

Returns:

  • (Array<(PythonUpstream, Fixnum, Hash)>)

    PythonUpstream data, response status code and response headers



4418
4419
4420
4421
4422
4423
4424
4425
4426
4427
4428
4429
4430
4431
4432
4433
4434
4435
4436
4437
4438
4439
4440
4441
4442
4443
4444
4445
4446
4447
4448
4449
4450
4451
4452
4453
4454
4455
4456
4457
4458
4459
4460
# File 'lib/cloudsmith-api/api/repos_api.rb', line 4418

def repos_upstream_python_create_with_http_info(owner, identifier, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: ReposApi.repos_upstream_python_create ...'
  end
  # verify the required parameter 'owner' is set
  if @api_client.config.client_side_validation && owner.nil?
    fail ArgumentError, "Missing the required parameter 'owner' when calling ReposApi.repos_upstream_python_create"
  end
  # verify the required parameter 'identifier' is set
  if @api_client.config.client_side_validation && identifier.nil?
    fail ArgumentError, "Missing the required parameter 'identifier' when calling ReposApi.repos_upstream_python_create"
  end
  # resource path
  local_var_path = '/repos/{owner}/{identifier}/upstream/python/'.sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'identifier' + '}', identifier.to_s)

  # query parameters
  query_params = {}

  # header parameters
  header_params = {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
  # HTTP header 'Content-Type'
  header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])

  # form parameters
  form_params = {}

  # http body (model)
  post_body = @api_client.object_to_http_body(opts[:'data'])
  auth_names = ['apikey']
  data, status_code, headers = @api_client.call_api(:POST, local_var_path,
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => 'PythonUpstream')
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: ReposApi#repos_upstream_python_create\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#repos_upstream_python_delete(owner, identifier, slug_perm, opts = {}) ⇒ nil

Delete a Python upstream config for this repository. Delete a Python upstream config for this repository.

Parameters:

  • owner
  • identifier
  • slug_perm
  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:

  • (nil)


4468
4469
4470
4471
# File 'lib/cloudsmith-api/api/repos_api.rb', line 4468

def repos_upstream_python_delete(owner, identifier, slug_perm, opts = {})
  repos_upstream_python_delete_with_http_info(owner, identifier, slug_perm, opts)
  nil
end

#repos_upstream_python_delete_with_http_info(owner, identifier, slug_perm, opts = {}) ⇒ Array<(nil, Fixnum, Hash)>

Delete a Python upstream config for this repository. Delete a Python upstream config for this repository.

Parameters:

  • owner
  • identifier
  • slug_perm
  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:

  • (Array<(nil, Fixnum, Hash)>)

    nil, response status code and response headers



4480
4481
4482
4483
4484
4485
4486
4487
4488
4489
4490
4491
4492
4493
4494
4495
4496
4497
4498
4499
4500
4501
4502
4503
4504
4505
4506
4507
4508
4509
4510
4511
4512
4513
4514
4515
4516
4517
4518
4519
4520
4521
4522
4523
4524
4525
# File 'lib/cloudsmith-api/api/repos_api.rb', line 4480

def repos_upstream_python_delete_with_http_info(owner, identifier, slug_perm, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: ReposApi.repos_upstream_python_delete ...'
  end
  # verify the required parameter 'owner' is set
  if @api_client.config.client_side_validation && owner.nil?
    fail ArgumentError, "Missing the required parameter 'owner' when calling ReposApi.repos_upstream_python_delete"
  end
  # verify the required parameter 'identifier' is set
  if @api_client.config.client_side_validation && identifier.nil?
    fail ArgumentError, "Missing the required parameter 'identifier' when calling ReposApi.repos_upstream_python_delete"
  end
  # verify the required parameter 'slug_perm' is set
  if @api_client.config.client_side_validation && slug_perm.nil?
    fail ArgumentError, "Missing the required parameter 'slug_perm' when calling ReposApi.repos_upstream_python_delete"
  end
  # resource path
  local_var_path = '/repos/{owner}/{identifier}/upstream/python/{slug_perm}/'.sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'identifier' + '}', identifier.to_s).sub('{' + 'slug_perm' + '}', slug_perm.to_s)

  # query parameters
  query_params = {}

  # header parameters
  header_params = {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
  # HTTP header 'Content-Type'
  header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])

  # form parameters
  form_params = {}

  # http body (model)
  post_body = nil
  auth_names = ['apikey']
  data, status_code, headers = @api_client.call_api(:DELETE, local_var_path,
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names)
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: ReposApi#repos_upstream_python_delete\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#repos_upstream_python_list(owner, identifier, opts = {}) ⇒ Array<PythonUpstream>

List Python upstream configs for this repository. List Python upstream configs for this repository.

Parameters:

  • owner
  • identifier
  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :page (Integer)

    A page number within the paginated result set.

  • :page_size (Integer)

    Number of results to return per page.

Returns:



4534
4535
4536
4537
# File 'lib/cloudsmith-api/api/repos_api.rb', line 4534

def repos_upstream_python_list(owner, identifier, opts = {})
  data, _status_code, _headers = repos_upstream_python_list_with_http_info(owner, identifier, opts)
  data
end

#repos_upstream_python_list_with_http_info(owner, identifier, opts = {}) ⇒ Array<(Array<PythonUpstream>, Fixnum, Hash)>

List Python upstream configs for this repository. List Python upstream configs for this repository.

Parameters:

  • owner
  • identifier
  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :page (Integer)

    A page number within the paginated result set.

  • :page_size (Integer)

    Number of results to return per page.

Returns:

  • (Array<(Array<PythonUpstream>, Fixnum, Hash)>)

    Array<PythonUpstream> data, response status code and response headers



4547
4548
4549
4550
4551
4552
4553
4554
4555
4556
4557
4558
4559
4560
4561
4562
4563
4564
4565
4566
4567
4568
4569
4570
4571
4572
4573
4574
4575
4576
4577
4578
4579
4580
4581
4582
4583
4584
4585
4586
4587
4588
4589
4590
4591
# File 'lib/cloudsmith-api/api/repos_api.rb', line 4547

def repos_upstream_python_list_with_http_info(owner, identifier, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: ReposApi.repos_upstream_python_list ...'
  end
  # verify the required parameter 'owner' is set
  if @api_client.config.client_side_validation && owner.nil?
    fail ArgumentError, "Missing the required parameter 'owner' when calling ReposApi.repos_upstream_python_list"
  end
  # verify the required parameter 'identifier' is set
  if @api_client.config.client_side_validation && identifier.nil?
    fail ArgumentError, "Missing the required parameter 'identifier' when calling ReposApi.repos_upstream_python_list"
  end
  # resource path
  local_var_path = '/repos/{owner}/{identifier}/upstream/python/'.sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'identifier' + '}', identifier.to_s)

  # query parameters
  query_params = {}
  query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil?
  query_params[:'page_size'] = opts[:'page_size'] if !opts[:'page_size'].nil?

  # header parameters
  header_params = {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
  # HTTP header 'Content-Type'
  header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])

  # form parameters
  form_params = {}

  # http body (model)
  post_body = nil
  auth_names = ['apikey']
  data, status_code, headers = @api_client.call_api(:GET, local_var_path,
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => 'Array<PythonUpstream>')
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: ReposApi#repos_upstream_python_list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#repos_upstream_python_partial_update(owner, identifier, slug_perm, opts = {}) ⇒ PythonUpstream

Partially update a Python upstream config for this repository. Partially update a Python upstream config for this repository.

Parameters:

  • owner
  • identifier
  • slug_perm
  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

Returns:



4600
4601
4602
4603
# File 'lib/cloudsmith-api/api/repos_api.rb', line 4600

def repos_upstream_python_partial_update(owner, identifier, slug_perm, opts = {})
  data, _status_code, _headers = repos_upstream_python_partial_update_with_http_info(owner, identifier, slug_perm, opts)
  data
end

#repos_upstream_python_partial_update_with_http_info(owner, identifier, slug_perm, opts = {}) ⇒ Array<(PythonUpstream, Fixnum, Hash)>

Partially update a Python upstream config for this repository. Partially update a Python upstream config for this repository.

Parameters:

  • owner
  • identifier
  • slug_perm
  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

Returns:

  • (Array<(PythonUpstream, Fixnum, Hash)>)

    PythonUpstream data, response status code and response headers



4613
4614
4615
4616
4617
4618
4619
4620
4621
4622
4623
4624
4625
4626
4627
4628
4629
4630
4631
4632
4633
4634
4635
4636
4637
4638
4639
4640
4641
4642
4643
4644
4645
4646
4647
4648
4649
4650
4651
4652
4653
4654
4655
4656
4657
4658
4659
# File 'lib/cloudsmith-api/api/repos_api.rb', line 4613

def repos_upstream_python_partial_update_with_http_info(owner, identifier, slug_perm, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: ReposApi.repos_upstream_python_partial_update ...'
  end
  # verify the required parameter 'owner' is set
  if @api_client.config.client_side_validation && owner.nil?
    fail ArgumentError, "Missing the required parameter 'owner' when calling ReposApi.repos_upstream_python_partial_update"
  end
  # verify the required parameter 'identifier' is set
  if @api_client.config.client_side_validation && identifier.nil?
    fail ArgumentError, "Missing the required parameter 'identifier' when calling ReposApi.repos_upstream_python_partial_update"
  end
  # verify the required parameter 'slug_perm' is set
  if @api_client.config.client_side_validation && slug_perm.nil?
    fail ArgumentError, "Missing the required parameter 'slug_perm' when calling ReposApi.repos_upstream_python_partial_update"
  end
  # resource path
  local_var_path = '/repos/{owner}/{identifier}/upstream/python/{slug_perm}/'.sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'identifier' + '}', identifier.to_s).sub('{' + 'slug_perm' + '}', slug_perm.to_s)

  # query parameters
  query_params = {}

  # header parameters
  header_params = {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
  # HTTP header 'Content-Type'
  header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])

  # form parameters
  form_params = {}

  # http body (model)
  post_body = @api_client.object_to_http_body(opts[:'data'])
  auth_names = ['apikey']
  data, status_code, headers = @api_client.call_api(:PATCH, local_var_path,
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => 'PythonUpstream')
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: ReposApi#repos_upstream_python_partial_update\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#repos_upstream_python_read(owner, identifier, slug_perm, opts = {}) ⇒ PythonUpstream

Retrieve a Python upstream config for this repository. Retrieve a Python upstream config for this repository.

Parameters:

  • owner
  • identifier
  • slug_perm
  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:



4667
4668
4669
4670
# File 'lib/cloudsmith-api/api/repos_api.rb', line 4667

def repos_upstream_python_read(owner, identifier, slug_perm, opts = {})
  data, _status_code, _headers = repos_upstream_python_read_with_http_info(owner, identifier, slug_perm, opts)
  data
end

#repos_upstream_python_read_with_http_info(owner, identifier, slug_perm, opts = {}) ⇒ Array<(PythonUpstream, Fixnum, Hash)>

Retrieve a Python upstream config for this repository. Retrieve a Python upstream config for this repository.

Parameters:

  • owner
  • identifier
  • slug_perm
  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:

  • (Array<(PythonUpstream, Fixnum, Hash)>)

    PythonUpstream data, response status code and response headers



4679
4680
4681
4682
4683
4684
4685
4686
4687
4688
4689
4690
4691
4692
4693
4694
4695
4696
4697
4698
4699
4700
4701
4702
4703
4704
4705
4706
4707
4708
4709
4710
4711
4712
4713
4714
4715
4716
4717
4718
4719
4720
4721
4722
4723
4724
4725
# File 'lib/cloudsmith-api/api/repos_api.rb', line 4679

def repos_upstream_python_read_with_http_info(owner, identifier, slug_perm, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: ReposApi.repos_upstream_python_read ...'
  end
  # verify the required parameter 'owner' is set
  if @api_client.config.client_side_validation && owner.nil?
    fail ArgumentError, "Missing the required parameter 'owner' when calling ReposApi.repos_upstream_python_read"
  end
  # verify the required parameter 'identifier' is set
  if @api_client.config.client_side_validation && identifier.nil?
    fail ArgumentError, "Missing the required parameter 'identifier' when calling ReposApi.repos_upstream_python_read"
  end
  # verify the required parameter 'slug_perm' is set
  if @api_client.config.client_side_validation && slug_perm.nil?
    fail ArgumentError, "Missing the required parameter 'slug_perm' when calling ReposApi.repos_upstream_python_read"
  end
  # resource path
  local_var_path = '/repos/{owner}/{identifier}/upstream/python/{slug_perm}/'.sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'identifier' + '}', identifier.to_s).sub('{' + 'slug_perm' + '}', slug_perm.to_s)

  # query parameters
  query_params = {}

  # header parameters
  header_params = {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
  # HTTP header 'Content-Type'
  header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])

  # form parameters
  form_params = {}

  # http body (model)
  post_body = nil
  auth_names = ['apikey']
  data, status_code, headers = @api_client.call_api(:GET, local_var_path,
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => 'PythonUpstream')
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: ReposApi#repos_upstream_python_read\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#repos_upstream_python_update(owner, identifier, slug_perm, opts = {}) ⇒ PythonUpstream

Update a Python upstream config for this repository. Update a Python upstream config for this repository.

Parameters:

  • owner
  • identifier
  • slug_perm
  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

Returns:



4734
4735
4736
4737
# File 'lib/cloudsmith-api/api/repos_api.rb', line 4734

def repos_upstream_python_update(owner, identifier, slug_perm, opts = {})
  data, _status_code, _headers = repos_upstream_python_update_with_http_info(owner, identifier, slug_perm, opts)
  data
end

#repos_upstream_python_update_with_http_info(owner, identifier, slug_perm, opts = {}) ⇒ Array<(PythonUpstream, Fixnum, Hash)>

Update a Python upstream config for this repository. Update a Python upstream config for this repository.

Parameters:

  • owner
  • identifier
  • slug_perm
  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

Returns:

  • (Array<(PythonUpstream, Fixnum, Hash)>)

    PythonUpstream data, response status code and response headers



4747
4748
4749
4750
4751
4752
4753
4754
4755
4756
4757
4758
4759
4760
4761
4762
4763
4764
4765
4766
4767
4768
4769
4770
4771
4772
4773
4774
4775
4776
4777
4778
4779
4780
4781
4782
4783
4784
4785
4786
4787
4788
4789
4790
4791
4792
4793
# File 'lib/cloudsmith-api/api/repos_api.rb', line 4747

def repos_upstream_python_update_with_http_info(owner, identifier, slug_perm, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: ReposApi.repos_upstream_python_update ...'
  end
  # verify the required parameter 'owner' is set
  if @api_client.config.client_side_validation && owner.nil?
    fail ArgumentError, "Missing the required parameter 'owner' when calling ReposApi.repos_upstream_python_update"
  end
  # verify the required parameter 'identifier' is set
  if @api_client.config.client_side_validation && identifier.nil?
    fail ArgumentError, "Missing the required parameter 'identifier' when calling ReposApi.repos_upstream_python_update"
  end
  # verify the required parameter 'slug_perm' is set
  if @api_client.config.client_side_validation && slug_perm.nil?
    fail ArgumentError, "Missing the required parameter 'slug_perm' when calling ReposApi.repos_upstream_python_update"
  end
  # resource path
  local_var_path = '/repos/{owner}/{identifier}/upstream/python/{slug_perm}/'.sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'identifier' + '}', identifier.to_s).sub('{' + 'slug_perm' + '}', slug_perm.to_s)

  # query parameters
  query_params = {}

  # header parameters
  header_params = {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
  # HTTP header 'Content-Type'
  header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])

  # form parameters
  form_params = {}

  # http body (model)
  post_body = @api_client.object_to_http_body(opts[:'data'])
  auth_names = ['apikey']
  data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => 'PythonUpstream')
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: ReposApi#repos_upstream_python_update\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#repos_upstream_rpm_create(owner, identifier, opts = {}) ⇒ RpmUpstream

Create a RedHat upstream config for this repository. Create a RedHat upstream config for this repository.

Parameters:

  • owner
  • identifier
  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

Returns:



4801
4802
4803
4804
# File 'lib/cloudsmith-api/api/repos_api.rb', line 4801

def repos_upstream_rpm_create(owner, identifier, opts = {})
  data, _status_code, _headers = repos_upstream_rpm_create_with_http_info(owner, identifier, opts)
  data
end

#repos_upstream_rpm_create_with_http_info(owner, identifier, opts = {}) ⇒ Array<(RpmUpstream, Fixnum, Hash)>

Create a RedHat upstream config for this repository. Create a RedHat upstream config for this repository.

Parameters:

  • owner
  • identifier
  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

Returns:

  • (Array<(RpmUpstream, Fixnum, Hash)>)

    RpmUpstream data, response status code and response headers



4813
4814
4815
4816
4817
4818
4819
4820
4821
4822
4823
4824
4825
4826
4827
4828
4829
4830
4831
4832
4833
4834
4835
4836
4837
4838
4839
4840
4841
4842
4843
4844
4845
4846
4847
4848
4849
4850
4851
4852
4853
4854
4855
# File 'lib/cloudsmith-api/api/repos_api.rb', line 4813

def repos_upstream_rpm_create_with_http_info(owner, identifier, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: ReposApi.repos_upstream_rpm_create ...'
  end
  # verify the required parameter 'owner' is set
  if @api_client.config.client_side_validation && owner.nil?
    fail ArgumentError, "Missing the required parameter 'owner' when calling ReposApi.repos_upstream_rpm_create"
  end
  # verify the required parameter 'identifier' is set
  if @api_client.config.client_side_validation && identifier.nil?
    fail ArgumentError, "Missing the required parameter 'identifier' when calling ReposApi.repos_upstream_rpm_create"
  end
  # resource path
  local_var_path = '/repos/{owner}/{identifier}/upstream/rpm/'.sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'identifier' + '}', identifier.to_s)

  # query parameters
  query_params = {}

  # header parameters
  header_params = {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
  # HTTP header 'Content-Type'
  header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])

  # form parameters
  form_params = {}

  # http body (model)
  post_body = @api_client.object_to_http_body(opts[:'data'])
  auth_names = ['apikey']
  data, status_code, headers = @api_client.call_api(:POST, local_var_path,
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => 'RpmUpstream')
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: ReposApi#repos_upstream_rpm_create\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#repos_upstream_rpm_delete(owner, identifier, slug_perm, opts = {}) ⇒ nil

Delete a RedHat upstream config for this repository. Delete a RedHat upstream config for this repository.

Parameters:

  • owner
  • identifier
  • slug_perm
  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:

  • (nil)


4863
4864
4865
4866
# File 'lib/cloudsmith-api/api/repos_api.rb', line 4863

def repos_upstream_rpm_delete(owner, identifier, slug_perm, opts = {})
  repos_upstream_rpm_delete_with_http_info(owner, identifier, slug_perm, opts)
  nil
end

#repos_upstream_rpm_delete_with_http_info(owner, identifier, slug_perm, opts = {}) ⇒ Array<(nil, Fixnum, Hash)>

Delete a RedHat upstream config for this repository. Delete a RedHat upstream config for this repository.

Parameters:

  • owner
  • identifier
  • slug_perm
  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:

  • (Array<(nil, Fixnum, Hash)>)

    nil, response status code and response headers



4875
4876
4877
4878
4879
4880
4881
4882
4883
4884
4885
4886
4887
4888
4889
4890
4891
4892
4893
4894
4895
4896
4897
4898
4899
4900
4901
4902
4903
4904
4905
4906
4907
4908
4909
4910
4911
4912
4913
4914
4915
4916
4917
4918
4919
4920
# File 'lib/cloudsmith-api/api/repos_api.rb', line 4875

def repos_upstream_rpm_delete_with_http_info(owner, identifier, slug_perm, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: ReposApi.repos_upstream_rpm_delete ...'
  end
  # verify the required parameter 'owner' is set
  if @api_client.config.client_side_validation && owner.nil?
    fail ArgumentError, "Missing the required parameter 'owner' when calling ReposApi.repos_upstream_rpm_delete"
  end
  # verify the required parameter 'identifier' is set
  if @api_client.config.client_side_validation && identifier.nil?
    fail ArgumentError, "Missing the required parameter 'identifier' when calling ReposApi.repos_upstream_rpm_delete"
  end
  # verify the required parameter 'slug_perm' is set
  if @api_client.config.client_side_validation && slug_perm.nil?
    fail ArgumentError, "Missing the required parameter 'slug_perm' when calling ReposApi.repos_upstream_rpm_delete"
  end
  # resource path
  local_var_path = '/repos/{owner}/{identifier}/upstream/rpm/{slug_perm}/'.sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'identifier' + '}', identifier.to_s).sub('{' + 'slug_perm' + '}', slug_perm.to_s)

  # query parameters
  query_params = {}

  # header parameters
  header_params = {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
  # HTTP header 'Content-Type'
  header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])

  # form parameters
  form_params = {}

  # http body (model)
  post_body = nil
  auth_names = ['apikey']
  data, status_code, headers = @api_client.call_api(:DELETE, local_var_path,
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names)
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: ReposApi#repos_upstream_rpm_delete\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#repos_upstream_rpm_list(owner, identifier, opts = {}) ⇒ Array<RpmUpstream>

List RedHat upstream configs for this repository. List RedHat upstream configs for this repository.

Parameters:

  • owner
  • identifier
  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :page (Integer)

    A page number within the paginated result set.

  • :page_size (Integer)

    Number of results to return per page.

Returns:



4929
4930
4931
4932
# File 'lib/cloudsmith-api/api/repos_api.rb', line 4929

def repos_upstream_rpm_list(owner, identifier, opts = {})
  data, _status_code, _headers = repos_upstream_rpm_list_with_http_info(owner, identifier, opts)
  data
end

#repos_upstream_rpm_list_with_http_info(owner, identifier, opts = {}) ⇒ Array<(Array<RpmUpstream>, Fixnum, Hash)>

List RedHat upstream configs for this repository. List RedHat upstream configs for this repository.

Parameters:

  • owner
  • identifier
  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :page (Integer)

    A page number within the paginated result set.

  • :page_size (Integer)

    Number of results to return per page.

Returns:

  • (Array<(Array<RpmUpstream>, Fixnum, Hash)>)

    Array<RpmUpstream> data, response status code and response headers



4942
4943
4944
4945
4946
4947
4948
4949
4950
4951
4952
4953
4954
4955
4956
4957
4958
4959
4960
4961
4962
4963
4964
4965
4966
4967
4968
4969
4970
4971
4972
4973
4974
4975
4976
4977
4978
4979
4980
4981
4982
4983
4984
4985
4986
# File 'lib/cloudsmith-api/api/repos_api.rb', line 4942

def repos_upstream_rpm_list_with_http_info(owner, identifier, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: ReposApi.repos_upstream_rpm_list ...'
  end
  # verify the required parameter 'owner' is set
  if @api_client.config.client_side_validation && owner.nil?
    fail ArgumentError, "Missing the required parameter 'owner' when calling ReposApi.repos_upstream_rpm_list"
  end
  # verify the required parameter 'identifier' is set
  if @api_client.config.client_side_validation && identifier.nil?
    fail ArgumentError, "Missing the required parameter 'identifier' when calling ReposApi.repos_upstream_rpm_list"
  end
  # resource path
  local_var_path = '/repos/{owner}/{identifier}/upstream/rpm/'.sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'identifier' + '}', identifier.to_s)

  # query parameters
  query_params = {}
  query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil?
  query_params[:'page_size'] = opts[:'page_size'] if !opts[:'page_size'].nil?

  # header parameters
  header_params = {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
  # HTTP header 'Content-Type'
  header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])

  # form parameters
  form_params = {}

  # http body (model)
  post_body = nil
  auth_names = ['apikey']
  data, status_code, headers = @api_client.call_api(:GET, local_var_path,
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => 'Array<RpmUpstream>')
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: ReposApi#repos_upstream_rpm_list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#repos_upstream_rpm_partial_update(owner, identifier, slug_perm, opts = {}) ⇒ RpmUpstream

Partially update a RedHat upstream config for this repository. Partially update a RedHat upstream config for this repository.

Parameters:

  • owner
  • identifier
  • slug_perm
  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

Returns:



4995
4996
4997
4998
# File 'lib/cloudsmith-api/api/repos_api.rb', line 4995

def repos_upstream_rpm_partial_update(owner, identifier, slug_perm, opts = {})
  data, _status_code, _headers = repos_upstream_rpm_partial_update_with_http_info(owner, identifier, slug_perm, opts)
  data
end

#repos_upstream_rpm_partial_update_with_http_info(owner, identifier, slug_perm, opts = {}) ⇒ Array<(RpmUpstream, Fixnum, Hash)>

Partially update a RedHat upstream config for this repository. Partially update a RedHat upstream config for this repository.

Parameters:

  • owner
  • identifier
  • slug_perm
  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

Returns:

  • (Array<(RpmUpstream, Fixnum, Hash)>)

    RpmUpstream data, response status code and response headers



5008
5009
5010
5011
5012
5013
5014
5015
5016
5017
5018
5019
5020
5021
5022
5023
5024
5025
5026
5027
5028
5029
5030
5031
5032
5033
5034
5035
5036
5037
5038
5039
5040
5041
5042
5043
5044
5045
5046
5047
5048
5049
5050
5051
5052
5053
5054
# File 'lib/cloudsmith-api/api/repos_api.rb', line 5008

def repos_upstream_rpm_partial_update_with_http_info(owner, identifier, slug_perm, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: ReposApi.repos_upstream_rpm_partial_update ...'
  end
  # verify the required parameter 'owner' is set
  if @api_client.config.client_side_validation && owner.nil?
    fail ArgumentError, "Missing the required parameter 'owner' when calling ReposApi.repos_upstream_rpm_partial_update"
  end
  # verify the required parameter 'identifier' is set
  if @api_client.config.client_side_validation && identifier.nil?
    fail ArgumentError, "Missing the required parameter 'identifier' when calling ReposApi.repos_upstream_rpm_partial_update"
  end
  # verify the required parameter 'slug_perm' is set
  if @api_client.config.client_side_validation && slug_perm.nil?
    fail ArgumentError, "Missing the required parameter 'slug_perm' when calling ReposApi.repos_upstream_rpm_partial_update"
  end
  # resource path
  local_var_path = '/repos/{owner}/{identifier}/upstream/rpm/{slug_perm}/'.sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'identifier' + '}', identifier.to_s).sub('{' + 'slug_perm' + '}', slug_perm.to_s)

  # query parameters
  query_params = {}

  # header parameters
  header_params = {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
  # HTTP header 'Content-Type'
  header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])

  # form parameters
  form_params = {}

  # http body (model)
  post_body = @api_client.object_to_http_body(opts[:'data'])
  auth_names = ['apikey']
  data, status_code, headers = @api_client.call_api(:PATCH, local_var_path,
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => 'RpmUpstream')
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: ReposApi#repos_upstream_rpm_partial_update\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#repos_upstream_rpm_read(owner, identifier, slug_perm, opts = {}) ⇒ RpmUpstream

Retrieve a RedHat upstream config for this repository. Retrieve a RedHat upstream config for this repository.

Parameters:

  • owner
  • identifier
  • slug_perm
  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:



5062
5063
5064
5065
# File 'lib/cloudsmith-api/api/repos_api.rb', line 5062

def repos_upstream_rpm_read(owner, identifier, slug_perm, opts = {})
  data, _status_code, _headers = repos_upstream_rpm_read_with_http_info(owner, identifier, slug_perm, opts)
  data
end

#repos_upstream_rpm_read_with_http_info(owner, identifier, slug_perm, opts = {}) ⇒ Array<(RpmUpstream, Fixnum, Hash)>

Retrieve a RedHat upstream config for this repository. Retrieve a RedHat upstream config for this repository.

Parameters:

  • owner
  • identifier
  • slug_perm
  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:

  • (Array<(RpmUpstream, Fixnum, Hash)>)

    RpmUpstream data, response status code and response headers



5074
5075
5076
5077
5078
5079
5080
5081
5082
5083
5084
5085
5086
5087
5088
5089
5090
5091
5092
5093
5094
5095
5096
5097
5098
5099
5100
5101
5102
5103
5104
5105
5106
5107
5108
5109
5110
5111
5112
5113
5114
5115
5116
5117
5118
5119
5120
# File 'lib/cloudsmith-api/api/repos_api.rb', line 5074

def repos_upstream_rpm_read_with_http_info(owner, identifier, slug_perm, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: ReposApi.repos_upstream_rpm_read ...'
  end
  # verify the required parameter 'owner' is set
  if @api_client.config.client_side_validation && owner.nil?
    fail ArgumentError, "Missing the required parameter 'owner' when calling ReposApi.repos_upstream_rpm_read"
  end
  # verify the required parameter 'identifier' is set
  if @api_client.config.client_side_validation && identifier.nil?
    fail ArgumentError, "Missing the required parameter 'identifier' when calling ReposApi.repos_upstream_rpm_read"
  end
  # verify the required parameter 'slug_perm' is set
  if @api_client.config.client_side_validation && slug_perm.nil?
    fail ArgumentError, "Missing the required parameter 'slug_perm' when calling ReposApi.repos_upstream_rpm_read"
  end
  # resource path
  local_var_path = '/repos/{owner}/{identifier}/upstream/rpm/{slug_perm}/'.sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'identifier' + '}', identifier.to_s).sub('{' + 'slug_perm' + '}', slug_perm.to_s)

  # query parameters
  query_params = {}

  # header parameters
  header_params = {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
  # HTTP header 'Content-Type'
  header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])

  # form parameters
  form_params = {}

  # http body (model)
  post_body = nil
  auth_names = ['apikey']
  data, status_code, headers = @api_client.call_api(:GET, local_var_path,
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => 'RpmUpstream')
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: ReposApi#repos_upstream_rpm_read\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#repos_upstream_rpm_update(owner, identifier, slug_perm, opts = {}) ⇒ RpmUpstream

Update a RedHat upstream config for this repository. Update a RedHat upstream config for this repository.

Parameters:

  • owner
  • identifier
  • slug_perm
  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

Returns:



5129
5130
5131
5132
# File 'lib/cloudsmith-api/api/repos_api.rb', line 5129

def repos_upstream_rpm_update(owner, identifier, slug_perm, opts = {})
  data, _status_code, _headers = repos_upstream_rpm_update_with_http_info(owner, identifier, slug_perm, opts)
  data
end

#repos_upstream_rpm_update_with_http_info(owner, identifier, slug_perm, opts = {}) ⇒ Array<(RpmUpstream, Fixnum, Hash)>

Update a RedHat upstream config for this repository. Update a RedHat upstream config for this repository.

Parameters:

  • owner
  • identifier
  • slug_perm
  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

Returns:

  • (Array<(RpmUpstream, Fixnum, Hash)>)

    RpmUpstream data, response status code and response headers



5142
5143
5144
5145
5146
5147
5148
5149
5150
5151
5152
5153
5154
5155
5156
5157
5158
5159
5160
5161
5162
5163
5164
5165
5166
5167
5168
5169
5170
5171
5172
5173
5174
5175
5176
5177
5178
5179
5180
5181
5182
5183
5184
5185
5186
5187
5188
# File 'lib/cloudsmith-api/api/repos_api.rb', line 5142

def repos_upstream_rpm_update_with_http_info(owner, identifier, slug_perm, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: ReposApi.repos_upstream_rpm_update ...'
  end
  # verify the required parameter 'owner' is set
  if @api_client.config.client_side_validation && owner.nil?
    fail ArgumentError, "Missing the required parameter 'owner' when calling ReposApi.repos_upstream_rpm_update"
  end
  # verify the required parameter 'identifier' is set
  if @api_client.config.client_side_validation && identifier.nil?
    fail ArgumentError, "Missing the required parameter 'identifier' when calling ReposApi.repos_upstream_rpm_update"
  end
  # verify the required parameter 'slug_perm' is set
  if @api_client.config.client_side_validation && slug_perm.nil?
    fail ArgumentError, "Missing the required parameter 'slug_perm' when calling ReposApi.repos_upstream_rpm_update"
  end
  # resource path
  local_var_path = '/repos/{owner}/{identifier}/upstream/rpm/{slug_perm}/'.sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'identifier' + '}', identifier.to_s).sub('{' + 'slug_perm' + '}', slug_perm.to_s)

  # query parameters
  query_params = {}

  # header parameters
  header_params = {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
  # HTTP header 'Content-Type'
  header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])

  # form parameters
  form_params = {}

  # http body (model)
  post_body = @api_client.object_to_http_body(opts[:'data'])
  auth_names = ['apikey']
  data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => 'RpmUpstream')
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: ReposApi#repos_upstream_rpm_update\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#repos_upstream_ruby_create(owner, identifier, opts = {}) ⇒ RubyUpstream

Create a Ruby upstream config for this repository. Create a Ruby upstream config for this repository.

Parameters:

  • owner
  • identifier
  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

Returns:



5196
5197
5198
5199
# File 'lib/cloudsmith-api/api/repos_api.rb', line 5196

def repos_upstream_ruby_create(owner, identifier, opts = {})
  data, _status_code, _headers = repos_upstream_ruby_create_with_http_info(owner, identifier, opts)
  data
end

#repos_upstream_ruby_create_with_http_info(owner, identifier, opts = {}) ⇒ Array<(RubyUpstream, Fixnum, Hash)>

Create a Ruby upstream config for this repository. Create a Ruby upstream config for this repository.

Parameters:

  • owner
  • identifier
  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

Returns:

  • (Array<(RubyUpstream, Fixnum, Hash)>)

    RubyUpstream data, response status code and response headers



5208
5209
5210
5211
5212
5213
5214
5215
5216
5217
5218
5219
5220
5221
5222
5223
5224
5225
5226
5227
5228
5229
5230
5231
5232
5233
5234
5235
5236
5237
5238
5239
5240
5241
5242
5243
5244
5245
5246
5247
5248
5249
5250
# File 'lib/cloudsmith-api/api/repos_api.rb', line 5208

def repos_upstream_ruby_create_with_http_info(owner, identifier, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: ReposApi.repos_upstream_ruby_create ...'
  end
  # verify the required parameter 'owner' is set
  if @api_client.config.client_side_validation && owner.nil?
    fail ArgumentError, "Missing the required parameter 'owner' when calling ReposApi.repos_upstream_ruby_create"
  end
  # verify the required parameter 'identifier' is set
  if @api_client.config.client_side_validation && identifier.nil?
    fail ArgumentError, "Missing the required parameter 'identifier' when calling ReposApi.repos_upstream_ruby_create"
  end
  # resource path
  local_var_path = '/repos/{owner}/{identifier}/upstream/ruby/'.sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'identifier' + '}', identifier.to_s)

  # query parameters
  query_params = {}

  # header parameters
  header_params = {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
  # HTTP header 'Content-Type'
  header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])

  # form parameters
  form_params = {}

  # http body (model)
  post_body = @api_client.object_to_http_body(opts[:'data'])
  auth_names = ['apikey']
  data, status_code, headers = @api_client.call_api(:POST, local_var_path,
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => 'RubyUpstream')
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: ReposApi#repos_upstream_ruby_create\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#repos_upstream_ruby_delete(owner, identifier, slug_perm, opts = {}) ⇒ nil

Delete a Ruby upstream config for this repository. Delete a Ruby upstream config for this repository.

Parameters:

  • owner
  • identifier
  • slug_perm
  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:

  • (nil)


5258
5259
5260
5261
# File 'lib/cloudsmith-api/api/repos_api.rb', line 5258

def repos_upstream_ruby_delete(owner, identifier, slug_perm, opts = {})
  repos_upstream_ruby_delete_with_http_info(owner, identifier, slug_perm, opts)
  nil
end

#repos_upstream_ruby_delete_with_http_info(owner, identifier, slug_perm, opts = {}) ⇒ Array<(nil, Fixnum, Hash)>

Delete a Ruby upstream config for this repository. Delete a Ruby upstream config for this repository.

Parameters:

  • owner
  • identifier
  • slug_perm
  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:

  • (Array<(nil, Fixnum, Hash)>)

    nil, response status code and response headers



5270
5271
5272
5273
5274
5275
5276
5277
5278
5279
5280
5281
5282
5283
5284
5285
5286
5287
5288
5289
5290
5291
5292
5293
5294
5295
5296
5297
5298
5299
5300
5301
5302
5303
5304
5305
5306
5307
5308
5309
5310
5311
5312
5313
5314
5315
# File 'lib/cloudsmith-api/api/repos_api.rb', line 5270

def repos_upstream_ruby_delete_with_http_info(owner, identifier, slug_perm, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: ReposApi.repos_upstream_ruby_delete ...'
  end
  # verify the required parameter 'owner' is set
  if @api_client.config.client_side_validation && owner.nil?
    fail ArgumentError, "Missing the required parameter 'owner' when calling ReposApi.repos_upstream_ruby_delete"
  end
  # verify the required parameter 'identifier' is set
  if @api_client.config.client_side_validation && identifier.nil?
    fail ArgumentError, "Missing the required parameter 'identifier' when calling ReposApi.repos_upstream_ruby_delete"
  end
  # verify the required parameter 'slug_perm' is set
  if @api_client.config.client_side_validation && slug_perm.nil?
    fail ArgumentError, "Missing the required parameter 'slug_perm' when calling ReposApi.repos_upstream_ruby_delete"
  end
  # resource path
  local_var_path = '/repos/{owner}/{identifier}/upstream/ruby/{slug_perm}/'.sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'identifier' + '}', identifier.to_s).sub('{' + 'slug_perm' + '}', slug_perm.to_s)

  # query parameters
  query_params = {}

  # header parameters
  header_params = {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
  # HTTP header 'Content-Type'
  header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])

  # form parameters
  form_params = {}

  # http body (model)
  post_body = nil
  auth_names = ['apikey']
  data, status_code, headers = @api_client.call_api(:DELETE, local_var_path,
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names)
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: ReposApi#repos_upstream_ruby_delete\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#repos_upstream_ruby_list(owner, identifier, opts = {}) ⇒ Array<RubyUpstream>

List Ruby upstream configs for this repository. List Ruby upstream configs for this repository.

Parameters:

  • owner
  • identifier
  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :page (Integer)

    A page number within the paginated result set.

  • :page_size (Integer)

    Number of results to return per page.

Returns:



5324
5325
5326
5327
# File 'lib/cloudsmith-api/api/repos_api.rb', line 5324

def repos_upstream_ruby_list(owner, identifier, opts = {})
  data, _status_code, _headers = repos_upstream_ruby_list_with_http_info(owner, identifier, opts)
  data
end

#repos_upstream_ruby_list_with_http_info(owner, identifier, opts = {}) ⇒ Array<(Array<RubyUpstream>, Fixnum, Hash)>

List Ruby upstream configs for this repository. List Ruby upstream configs for this repository.

Parameters:

  • owner
  • identifier
  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :page (Integer)

    A page number within the paginated result set.

  • :page_size (Integer)

    Number of results to return per page.

Returns:

  • (Array<(Array<RubyUpstream>, Fixnum, Hash)>)

    Array<RubyUpstream> data, response status code and response headers



5337
5338
5339
5340
5341
5342
5343
5344
5345
5346
5347
5348
5349
5350
5351
5352
5353
5354
5355
5356
5357
5358
5359
5360
5361
5362
5363
5364
5365
5366
5367
5368
5369
5370
5371
5372
5373
5374
5375
5376
5377
5378
5379
5380
5381
# File 'lib/cloudsmith-api/api/repos_api.rb', line 5337

def repos_upstream_ruby_list_with_http_info(owner, identifier, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: ReposApi.repos_upstream_ruby_list ...'
  end
  # verify the required parameter 'owner' is set
  if @api_client.config.client_side_validation && owner.nil?
    fail ArgumentError, "Missing the required parameter 'owner' when calling ReposApi.repos_upstream_ruby_list"
  end
  # verify the required parameter 'identifier' is set
  if @api_client.config.client_side_validation && identifier.nil?
    fail ArgumentError, "Missing the required parameter 'identifier' when calling ReposApi.repos_upstream_ruby_list"
  end
  # resource path
  local_var_path = '/repos/{owner}/{identifier}/upstream/ruby/'.sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'identifier' + '}', identifier.to_s)

  # query parameters
  query_params = {}
  query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil?
  query_params[:'page_size'] = opts[:'page_size'] if !opts[:'page_size'].nil?

  # header parameters
  header_params = {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
  # HTTP header 'Content-Type'
  header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])

  # form parameters
  form_params = {}

  # http body (model)
  post_body = nil
  auth_names = ['apikey']
  data, status_code, headers = @api_client.call_api(:GET, local_var_path,
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => 'Array<RubyUpstream>')
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: ReposApi#repos_upstream_ruby_list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#repos_upstream_ruby_partial_update(owner, identifier, slug_perm, opts = {}) ⇒ RubyUpstream

Partially update a Ruby upstream config for this repository. Partially update a Ruby upstream config for this repository.

Parameters:

  • owner
  • identifier
  • slug_perm
  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

Returns:



5390
5391
5392
5393
# File 'lib/cloudsmith-api/api/repos_api.rb', line 5390

def repos_upstream_ruby_partial_update(owner, identifier, slug_perm, opts = {})
  data, _status_code, _headers = repos_upstream_ruby_partial_update_with_http_info(owner, identifier, slug_perm, opts)
  data
end

#repos_upstream_ruby_partial_update_with_http_info(owner, identifier, slug_perm, opts = {}) ⇒ Array<(RubyUpstream, Fixnum, Hash)>

Partially update a Ruby upstream config for this repository. Partially update a Ruby upstream config for this repository.

Parameters:

  • owner
  • identifier
  • slug_perm
  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

Returns:

  • (Array<(RubyUpstream, Fixnum, Hash)>)

    RubyUpstream data, response status code and response headers



5403
5404
5405
5406
5407
5408
5409
5410
5411
5412
5413
5414
5415
5416
5417
5418
5419
5420
5421
5422
5423
5424
5425
5426
5427
5428
5429
5430
5431
5432
5433
5434
5435
5436
5437
5438
5439
5440
5441
5442
5443
5444
5445
5446
5447
5448
5449
# File 'lib/cloudsmith-api/api/repos_api.rb', line 5403

def repos_upstream_ruby_partial_update_with_http_info(owner, identifier, slug_perm, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: ReposApi.repos_upstream_ruby_partial_update ...'
  end
  # verify the required parameter 'owner' is set
  if @api_client.config.client_side_validation && owner.nil?
    fail ArgumentError, "Missing the required parameter 'owner' when calling ReposApi.repos_upstream_ruby_partial_update"
  end
  # verify the required parameter 'identifier' is set
  if @api_client.config.client_side_validation && identifier.nil?
    fail ArgumentError, "Missing the required parameter 'identifier' when calling ReposApi.repos_upstream_ruby_partial_update"
  end
  # verify the required parameter 'slug_perm' is set
  if @api_client.config.client_side_validation && slug_perm.nil?
    fail ArgumentError, "Missing the required parameter 'slug_perm' when calling ReposApi.repos_upstream_ruby_partial_update"
  end
  # resource path
  local_var_path = '/repos/{owner}/{identifier}/upstream/ruby/{slug_perm}/'.sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'identifier' + '}', identifier.to_s).sub('{' + 'slug_perm' + '}', slug_perm.to_s)

  # query parameters
  query_params = {}

  # header parameters
  header_params = {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
  # HTTP header 'Content-Type'
  header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])

  # form parameters
  form_params = {}

  # http body (model)
  post_body = @api_client.object_to_http_body(opts[:'data'])
  auth_names = ['apikey']
  data, status_code, headers = @api_client.call_api(:PATCH, local_var_path,
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => 'RubyUpstream')
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: ReposApi#repos_upstream_ruby_partial_update\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#repos_upstream_ruby_read(owner, identifier, slug_perm, opts = {}) ⇒ RubyUpstream

Retrieve a Ruby upstream config for this repository. Retrieve a Ruby upstream config for this repository.

Parameters:

  • owner
  • identifier
  • slug_perm
  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:



5457
5458
5459
5460
# File 'lib/cloudsmith-api/api/repos_api.rb', line 5457

def repos_upstream_ruby_read(owner, identifier, slug_perm, opts = {})
  data, _status_code, _headers = repos_upstream_ruby_read_with_http_info(owner, identifier, slug_perm, opts)
  data
end

#repos_upstream_ruby_read_with_http_info(owner, identifier, slug_perm, opts = {}) ⇒ Array<(RubyUpstream, Fixnum, Hash)>

Retrieve a Ruby upstream config for this repository. Retrieve a Ruby upstream config for this repository.

Parameters:

  • owner
  • identifier
  • slug_perm
  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:

  • (Array<(RubyUpstream, Fixnum, Hash)>)

    RubyUpstream data, response status code and response headers



5469
5470
5471
5472
5473
5474
5475
5476
5477
5478
5479
5480
5481
5482
5483
5484
5485
5486
5487
5488
5489
5490
5491
5492
5493
5494
5495
5496
5497
5498
5499
5500
5501
5502
5503
5504
5505
5506
5507
5508
5509
5510
5511
5512
5513
5514
5515
# File 'lib/cloudsmith-api/api/repos_api.rb', line 5469

def repos_upstream_ruby_read_with_http_info(owner, identifier, slug_perm, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: ReposApi.repos_upstream_ruby_read ...'
  end
  # verify the required parameter 'owner' is set
  if @api_client.config.client_side_validation && owner.nil?
    fail ArgumentError, "Missing the required parameter 'owner' when calling ReposApi.repos_upstream_ruby_read"
  end
  # verify the required parameter 'identifier' is set
  if @api_client.config.client_side_validation && identifier.nil?
    fail ArgumentError, "Missing the required parameter 'identifier' when calling ReposApi.repos_upstream_ruby_read"
  end
  # verify the required parameter 'slug_perm' is set
  if @api_client.config.client_side_validation && slug_perm.nil?
    fail ArgumentError, "Missing the required parameter 'slug_perm' when calling ReposApi.repos_upstream_ruby_read"
  end
  # resource path
  local_var_path = '/repos/{owner}/{identifier}/upstream/ruby/{slug_perm}/'.sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'identifier' + '}', identifier.to_s).sub('{' + 'slug_perm' + '}', slug_perm.to_s)

  # query parameters
  query_params = {}

  # header parameters
  header_params = {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
  # HTTP header 'Content-Type'
  header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])

  # form parameters
  form_params = {}

  # http body (model)
  post_body = nil
  auth_names = ['apikey']
  data, status_code, headers = @api_client.call_api(:GET, local_var_path,
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => 'RubyUpstream')
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: ReposApi#repos_upstream_ruby_read\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#repos_upstream_ruby_update(owner, identifier, slug_perm, opts = {}) ⇒ RubyUpstream

Update a Ruby upstream config for this repository. Update a Ruby upstream config for this repository.

Parameters:

  • owner
  • identifier
  • slug_perm
  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

Returns:



5524
5525
5526
5527
# File 'lib/cloudsmith-api/api/repos_api.rb', line 5524

def repos_upstream_ruby_update(owner, identifier, slug_perm, opts = {})
  data, _status_code, _headers = repos_upstream_ruby_update_with_http_info(owner, identifier, slug_perm, opts)
  data
end

#repos_upstream_ruby_update_with_http_info(owner, identifier, slug_perm, opts = {}) ⇒ Array<(RubyUpstream, Fixnum, Hash)>

Update a Ruby upstream config for this repository. Update a Ruby upstream config for this repository.

Parameters:

  • owner
  • identifier
  • slug_perm
  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

Returns:

  • (Array<(RubyUpstream, Fixnum, Hash)>)

    RubyUpstream data, response status code and response headers



5537
5538
5539
5540
5541
5542
5543
5544
5545
5546
5547
5548
5549
5550
5551
5552
5553
5554
5555
5556
5557
5558
5559
5560
5561
5562
5563
5564
5565
5566
5567
5568
5569
5570
5571
5572
5573
5574
5575
5576
5577
5578
5579
5580
5581
5582
5583
# File 'lib/cloudsmith-api/api/repos_api.rb', line 5537

def repos_upstream_ruby_update_with_http_info(owner, identifier, slug_perm, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: ReposApi.repos_upstream_ruby_update ...'
  end
  # verify the required parameter 'owner' is set
  if @api_client.config.client_side_validation && owner.nil?
    fail ArgumentError, "Missing the required parameter 'owner' when calling ReposApi.repos_upstream_ruby_update"
  end
  # verify the required parameter 'identifier' is set
  if @api_client.config.client_side_validation && identifier.nil?
    fail ArgumentError, "Missing the required parameter 'identifier' when calling ReposApi.repos_upstream_ruby_update"
  end
  # verify the required parameter 'slug_perm' is set
  if @api_client.config.client_side_validation && slug_perm.nil?
    fail ArgumentError, "Missing the required parameter 'slug_perm' when calling ReposApi.repos_upstream_ruby_update"
  end
  # resource path
  local_var_path = '/repos/{owner}/{identifier}/upstream/ruby/{slug_perm}/'.sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'identifier' + '}', identifier.to_s).sub('{' + 'slug_perm' + '}', slug_perm.to_s)

  # query parameters
  query_params = {}

  # header parameters
  header_params = {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
  # HTTP header 'Content-Type'
  header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])

  # form parameters
  form_params = {}

  # http body (model)
  post_body = @api_client.object_to_http_body(opts[:'data'])
  auth_names = ['apikey']
  data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => 'RubyUpstream')
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: ReposApi#repos_upstream_ruby_update\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#repos_upstream_swift_create(owner, identifier, opts = {}) ⇒ SwiftUpstream

Create a Swift upstream config for this repository. Create a Swift upstream config for this repository.

Parameters:

  • owner
  • identifier
  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

Returns:



5591
5592
5593
5594
# File 'lib/cloudsmith-api/api/repos_api.rb', line 5591

def repos_upstream_swift_create(owner, identifier, opts = {})
  data, _status_code, _headers = repos_upstream_swift_create_with_http_info(owner, identifier, opts)
  data
end

#repos_upstream_swift_create_with_http_info(owner, identifier, opts = {}) ⇒ Array<(SwiftUpstream, Fixnum, Hash)>

Create a Swift upstream config for this repository. Create a Swift upstream config for this repository.

Parameters:

  • owner
  • identifier
  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

Returns:

  • (Array<(SwiftUpstream, Fixnum, Hash)>)

    SwiftUpstream data, response status code and response headers



5603
5604
5605
5606
5607
5608
5609
5610
5611
5612
5613
5614
5615
5616
5617
5618
5619
5620
5621
5622
5623
5624
5625
5626
5627
5628
5629
5630
5631
5632
5633
5634
5635
5636
5637
5638
5639
5640
5641
5642
5643
5644
5645
# File 'lib/cloudsmith-api/api/repos_api.rb', line 5603

def repos_upstream_swift_create_with_http_info(owner, identifier, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: ReposApi.repos_upstream_swift_create ...'
  end
  # verify the required parameter 'owner' is set
  if @api_client.config.client_side_validation && owner.nil?
    fail ArgumentError, "Missing the required parameter 'owner' when calling ReposApi.repos_upstream_swift_create"
  end
  # verify the required parameter 'identifier' is set
  if @api_client.config.client_side_validation && identifier.nil?
    fail ArgumentError, "Missing the required parameter 'identifier' when calling ReposApi.repos_upstream_swift_create"
  end
  # resource path
  local_var_path = '/repos/{owner}/{identifier}/upstream/swift/'.sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'identifier' + '}', identifier.to_s)

  # query parameters
  query_params = {}

  # header parameters
  header_params = {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
  # HTTP header 'Content-Type'
  header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])

  # form parameters
  form_params = {}

  # http body (model)
  post_body = @api_client.object_to_http_body(opts[:'data'])
  auth_names = ['apikey']
  data, status_code, headers = @api_client.call_api(:POST, local_var_path,
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => 'SwiftUpstream')
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: ReposApi#repos_upstream_swift_create\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#repos_upstream_swift_delete(owner, identifier, slug_perm, opts = {}) ⇒ nil

Delete a Swift upstream config for this repository. Delete a Swift upstream config for this repository.

Parameters:

  • owner
  • identifier
  • slug_perm
  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:

  • (nil)


5653
5654
5655
5656
# File 'lib/cloudsmith-api/api/repos_api.rb', line 5653

def repos_upstream_swift_delete(owner, identifier, slug_perm, opts = {})
  repos_upstream_swift_delete_with_http_info(owner, identifier, slug_perm, opts)
  nil
end

#repos_upstream_swift_delete_with_http_info(owner, identifier, slug_perm, opts = {}) ⇒ Array<(nil, Fixnum, Hash)>

Delete a Swift upstream config for this repository. Delete a Swift upstream config for this repository.

Parameters:

  • owner
  • identifier
  • slug_perm
  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:

  • (Array<(nil, Fixnum, Hash)>)

    nil, response status code and response headers



5665
5666
5667
5668
5669
5670
5671
5672
5673
5674
5675
5676
5677
5678
5679
5680
5681
5682
5683
5684
5685
5686
5687
5688
5689
5690
5691
5692
5693
5694
5695
5696
5697
5698
5699
5700
5701
5702
5703
5704
5705
5706
5707
5708
5709
5710
# File 'lib/cloudsmith-api/api/repos_api.rb', line 5665

def repos_upstream_swift_delete_with_http_info(owner, identifier, slug_perm, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: ReposApi.repos_upstream_swift_delete ...'
  end
  # verify the required parameter 'owner' is set
  if @api_client.config.client_side_validation && owner.nil?
    fail ArgumentError, "Missing the required parameter 'owner' when calling ReposApi.repos_upstream_swift_delete"
  end
  # verify the required parameter 'identifier' is set
  if @api_client.config.client_side_validation && identifier.nil?
    fail ArgumentError, "Missing the required parameter 'identifier' when calling ReposApi.repos_upstream_swift_delete"
  end
  # verify the required parameter 'slug_perm' is set
  if @api_client.config.client_side_validation && slug_perm.nil?
    fail ArgumentError, "Missing the required parameter 'slug_perm' when calling ReposApi.repos_upstream_swift_delete"
  end
  # resource path
  local_var_path = '/repos/{owner}/{identifier}/upstream/swift/{slug_perm}/'.sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'identifier' + '}', identifier.to_s).sub('{' + 'slug_perm' + '}', slug_perm.to_s)

  # query parameters
  query_params = {}

  # header parameters
  header_params = {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
  # HTTP header 'Content-Type'
  header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])

  # form parameters
  form_params = {}

  # http body (model)
  post_body = nil
  auth_names = ['apikey']
  data, status_code, headers = @api_client.call_api(:DELETE, local_var_path,
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names)
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: ReposApi#repos_upstream_swift_delete\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#repos_upstream_swift_list(owner, identifier, opts = {}) ⇒ Array<SwiftUpstream>

List Swift upstream configs for this repository. List Swift upstream configs for this repository.

Parameters:

  • owner
  • identifier
  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :page (Integer)

    A page number within the paginated result set.

  • :page_size (Integer)

    Number of results to return per page.

Returns:



5719
5720
5721
5722
# File 'lib/cloudsmith-api/api/repos_api.rb', line 5719

def repos_upstream_swift_list(owner, identifier, opts = {})
  data, _status_code, _headers = repos_upstream_swift_list_with_http_info(owner, identifier, opts)
  data
end

#repos_upstream_swift_list_with_http_info(owner, identifier, opts = {}) ⇒ Array<(Array<SwiftUpstream>, Fixnum, Hash)>

List Swift upstream configs for this repository. List Swift upstream configs for this repository.

Parameters:

  • owner
  • identifier
  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :page (Integer)

    A page number within the paginated result set.

  • :page_size (Integer)

    Number of results to return per page.

Returns:

  • (Array<(Array<SwiftUpstream>, Fixnum, Hash)>)

    Array<SwiftUpstream> data, response status code and response headers



5732
5733
5734
5735
5736
5737
5738
5739
5740
5741
5742
5743
5744
5745
5746
5747
5748
5749
5750
5751
5752
5753
5754
5755
5756
5757
5758
5759
5760
5761
5762
5763
5764
5765
5766
5767
5768
5769
5770
5771
5772
5773
5774
5775
5776
# File 'lib/cloudsmith-api/api/repos_api.rb', line 5732

def repos_upstream_swift_list_with_http_info(owner, identifier, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: ReposApi.repos_upstream_swift_list ...'
  end
  # verify the required parameter 'owner' is set
  if @api_client.config.client_side_validation && owner.nil?
    fail ArgumentError, "Missing the required parameter 'owner' when calling ReposApi.repos_upstream_swift_list"
  end
  # verify the required parameter 'identifier' is set
  if @api_client.config.client_side_validation && identifier.nil?
    fail ArgumentError, "Missing the required parameter 'identifier' when calling ReposApi.repos_upstream_swift_list"
  end
  # resource path
  local_var_path = '/repos/{owner}/{identifier}/upstream/swift/'.sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'identifier' + '}', identifier.to_s)

  # query parameters
  query_params = {}
  query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil?
  query_params[:'page_size'] = opts[:'page_size'] if !opts[:'page_size'].nil?

  # header parameters
  header_params = {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
  # HTTP header 'Content-Type'
  header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])

  # form parameters
  form_params = {}

  # http body (model)
  post_body = nil
  auth_names = ['apikey']
  data, status_code, headers = @api_client.call_api(:GET, local_var_path,
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => 'Array<SwiftUpstream>')
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: ReposApi#repos_upstream_swift_list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#repos_upstream_swift_partial_update(owner, identifier, slug_perm, opts = {}) ⇒ SwiftUpstream

Partially update a Swift upstream config for this repository. Partially update a Swift upstream config for this repository.

Parameters:

  • owner
  • identifier
  • slug_perm
  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

Returns:



5785
5786
5787
5788
# File 'lib/cloudsmith-api/api/repos_api.rb', line 5785

def repos_upstream_swift_partial_update(owner, identifier, slug_perm, opts = {})
  data, _status_code, _headers = repos_upstream_swift_partial_update_with_http_info(owner, identifier, slug_perm, opts)
  data
end

#repos_upstream_swift_partial_update_with_http_info(owner, identifier, slug_perm, opts = {}) ⇒ Array<(SwiftUpstream, Fixnum, Hash)>

Partially update a Swift upstream config for this repository. Partially update a Swift upstream config for this repository.

Parameters:

  • owner
  • identifier
  • slug_perm
  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

Returns:

  • (Array<(SwiftUpstream, Fixnum, Hash)>)

    SwiftUpstream data, response status code and response headers



5798
5799
5800
5801
5802
5803
5804
5805
5806
5807
5808
5809
5810
5811
5812
5813
5814
5815
5816
5817
5818
5819
5820
5821
5822
5823
5824
5825
5826
5827
5828
5829
5830
5831
5832
5833
5834
5835
5836
5837
5838
5839
5840
5841
5842
5843
5844
# File 'lib/cloudsmith-api/api/repos_api.rb', line 5798

def repos_upstream_swift_partial_update_with_http_info(owner, identifier, slug_perm, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: ReposApi.repos_upstream_swift_partial_update ...'
  end
  # verify the required parameter 'owner' is set
  if @api_client.config.client_side_validation && owner.nil?
    fail ArgumentError, "Missing the required parameter 'owner' when calling ReposApi.repos_upstream_swift_partial_update"
  end
  # verify the required parameter 'identifier' is set
  if @api_client.config.client_side_validation && identifier.nil?
    fail ArgumentError, "Missing the required parameter 'identifier' when calling ReposApi.repos_upstream_swift_partial_update"
  end
  # verify the required parameter 'slug_perm' is set
  if @api_client.config.client_side_validation && slug_perm.nil?
    fail ArgumentError, "Missing the required parameter 'slug_perm' when calling ReposApi.repos_upstream_swift_partial_update"
  end
  # resource path
  local_var_path = '/repos/{owner}/{identifier}/upstream/swift/{slug_perm}/'.sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'identifier' + '}', identifier.to_s).sub('{' + 'slug_perm' + '}', slug_perm.to_s)

  # query parameters
  query_params = {}

  # header parameters
  header_params = {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
  # HTTP header 'Content-Type'
  header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])

  # form parameters
  form_params = {}

  # http body (model)
  post_body = @api_client.object_to_http_body(opts[:'data'])
  auth_names = ['apikey']
  data, status_code, headers = @api_client.call_api(:PATCH, local_var_path,
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => 'SwiftUpstream')
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: ReposApi#repos_upstream_swift_partial_update\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#repos_upstream_swift_read(owner, identifier, slug_perm, opts = {}) ⇒ SwiftUpstream

Retrieve a Swift upstream config for this repository. Retrieve a Swift upstream config for this repository.

Parameters:

  • owner
  • identifier
  • slug_perm
  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:



5852
5853
5854
5855
# File 'lib/cloudsmith-api/api/repos_api.rb', line 5852

def repos_upstream_swift_read(owner, identifier, slug_perm, opts = {})
  data, _status_code, _headers = repos_upstream_swift_read_with_http_info(owner, identifier, slug_perm, opts)
  data
end

#repos_upstream_swift_read_with_http_info(owner, identifier, slug_perm, opts = {}) ⇒ Array<(SwiftUpstream, Fixnum, Hash)>

Retrieve a Swift upstream config for this repository. Retrieve a Swift upstream config for this repository.

Parameters:

  • owner
  • identifier
  • slug_perm
  • opts (Hash) (defaults to: {})

    the optional parameters

Returns:

  • (Array<(SwiftUpstream, Fixnum, Hash)>)

    SwiftUpstream data, response status code and response headers



5864
5865
5866
5867
5868
5869
5870
5871
5872
5873
5874
5875
5876
5877
5878
5879
5880
5881
5882
5883
5884
5885
5886
5887
5888
5889
5890
5891
5892
5893
5894
5895
5896
5897
5898
5899
5900
5901
5902
5903
5904
5905
5906
5907
5908
5909
5910
# File 'lib/cloudsmith-api/api/repos_api.rb', line 5864

def repos_upstream_swift_read_with_http_info(owner, identifier, slug_perm, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: ReposApi.repos_upstream_swift_read ...'
  end
  # verify the required parameter 'owner' is set
  if @api_client.config.client_side_validation && owner.nil?
    fail ArgumentError, "Missing the required parameter 'owner' when calling ReposApi.repos_upstream_swift_read"
  end
  # verify the required parameter 'identifier' is set
  if @api_client.config.client_side_validation && identifier.nil?
    fail ArgumentError, "Missing the required parameter 'identifier' when calling ReposApi.repos_upstream_swift_read"
  end
  # verify the required parameter 'slug_perm' is set
  if @api_client.config.client_side_validation && slug_perm.nil?
    fail ArgumentError, "Missing the required parameter 'slug_perm' when calling ReposApi.repos_upstream_swift_read"
  end
  # resource path
  local_var_path = '/repos/{owner}/{identifier}/upstream/swift/{slug_perm}/'.sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'identifier' + '}', identifier.to_s).sub('{' + 'slug_perm' + '}', slug_perm.to_s)

  # query parameters
  query_params = {}

  # header parameters
  header_params = {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
  # HTTP header 'Content-Type'
  header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])

  # form parameters
  form_params = {}

  # http body (model)
  post_body = nil
  auth_names = ['apikey']
  data, status_code, headers = @api_client.call_api(:GET, local_var_path,
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => 'SwiftUpstream')
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: ReposApi#repos_upstream_swift_read\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#repos_upstream_swift_update(owner, identifier, slug_perm, opts = {}) ⇒ SwiftUpstream

Update a Swift upstream config for this repository. Update a Swift upstream config for this repository.

Parameters:

  • owner
  • identifier
  • slug_perm
  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

Returns:



5919
5920
5921
5922
# File 'lib/cloudsmith-api/api/repos_api.rb', line 5919

def repos_upstream_swift_update(owner, identifier, slug_perm, opts = {})
  data, _status_code, _headers = repos_upstream_swift_update_with_http_info(owner, identifier, slug_perm, opts)
  data
end

#repos_upstream_swift_update_with_http_info(owner, identifier, slug_perm, opts = {}) ⇒ Array<(SwiftUpstream, Fixnum, Hash)>

Update a Swift upstream config for this repository. Update a Swift upstream config for this repository.

Parameters:

  • owner
  • identifier
  • slug_perm
  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

Returns:

  • (Array<(SwiftUpstream, Fixnum, Hash)>)

    SwiftUpstream data, response status code and response headers



5932
5933
5934
5935
5936
5937
5938
5939
5940
5941
5942
5943
5944
5945
5946
5947
5948
5949
5950
5951
5952
5953
5954
5955
5956
5957
5958
5959
5960
5961
5962
5963
5964
5965
5966
5967
5968
5969
5970
5971
5972
5973
5974
5975
5976
5977
5978
# File 'lib/cloudsmith-api/api/repos_api.rb', line 5932

def repos_upstream_swift_update_with_http_info(owner, identifier, slug_perm, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: ReposApi.repos_upstream_swift_update ...'
  end
  # verify the required parameter 'owner' is set
  if @api_client.config.client_side_validation && owner.nil?
    fail ArgumentError, "Missing the required parameter 'owner' when calling ReposApi.repos_upstream_swift_update"
  end
  # verify the required parameter 'identifier' is set
  if @api_client.config.client_side_validation && identifier.nil?
    fail ArgumentError, "Missing the required parameter 'identifier' when calling ReposApi.repos_upstream_swift_update"
  end
  # verify the required parameter 'slug_perm' is set
  if @api_client.config.client_side_validation && slug_perm.nil?
    fail ArgumentError, "Missing the required parameter 'slug_perm' when calling ReposApi.repos_upstream_swift_update"
  end
  # resource path
  local_var_path = '/repos/{owner}/{identifier}/upstream/swift/{slug_perm}/'.sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'identifier' + '}', identifier.to_s).sub('{' + 'slug_perm' + '}', slug_perm.to_s)

  # query parameters
  query_params = {}

  # header parameters
  header_params = {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
  # HTTP header 'Content-Type'
  header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])

  # form parameters
  form_params = {}

  # http body (model)
  post_body = @api_client.object_to_http_body(opts[:'data'])
  auth_names = ['apikey']
  data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => 'SwiftUpstream')
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: ReposApi#repos_upstream_swift_update\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end

#repos_user_list(opts = {}) ⇒ Array<Repository>

Get a list of all repositories associated with current user. Get a list of all repositories associated with current user.

Parameters:

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :page (Integer)

    A page number within the paginated result set.

  • :page_size (Integer)

    Number of results to return per page.

Returns:



5985
5986
5987
5988
# File 'lib/cloudsmith-api/api/repos_api.rb', line 5985

def repos_user_list(opts = {})
  data, _status_code, _headers = repos_user_list_with_http_info(opts)
  data
end

#repos_user_list_with_http_info(opts = {}) ⇒ Array<(Array<Repository>, Fixnum, Hash)>

Get a list of all repositories associated with current user. Get a list of all repositories associated with current user.

Parameters:

  • opts (Hash) (defaults to: {})

    the optional parameters

Options Hash (opts):

  • :page (Integer)

    A page number within the paginated result set.

  • :page_size (Integer)

    Number of results to return per page.

Returns:

  • (Array<(Array<Repository>, Fixnum, Hash)>)

    Array<Repository> data, response status code and response headers



5996
5997
5998
5999
6000
6001
6002
6003
6004
6005
6006
6007
6008
6009
6010
6011
6012
6013
6014
6015
6016
6017
6018
6019
6020
6021
6022
6023
6024
6025
6026
6027
6028
6029
6030
6031
6032
# File 'lib/cloudsmith-api/api/repos_api.rb', line 5996

def repos_user_list_with_http_info(opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: ReposApi.repos_user_list ...'
  end
  # resource path
  local_var_path = '/repos/'

  # query parameters
  query_params = {}
  query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil?
  query_params[:'page_size'] = opts[:'page_size'] if !opts[:'page_size'].nil?

  # header parameters
  header_params = {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
  # HTTP header 'Content-Type'
  header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])

  # form parameters
  form_params = {}

  # http body (model)
  post_body = nil
  auth_names = ['apikey']
  data, status_code, headers = @api_client.call_api(:GET, local_var_path,
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :auth_names => auth_names,
    :return_type => 'Array<Repository>')
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: ReposApi#repos_user_list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
  end
  return data, status_code, headers
end