cloudsmith-api 2.0.38 → 2.0.39
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/README.md +14 -4
- data/build.json +1 -1
- data/docs/OrganizationApiKeyRule.md +1 -1
- data/docs/ReposApi.md +401 -0
- data/docs/Service.md +1 -1
- data/docs/SkillsUpstream.md +34 -0
- data/docs/SkillsUpstreamRequest.md +22 -0
- data/docs/SkillsUpstreamRequestPatch.md +22 -0
- data/docs/SkillsUpstreamSelection.md +10 -0
- data/lib/cloudsmith-api/api/repos_api.rb +395 -0
- data/lib/cloudsmith-api/models/organization_api_key_rule.rb +1 -1
- data/lib/cloudsmith-api/models/service.rb +1 -1
- data/lib/cloudsmith-api/models/skills_upstream.rb +532 -0
- data/lib/cloudsmith-api/models/skills_upstream_request.rb +401 -0
- data/lib/cloudsmith-api/models/skills_upstream_request_patch.rb +391 -0
- data/lib/cloudsmith-api/models/skills_upstream_selection.rb +220 -0
- data/lib/cloudsmith-api/version.rb +1 -1
- data/lib/cloudsmith-api.rb +4 -0
- data/spec/api/repos_api_spec.rb +87 -0
- data/spec/models/skills_upstream_request_patch_spec.rb +137 -0
- data/spec/models/skills_upstream_request_spec.rb +137 -0
- data/spec/models/skills_upstream_selection_spec.rb +53 -0
- data/spec/models/skills_upstream_spec.rb +213 -0
- data/vendor/bundle/ruby/2.6.0/extensions/x86_64-linux/2.6.0/autotest-fsevent-0.3.2/gem_make.out +1 -1
- data/vendor/bundle/ruby/2.6.0/extensions/x86_64-linux/2.6.0/bigdecimal-4.1.3/gem_make.out +2 -2
- data/vendor/bundle/ruby/2.6.0/extensions/x86_64-linux/2.6.0/bigdecimal-4.1.3/mkmf.log +4 -4
- data/vendor/bundle/ruby/2.6.0/extensions/x86_64-linux/2.6.0/ffi-1.17.4/gem_make.out +2 -2
- data/vendor/bundle/ruby/2.6.0/extensions/x86_64-linux/2.6.0/ffi-1.17.4/mkmf.log +1 -1
- data/vendor/bundle/ruby/2.6.0/extensions/x86_64-linux/2.6.0/json-2.7.6/gem_make.out +2 -2
- data/vendor/bundle/ruby/2.6.0/extensions/x86_64-linux/2.6.0/json-2.7.6/mkmf.log +1 -1
- data/vendor/bundle/ruby/2.6.0/gems/bigdecimal-4.1.3/ext/bigdecimal/Makefile +2 -2
- data/vendor/bundle/ruby/2.6.0/gems/ffi-1.17.4/ext/ffi_c/Makefile +2 -2
- data/vendor/bundle/ruby/2.6.0/gems/json-2.7.6/ext/json/ext/generator/Makefile +2 -2
- data/vendor/bundle/ruby/2.6.0/gems/json-2.7.6/ext/json/ext/parser/Makefile +2 -2
- metadata +18 -2
|
@@ -10142,6 +10142,401 @@ module CloudsmithApi
|
|
|
10142
10142
|
end
|
|
10143
10143
|
return data, status_code, headers
|
|
10144
10144
|
end
|
|
10145
|
+
# Create an AI Skills upstream config for this repository.
|
|
10146
|
+
# Create an AI Skills upstream config for this repository.
|
|
10147
|
+
# @param owner
|
|
10148
|
+
# @param identifier
|
|
10149
|
+
# @param [Hash] opts the optional parameters
|
|
10150
|
+
# @option opts [SkillsUpstreamRequest] :data
|
|
10151
|
+
# @return [SkillsUpstream]
|
|
10152
|
+
def repos_upstream_skills_create(owner, identifier, opts = {})
|
|
10153
|
+
data, _status_code, _headers = repos_upstream_skills_create_with_http_info(owner, identifier, opts)
|
|
10154
|
+
data
|
|
10155
|
+
end
|
|
10156
|
+
|
|
10157
|
+
# Create an AI Skills upstream config for this repository.
|
|
10158
|
+
# Create an AI Skills upstream config for this repository.
|
|
10159
|
+
# @param owner
|
|
10160
|
+
# @param identifier
|
|
10161
|
+
# @param [Hash] opts the optional parameters
|
|
10162
|
+
# @option opts [SkillsUpstreamRequest] :data
|
|
10163
|
+
# @return [Array<(SkillsUpstream, Fixnum, Hash)>] SkillsUpstream data, response status code and response headers
|
|
10164
|
+
def repos_upstream_skills_create_with_http_info(owner, identifier, opts = {})
|
|
10165
|
+
if @api_client.config.debugging
|
|
10166
|
+
@api_client.config.logger.debug 'Calling API: ReposApi.repos_upstream_skills_create ...'
|
|
10167
|
+
end
|
|
10168
|
+
# verify the required parameter 'owner' is set
|
|
10169
|
+
if @api_client.config.client_side_validation && owner.nil?
|
|
10170
|
+
fail ArgumentError, "Missing the required parameter 'owner' when calling ReposApi.repos_upstream_skills_create"
|
|
10171
|
+
end
|
|
10172
|
+
# verify the required parameter 'identifier' is set
|
|
10173
|
+
if @api_client.config.client_side_validation && identifier.nil?
|
|
10174
|
+
fail ArgumentError, "Missing the required parameter 'identifier' when calling ReposApi.repos_upstream_skills_create"
|
|
10175
|
+
end
|
|
10176
|
+
# resource path
|
|
10177
|
+
local_var_path = '/repos/{owner}/{identifier}/upstream/skills/'.sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'identifier' + '}', identifier.to_s)
|
|
10178
|
+
|
|
10179
|
+
# query parameters
|
|
10180
|
+
query_params = {}
|
|
10181
|
+
|
|
10182
|
+
# header parameters
|
|
10183
|
+
header_params = {}
|
|
10184
|
+
# HTTP header 'Accept' (if needed)
|
|
10185
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
10186
|
+
# HTTP header 'Content-Type'
|
|
10187
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
|
10188
|
+
|
|
10189
|
+
# form parameters
|
|
10190
|
+
form_params = {}
|
|
10191
|
+
|
|
10192
|
+
# http body (model)
|
|
10193
|
+
post_body = @api_client.object_to_http_body(opts[:'data'])
|
|
10194
|
+
auth_names = ['apikey', 'basic']
|
|
10195
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
|
10196
|
+
:header_params => header_params,
|
|
10197
|
+
:query_params => query_params,
|
|
10198
|
+
:form_params => form_params,
|
|
10199
|
+
:body => post_body,
|
|
10200
|
+
:auth_names => auth_names,
|
|
10201
|
+
:return_type => 'SkillsUpstream')
|
|
10202
|
+
if @api_client.config.debugging
|
|
10203
|
+
@api_client.config.logger.debug "API called: ReposApi#repos_upstream_skills_create\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
10204
|
+
end
|
|
10205
|
+
return data, status_code, headers
|
|
10206
|
+
end
|
|
10207
|
+
# Delete an AI Skills upstream config for this repository.
|
|
10208
|
+
# Delete an AI Skills upstream config for this repository.
|
|
10209
|
+
# @param owner
|
|
10210
|
+
# @param identifier
|
|
10211
|
+
# @param slug_perm
|
|
10212
|
+
# @param [Hash] opts the optional parameters
|
|
10213
|
+
# @return [nil]
|
|
10214
|
+
def repos_upstream_skills_delete(owner, identifier, slug_perm, opts = {})
|
|
10215
|
+
repos_upstream_skills_delete_with_http_info(owner, identifier, slug_perm, opts)
|
|
10216
|
+
nil
|
|
10217
|
+
end
|
|
10218
|
+
|
|
10219
|
+
# Delete an AI Skills upstream config for this repository.
|
|
10220
|
+
# Delete an AI Skills upstream config for this repository.
|
|
10221
|
+
# @param owner
|
|
10222
|
+
# @param identifier
|
|
10223
|
+
# @param slug_perm
|
|
10224
|
+
# @param [Hash] opts the optional parameters
|
|
10225
|
+
# @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
|
|
10226
|
+
def repos_upstream_skills_delete_with_http_info(owner, identifier, slug_perm, opts = {})
|
|
10227
|
+
if @api_client.config.debugging
|
|
10228
|
+
@api_client.config.logger.debug 'Calling API: ReposApi.repos_upstream_skills_delete ...'
|
|
10229
|
+
end
|
|
10230
|
+
# verify the required parameter 'owner' is set
|
|
10231
|
+
if @api_client.config.client_side_validation && owner.nil?
|
|
10232
|
+
fail ArgumentError, "Missing the required parameter 'owner' when calling ReposApi.repos_upstream_skills_delete"
|
|
10233
|
+
end
|
|
10234
|
+
# verify the required parameter 'identifier' is set
|
|
10235
|
+
if @api_client.config.client_side_validation && identifier.nil?
|
|
10236
|
+
fail ArgumentError, "Missing the required parameter 'identifier' when calling ReposApi.repos_upstream_skills_delete"
|
|
10237
|
+
end
|
|
10238
|
+
# verify the required parameter 'slug_perm' is set
|
|
10239
|
+
if @api_client.config.client_side_validation && slug_perm.nil?
|
|
10240
|
+
fail ArgumentError, "Missing the required parameter 'slug_perm' when calling ReposApi.repos_upstream_skills_delete"
|
|
10241
|
+
end
|
|
10242
|
+
# resource path
|
|
10243
|
+
local_var_path = '/repos/{owner}/{identifier}/upstream/skills/{slug_perm}/'.sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'identifier' + '}', identifier.to_s).sub('{' + 'slug_perm' + '}', slug_perm.to_s)
|
|
10244
|
+
|
|
10245
|
+
# query parameters
|
|
10246
|
+
query_params = {}
|
|
10247
|
+
|
|
10248
|
+
# header parameters
|
|
10249
|
+
header_params = {}
|
|
10250
|
+
# HTTP header 'Accept' (if needed)
|
|
10251
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
10252
|
+
# HTTP header 'Content-Type'
|
|
10253
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
|
10254
|
+
|
|
10255
|
+
# form parameters
|
|
10256
|
+
form_params = {}
|
|
10257
|
+
|
|
10258
|
+
# http body (model)
|
|
10259
|
+
post_body = nil
|
|
10260
|
+
auth_names = ['apikey', 'basic']
|
|
10261
|
+
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path,
|
|
10262
|
+
:header_params => header_params,
|
|
10263
|
+
:query_params => query_params,
|
|
10264
|
+
:form_params => form_params,
|
|
10265
|
+
:body => post_body,
|
|
10266
|
+
:auth_names => auth_names)
|
|
10267
|
+
if @api_client.config.debugging
|
|
10268
|
+
@api_client.config.logger.debug "API called: ReposApi#repos_upstream_skills_delete\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
10269
|
+
end
|
|
10270
|
+
return data, status_code, headers
|
|
10271
|
+
end
|
|
10272
|
+
# List AI Skills upstream configs for this repository.
|
|
10273
|
+
# List AI Skills upstream configs for this repository.
|
|
10274
|
+
# @param owner
|
|
10275
|
+
# @param identifier
|
|
10276
|
+
# @param [Hash] opts the optional parameters
|
|
10277
|
+
# @option opts [Integer] :page A page number within the paginated result set.
|
|
10278
|
+
# @option opts [Integer] :page_size Number of results to return per page.
|
|
10279
|
+
# @return [Array<SkillsUpstream>]
|
|
10280
|
+
def repos_upstream_skills_list(owner, identifier, opts = {})
|
|
10281
|
+
data, _status_code, _headers = repos_upstream_skills_list_with_http_info(owner, identifier, opts)
|
|
10282
|
+
data
|
|
10283
|
+
end
|
|
10284
|
+
|
|
10285
|
+
# List AI Skills upstream configs for this repository.
|
|
10286
|
+
# List AI Skills upstream configs for this repository.
|
|
10287
|
+
# @param owner
|
|
10288
|
+
# @param identifier
|
|
10289
|
+
# @param [Hash] opts the optional parameters
|
|
10290
|
+
# @option opts [Integer] :page A page number within the paginated result set.
|
|
10291
|
+
# @option opts [Integer] :page_size Number of results to return per page.
|
|
10292
|
+
# @return [Array<(Array<SkillsUpstream>, Fixnum, Hash)>] Array<SkillsUpstream> data, response status code and response headers
|
|
10293
|
+
def repos_upstream_skills_list_with_http_info(owner, identifier, opts = {})
|
|
10294
|
+
if @api_client.config.debugging
|
|
10295
|
+
@api_client.config.logger.debug 'Calling API: ReposApi.repos_upstream_skills_list ...'
|
|
10296
|
+
end
|
|
10297
|
+
# verify the required parameter 'owner' is set
|
|
10298
|
+
if @api_client.config.client_side_validation && owner.nil?
|
|
10299
|
+
fail ArgumentError, "Missing the required parameter 'owner' when calling ReposApi.repos_upstream_skills_list"
|
|
10300
|
+
end
|
|
10301
|
+
# verify the required parameter 'identifier' is set
|
|
10302
|
+
if @api_client.config.client_side_validation && identifier.nil?
|
|
10303
|
+
fail ArgumentError, "Missing the required parameter 'identifier' when calling ReposApi.repos_upstream_skills_list"
|
|
10304
|
+
end
|
|
10305
|
+
# resource path
|
|
10306
|
+
local_var_path = '/repos/{owner}/{identifier}/upstream/skills/'.sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'identifier' + '}', identifier.to_s)
|
|
10307
|
+
|
|
10308
|
+
# query parameters
|
|
10309
|
+
query_params = {}
|
|
10310
|
+
query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil?
|
|
10311
|
+
query_params[:'page_size'] = opts[:'page_size'] if !opts[:'page_size'].nil?
|
|
10312
|
+
|
|
10313
|
+
# header parameters
|
|
10314
|
+
header_params = {}
|
|
10315
|
+
# HTTP header 'Accept' (if needed)
|
|
10316
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
10317
|
+
# HTTP header 'Content-Type'
|
|
10318
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
|
10319
|
+
|
|
10320
|
+
# form parameters
|
|
10321
|
+
form_params = {}
|
|
10322
|
+
|
|
10323
|
+
# http body (model)
|
|
10324
|
+
post_body = nil
|
|
10325
|
+
auth_names = ['apikey', 'basic']
|
|
10326
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
|
10327
|
+
:header_params => header_params,
|
|
10328
|
+
:query_params => query_params,
|
|
10329
|
+
:form_params => form_params,
|
|
10330
|
+
:body => post_body,
|
|
10331
|
+
:auth_names => auth_names,
|
|
10332
|
+
:return_type => 'Array<SkillsUpstream>')
|
|
10333
|
+
if @api_client.config.debugging
|
|
10334
|
+
@api_client.config.logger.debug "API called: ReposApi#repos_upstream_skills_list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
10335
|
+
end
|
|
10336
|
+
return data, status_code, headers
|
|
10337
|
+
end
|
|
10338
|
+
# Partially update an AI Skills upstream config for this repository.
|
|
10339
|
+
# Partially update an AI Skills upstream config for this repository.
|
|
10340
|
+
# @param owner
|
|
10341
|
+
# @param identifier
|
|
10342
|
+
# @param slug_perm
|
|
10343
|
+
# @param [Hash] opts the optional parameters
|
|
10344
|
+
# @option opts [SkillsUpstreamRequestPatch] :data
|
|
10345
|
+
# @return [SkillsUpstream]
|
|
10346
|
+
def repos_upstream_skills_partial_update(owner, identifier, slug_perm, opts = {})
|
|
10347
|
+
data, _status_code, _headers = repos_upstream_skills_partial_update_with_http_info(owner, identifier, slug_perm, opts)
|
|
10348
|
+
data
|
|
10349
|
+
end
|
|
10350
|
+
|
|
10351
|
+
# Partially update an AI Skills upstream config for this repository.
|
|
10352
|
+
# Partially update an AI Skills upstream config for this repository.
|
|
10353
|
+
# @param owner
|
|
10354
|
+
# @param identifier
|
|
10355
|
+
# @param slug_perm
|
|
10356
|
+
# @param [Hash] opts the optional parameters
|
|
10357
|
+
# @option opts [SkillsUpstreamRequestPatch] :data
|
|
10358
|
+
# @return [Array<(SkillsUpstream, Fixnum, Hash)>] SkillsUpstream data, response status code and response headers
|
|
10359
|
+
def repos_upstream_skills_partial_update_with_http_info(owner, identifier, slug_perm, opts = {})
|
|
10360
|
+
if @api_client.config.debugging
|
|
10361
|
+
@api_client.config.logger.debug 'Calling API: ReposApi.repos_upstream_skills_partial_update ...'
|
|
10362
|
+
end
|
|
10363
|
+
# verify the required parameter 'owner' is set
|
|
10364
|
+
if @api_client.config.client_side_validation && owner.nil?
|
|
10365
|
+
fail ArgumentError, "Missing the required parameter 'owner' when calling ReposApi.repos_upstream_skills_partial_update"
|
|
10366
|
+
end
|
|
10367
|
+
# verify the required parameter 'identifier' is set
|
|
10368
|
+
if @api_client.config.client_side_validation && identifier.nil?
|
|
10369
|
+
fail ArgumentError, "Missing the required parameter 'identifier' when calling ReposApi.repos_upstream_skills_partial_update"
|
|
10370
|
+
end
|
|
10371
|
+
# verify the required parameter 'slug_perm' is set
|
|
10372
|
+
if @api_client.config.client_side_validation && slug_perm.nil?
|
|
10373
|
+
fail ArgumentError, "Missing the required parameter 'slug_perm' when calling ReposApi.repos_upstream_skills_partial_update"
|
|
10374
|
+
end
|
|
10375
|
+
# resource path
|
|
10376
|
+
local_var_path = '/repos/{owner}/{identifier}/upstream/skills/{slug_perm}/'.sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'identifier' + '}', identifier.to_s).sub('{' + 'slug_perm' + '}', slug_perm.to_s)
|
|
10377
|
+
|
|
10378
|
+
# query parameters
|
|
10379
|
+
query_params = {}
|
|
10380
|
+
|
|
10381
|
+
# header parameters
|
|
10382
|
+
header_params = {}
|
|
10383
|
+
# HTTP header 'Accept' (if needed)
|
|
10384
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
10385
|
+
# HTTP header 'Content-Type'
|
|
10386
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
|
10387
|
+
|
|
10388
|
+
# form parameters
|
|
10389
|
+
form_params = {}
|
|
10390
|
+
|
|
10391
|
+
# http body (model)
|
|
10392
|
+
post_body = @api_client.object_to_http_body(opts[:'data'])
|
|
10393
|
+
auth_names = ['apikey', 'basic']
|
|
10394
|
+
data, status_code, headers = @api_client.call_api(:PATCH, local_var_path,
|
|
10395
|
+
:header_params => header_params,
|
|
10396
|
+
:query_params => query_params,
|
|
10397
|
+
:form_params => form_params,
|
|
10398
|
+
:body => post_body,
|
|
10399
|
+
:auth_names => auth_names,
|
|
10400
|
+
:return_type => 'SkillsUpstream')
|
|
10401
|
+
if @api_client.config.debugging
|
|
10402
|
+
@api_client.config.logger.debug "API called: ReposApi#repos_upstream_skills_partial_update\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
10403
|
+
end
|
|
10404
|
+
return data, status_code, headers
|
|
10405
|
+
end
|
|
10406
|
+
# Retrieve an AI Skills upstream config for this repository.
|
|
10407
|
+
# Retrieve an AI Skills upstream config for this repository.
|
|
10408
|
+
# @param owner
|
|
10409
|
+
# @param identifier
|
|
10410
|
+
# @param slug_perm
|
|
10411
|
+
# @param [Hash] opts the optional parameters
|
|
10412
|
+
# @return [SkillsUpstream]
|
|
10413
|
+
def repos_upstream_skills_read(owner, identifier, slug_perm, opts = {})
|
|
10414
|
+
data, _status_code, _headers = repos_upstream_skills_read_with_http_info(owner, identifier, slug_perm, opts)
|
|
10415
|
+
data
|
|
10416
|
+
end
|
|
10417
|
+
|
|
10418
|
+
# Retrieve an AI Skills upstream config for this repository.
|
|
10419
|
+
# Retrieve an AI Skills upstream config for this repository.
|
|
10420
|
+
# @param owner
|
|
10421
|
+
# @param identifier
|
|
10422
|
+
# @param slug_perm
|
|
10423
|
+
# @param [Hash] opts the optional parameters
|
|
10424
|
+
# @return [Array<(SkillsUpstream, Fixnum, Hash)>] SkillsUpstream data, response status code and response headers
|
|
10425
|
+
def repos_upstream_skills_read_with_http_info(owner, identifier, slug_perm, opts = {})
|
|
10426
|
+
if @api_client.config.debugging
|
|
10427
|
+
@api_client.config.logger.debug 'Calling API: ReposApi.repos_upstream_skills_read ...'
|
|
10428
|
+
end
|
|
10429
|
+
# verify the required parameter 'owner' is set
|
|
10430
|
+
if @api_client.config.client_side_validation && owner.nil?
|
|
10431
|
+
fail ArgumentError, "Missing the required parameter 'owner' when calling ReposApi.repos_upstream_skills_read"
|
|
10432
|
+
end
|
|
10433
|
+
# verify the required parameter 'identifier' is set
|
|
10434
|
+
if @api_client.config.client_side_validation && identifier.nil?
|
|
10435
|
+
fail ArgumentError, "Missing the required parameter 'identifier' when calling ReposApi.repos_upstream_skills_read"
|
|
10436
|
+
end
|
|
10437
|
+
# verify the required parameter 'slug_perm' is set
|
|
10438
|
+
if @api_client.config.client_side_validation && slug_perm.nil?
|
|
10439
|
+
fail ArgumentError, "Missing the required parameter 'slug_perm' when calling ReposApi.repos_upstream_skills_read"
|
|
10440
|
+
end
|
|
10441
|
+
# resource path
|
|
10442
|
+
local_var_path = '/repos/{owner}/{identifier}/upstream/skills/{slug_perm}/'.sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'identifier' + '}', identifier.to_s).sub('{' + 'slug_perm' + '}', slug_perm.to_s)
|
|
10443
|
+
|
|
10444
|
+
# query parameters
|
|
10445
|
+
query_params = {}
|
|
10446
|
+
|
|
10447
|
+
# header parameters
|
|
10448
|
+
header_params = {}
|
|
10449
|
+
# HTTP header 'Accept' (if needed)
|
|
10450
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
10451
|
+
# HTTP header 'Content-Type'
|
|
10452
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
|
10453
|
+
|
|
10454
|
+
# form parameters
|
|
10455
|
+
form_params = {}
|
|
10456
|
+
|
|
10457
|
+
# http body (model)
|
|
10458
|
+
post_body = nil
|
|
10459
|
+
auth_names = ['apikey', 'basic']
|
|
10460
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
|
10461
|
+
:header_params => header_params,
|
|
10462
|
+
:query_params => query_params,
|
|
10463
|
+
:form_params => form_params,
|
|
10464
|
+
:body => post_body,
|
|
10465
|
+
:auth_names => auth_names,
|
|
10466
|
+
:return_type => 'SkillsUpstream')
|
|
10467
|
+
if @api_client.config.debugging
|
|
10468
|
+
@api_client.config.logger.debug "API called: ReposApi#repos_upstream_skills_read\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
10469
|
+
end
|
|
10470
|
+
return data, status_code, headers
|
|
10471
|
+
end
|
|
10472
|
+
# Update an AI Skills upstream config for this repository.
|
|
10473
|
+
# Update an AI Skills upstream config for this repository.
|
|
10474
|
+
# @param owner
|
|
10475
|
+
# @param identifier
|
|
10476
|
+
# @param slug_perm
|
|
10477
|
+
# @param [Hash] opts the optional parameters
|
|
10478
|
+
# @option opts [SkillsUpstreamRequest] :data
|
|
10479
|
+
# @return [SkillsUpstream]
|
|
10480
|
+
def repos_upstream_skills_update(owner, identifier, slug_perm, opts = {})
|
|
10481
|
+
data, _status_code, _headers = repos_upstream_skills_update_with_http_info(owner, identifier, slug_perm, opts)
|
|
10482
|
+
data
|
|
10483
|
+
end
|
|
10484
|
+
|
|
10485
|
+
# Update an AI Skills upstream config for this repository.
|
|
10486
|
+
# Update an AI Skills upstream config for this repository.
|
|
10487
|
+
# @param owner
|
|
10488
|
+
# @param identifier
|
|
10489
|
+
# @param slug_perm
|
|
10490
|
+
# @param [Hash] opts the optional parameters
|
|
10491
|
+
# @option opts [SkillsUpstreamRequest] :data
|
|
10492
|
+
# @return [Array<(SkillsUpstream, Fixnum, Hash)>] SkillsUpstream data, response status code and response headers
|
|
10493
|
+
def repos_upstream_skills_update_with_http_info(owner, identifier, slug_perm, opts = {})
|
|
10494
|
+
if @api_client.config.debugging
|
|
10495
|
+
@api_client.config.logger.debug 'Calling API: ReposApi.repos_upstream_skills_update ...'
|
|
10496
|
+
end
|
|
10497
|
+
# verify the required parameter 'owner' is set
|
|
10498
|
+
if @api_client.config.client_side_validation && owner.nil?
|
|
10499
|
+
fail ArgumentError, "Missing the required parameter 'owner' when calling ReposApi.repos_upstream_skills_update"
|
|
10500
|
+
end
|
|
10501
|
+
# verify the required parameter 'identifier' is set
|
|
10502
|
+
if @api_client.config.client_side_validation && identifier.nil?
|
|
10503
|
+
fail ArgumentError, "Missing the required parameter 'identifier' when calling ReposApi.repos_upstream_skills_update"
|
|
10504
|
+
end
|
|
10505
|
+
# verify the required parameter 'slug_perm' is set
|
|
10506
|
+
if @api_client.config.client_side_validation && slug_perm.nil?
|
|
10507
|
+
fail ArgumentError, "Missing the required parameter 'slug_perm' when calling ReposApi.repos_upstream_skills_update"
|
|
10508
|
+
end
|
|
10509
|
+
# resource path
|
|
10510
|
+
local_var_path = '/repos/{owner}/{identifier}/upstream/skills/{slug_perm}/'.sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'identifier' + '}', identifier.to_s).sub('{' + 'slug_perm' + '}', slug_perm.to_s)
|
|
10511
|
+
|
|
10512
|
+
# query parameters
|
|
10513
|
+
query_params = {}
|
|
10514
|
+
|
|
10515
|
+
# header parameters
|
|
10516
|
+
header_params = {}
|
|
10517
|
+
# HTTP header 'Accept' (if needed)
|
|
10518
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
10519
|
+
# HTTP header 'Content-Type'
|
|
10520
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
|
10521
|
+
|
|
10522
|
+
# form parameters
|
|
10523
|
+
form_params = {}
|
|
10524
|
+
|
|
10525
|
+
# http body (model)
|
|
10526
|
+
post_body = @api_client.object_to_http_body(opts[:'data'])
|
|
10527
|
+
auth_names = ['apikey', 'basic']
|
|
10528
|
+
data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
|
|
10529
|
+
:header_params => header_params,
|
|
10530
|
+
:query_params => query_params,
|
|
10531
|
+
:form_params => form_params,
|
|
10532
|
+
:body => post_body,
|
|
10533
|
+
:auth_names => auth_names,
|
|
10534
|
+
:return_type => 'SkillsUpstream')
|
|
10535
|
+
if @api_client.config.debugging
|
|
10536
|
+
@api_client.config.logger.debug "API called: ReposApi#repos_upstream_skills_update\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
10537
|
+
end
|
|
10538
|
+
return data, status_code, headers
|
|
10539
|
+
end
|
|
10145
10540
|
# Create a Swift upstream config for this repository.
|
|
10146
10541
|
# Create a Swift upstream config for this repository.
|
|
10147
10542
|
# @param owner
|
|
@@ -34,7 +34,7 @@ class OrganizationApiKeyRule
|
|
|
34
34
|
# Human-readable identifier for the rule type. Automatically generated based on the rule type.
|
|
35
35
|
attr_accessor :slug
|
|
36
36
|
|
|
37
|
-
# An auto-generated id that uniquely identifies the
|
|
37
|
+
# An auto-generated id that uniquely identifies the rule.
|
|
38
38
|
attr_accessor :slug_perm
|
|
39
39
|
|
|
40
40
|
attr_accessor :updated_at
|
|
@@ -26,7 +26,7 @@ class Service
|
|
|
26
26
|
# The API key of the service
|
|
27
27
|
attr_accessor :key
|
|
28
28
|
|
|
29
|
-
# The time at which the API key will expire. This will only be populated if the Organization has an active API
|
|
29
|
+
# The time at which the API key will expire. This will only be populated if the Organization has an active API key rule.
|
|
30
30
|
attr_accessor :key_expires_at
|
|
31
31
|
|
|
32
32
|
# The name of the service
|