@@ -144,12 +144,13 @@ def create_build_pipeline_stage_create_wait_stage_details_extended(ctx, **kwargs
144
144
145
145
@cli_util .copy_params_from_generated_command (
146
146
devops_cli .create_build_pipeline_stage_create_build_stage_details ,
147
- params_to_exclude = ['build_pipeline_stage_predecessor_collection' ])
147
+ params_to_exclude = ['build_pipeline_stage_predecessor_collection' , 'private_access_config' ])
148
148
@devops_cli .build_pipeline_stage_group .command (
149
149
name = cli_util .override (
150
150
'build_pipeline_stage.create_build_pipeline_stage_create_build_stage_details.command_name' , 'create-build-stage' ),
151
151
help = devops_cli .create_build_pipeline_stage_create_build_stage_details .help )
152
152
@cli_util .option ('--stage-predecessor-collection' , required = True , type = custom_types .CLI_COMPLEX_TYPE , help = u"""""" + custom_types .cli_complex_type .COMPLEX_TYPE_HELP )
153
+ @cli_util .option ('--network-channel' , type = custom_types .CLI_COMPLEX_TYPE , help = u"""""" + custom_types .cli_complex_type .COMPLEX_TYPE_HELP )
153
154
@click .pass_context
154
155
@json_skeleton_utils .json_skeleton_generation_handler (
155
156
input_params_to_complex_types = {
@@ -160,6 +161,9 @@ def create_build_pipeline_stage_create_wait_stage_details_extended(ctx, **kwargs
160
161
output_type = {'module' : 'devops' , 'class' : 'BuildPipelineStage' })
161
162
@cli_util .wrap_exceptions
162
163
def create_build_pipeline_stage_create_build_stage_details_extended (ctx , ** kwargs ):
164
+ if 'network_channel' in kwargs :
165
+ kwargs ['private_access_config' ] = kwargs ['network_channel' ]
166
+ kwargs .pop ('network_channel' )
163
167
if 'stage_predecessor_collection' in kwargs :
164
168
kwargs ['build_pipeline_stage_predecessor_collection' ] = kwargs ['stage_predecessor_collection' ]
165
169
kwargs .pop ('stage_predecessor_collection' )
@@ -245,13 +249,14 @@ def update_build_pipeline_stage_update_wait_stage_details_extended(ctx, **kwargs
245
249
246
250
@cli_util .copy_params_from_generated_command (
247
251
devops_cli .update_build_pipeline_stage_update_build_stage_details ,
248
- params_to_exclude = ['build_pipeline_stage_id' , 'build_pipeline_stage_predecessor_collection' ])
252
+ params_to_exclude = ['build_pipeline_stage_id' , 'build_pipeline_stage_predecessor_collection' , 'private_access_config' ])
249
253
@devops_cli .build_pipeline_stage_group .command (
250
254
name = cli_util .override (
251
255
'build_pipeline_stage.update_build_pipeline_stage_update_build_stage_details.command_name' , 'update-build-stage' ),
252
256
help = devops_cli .update_build_pipeline_stage_update_build_stage_details .help )
253
257
@cli_util .option ('--stage-id' , required = True , help = u"""Unique stage identifier.""" )
254
258
@cli_util .option ('--stage-predecessor-collection' , type = custom_types .CLI_COMPLEX_TYPE , help = u"""""" + custom_types .cli_complex_type .COMPLEX_TYPE_HELP )
259
+ @cli_util .option ('--network-channel' , type = custom_types .CLI_COMPLEX_TYPE , help = u"""""" + custom_types .cli_complex_type .COMPLEX_TYPE_HELP )
255
260
@click .pass_context
256
261
@json_skeleton_utils .json_skeleton_generation_handler (
257
262
input_params_to_complex_types = {
@@ -265,6 +270,9 @@ def update_build_pipeline_stage_update_build_stage_details_extended(ctx, **kwarg
265
270
if 'stage_id' in kwargs :
266
271
kwargs ['build_pipeline_stage_id' ] = kwargs ['stage_id' ]
267
272
kwargs .pop ('stage_id' )
273
+ if 'network_channel' in kwargs :
274
+ kwargs ['private_access_config' ] = kwargs ['network_channel' ]
275
+ kwargs .pop ('network_channel' )
268
276
if 'stage_predecessor_collection' in kwargs :
269
277
kwargs ['build_pipeline_stage_predecessor_collection' ] = kwargs ['stage_predecessor_collection' ]
270
278
kwargs .pop ('stage_predecessor_collection' )
@@ -1291,3 +1299,95 @@ def update_deploy_stage_update_oke_helm_chart_deploy_stage_details_extended(ctx,
1291
1299
kwargs .pop ('stage_id' )
1292
1300
1293
1301
ctx .invoke (devops_cli .update_deploy_stage_update_oke_helm_chart_deploy_stage_details , ** kwargs )
1302
+
1303
+
1304
+ # oci devops connection create-connection-create-bitbucket-server-access-token-connection-details -> oci devops connection create-bitbucket-server-connection
1305
+ cli_util .rename_command (devops_cli , devops_cli .connection_group , devops_cli .create_connection_create_bitbucket_server_access_token_connection_details , "create-bitbucket-server-connection" )
1306
+
1307
+
1308
+ # oci devops connection create-connection-create-gitlab-server-access-token-connection-details -> oci devops connection create-gitlab-server-connection
1309
+ cli_util .rename_command (devops_cli , devops_cli .connection_group , devops_cli .create_connection_create_gitlab_server_access_token_connection_details , "create-gitlab-server-connection" )
1310
+
1311
+
1312
+ # oci devops connection update-connection-update-bitbucket-server-access-token-connection-details -> oci devops connection update-bitbucket-server-connection
1313
+ cli_util .rename_command (devops_cli , devops_cli .connection_group , devops_cli .update_connection_update_bitbucket_server_access_token_connection_details , "update-bitbucket-server-connection" )
1314
+
1315
+
1316
+ # oci devops connection update-connection-update-gitlab-server-access-token-connection-details -> oci devops connection update-gitlab-server-connection
1317
+ cli_util .rename_command (devops_cli , devops_cli .connection_group , devops_cli .update_connection_update_gitlab_server_access_token_connection_details , "update-gitlab-server-connection" )
1318
+
1319
+
1320
+ # oci devops trigger create-trigger-create-bitbucket-server-trigger-details -> oci devops trigger create-bitbucket-server-trigger
1321
+ cli_util .rename_command (devops_cli , devops_cli .trigger_group , devops_cli .create_trigger_create_bitbucket_server_trigger_details , "create-bitbucket-server-trigger" )
1322
+
1323
+
1324
+ # oci devops trigger create-trigger-create-gitlab-server-trigger-details -> oci devops trigger create-gitlab-server-trigger
1325
+ cli_util .rename_command (devops_cli , devops_cli .trigger_group , devops_cli .create_trigger_create_gitlab_server_trigger_details , "create-gitlab-server-trigger" )
1326
+
1327
+
1328
+ # oci devops trigger update-trigger-update-bitbucket-server-trigger-details -> oci devops trigger update-bitbucket-server-trigger
1329
+ cli_util .rename_command (devops_cli , devops_cli .trigger_group , devops_cli .update_trigger_update_bitbucket_server_trigger_details , "update-bitbucket-server-trigger" )
1330
+
1331
+
1332
+ # oci devops trigger update-trigger-update-gitlab-server-trigger-details -> oci devops trigger update-gitlab-server-trigger
1333
+ cli_util .rename_command (devops_cli , devops_cli .trigger_group , devops_cli .update_trigger_update_gitlab_server_trigger_details , "update-gitlab-server-trigger" )
1334
+
1335
+
1336
+ @cli_util .copy_params_from_generated_command (devops_cli .create_connection_create_bitbucket_server_access_token_connection_details , params_to_exclude = ['access_token' ])
1337
+ @devops_cli .connection_group .command (name = devops_cli .create_connection_create_bitbucket_server_access_token_connection_details .name , help = devops_cli .create_connection_create_bitbucket_server_access_token_connection_details .help )
1338
+ @cli_util .option ('--personal-access-token' , required = True , help = u"""The OCID of personal access token saved in secret store. [required]""" )
1339
+ @click .pass_context
1340
+ @json_skeleton_utils .json_skeleton_generation_handler (input_params_to_complex_types = {'freeform-tags' : {'module' : 'devops' , 'class' : 'dict(str, string)' }, 'defined-tags' : {'module' : 'devops' , 'class' : 'dict(str, dict(str, object))' }, 'tls-verify-config' : {'module' : 'devops' , 'class' : 'TlsVerifyConfig' }}, output_type = {'module' : 'devops' , 'class' : 'Connection' })
1341
+ @cli_util .wrap_exceptions
1342
+ def create_connection_create_bitbucket_server_access_token_connection_details_extended (ctx , ** kwargs ):
1343
+
1344
+ if 'personal_access_token' in kwargs :
1345
+ kwargs ['access_token' ] = kwargs ['personal_access_token' ]
1346
+ kwargs .pop ('personal_access_token' )
1347
+
1348
+ ctx .invoke (devops_cli .create_connection_create_bitbucket_server_access_token_connection_details , ** kwargs )
1349
+
1350
+
1351
+ @cli_util .copy_params_from_generated_command (devops_cli .create_connection_create_gitlab_server_access_token_connection_details , params_to_exclude = ['access_token' ])
1352
+ @devops_cli .connection_group .command (name = devops_cli .create_connection_create_gitlab_server_access_token_connection_details .name , help = devops_cli .create_connection_create_gitlab_server_access_token_connection_details .help )
1353
+ @cli_util .option ('--personal-access-token' , required = True , help = u"""The OCID of personal access token saved in secret store. [required]""" )
1354
+ @click .pass_context
1355
+ @json_skeleton_utils .json_skeleton_generation_handler (input_params_to_complex_types = {'freeform-tags' : {'module' : 'devops' , 'class' : 'dict(str, string)' }, 'defined-tags' : {'module' : 'devops' , 'class' : 'dict(str, dict(str, object))' }, 'tls-verify-config' : {'module' : 'devops' , 'class' : 'TlsVerifyConfig' }}, output_type = {'module' : 'devops' , 'class' : 'Connection' })
1356
+ @cli_util .wrap_exceptions
1357
+ def create_connection_create_gitlab_server_access_token_connection_details_extended (ctx , ** kwargs ):
1358
+
1359
+ if 'personal_access_token' in kwargs :
1360
+ kwargs ['access_token' ] = kwargs ['personal_access_token' ]
1361
+ kwargs .pop ('personal_access_token' )
1362
+
1363
+ ctx .invoke (devops_cli .create_connection_create_gitlab_server_access_token_connection_details , ** kwargs )
1364
+
1365
+
1366
+ @cli_util .copy_params_from_generated_command (devops_cli .update_connection_update_bitbucket_server_access_token_connection_details , params_to_exclude = ['access_token' ])
1367
+ @devops_cli .connection_group .command (name = devops_cli .update_connection_update_bitbucket_server_access_token_connection_details .name , help = devops_cli .update_connection_update_bitbucket_server_access_token_connection_details .help )
1368
+ @cli_util .option ('--personal-access-token' , help = u"""OCID of personal access token saved in secret store""" )
1369
+ @click .pass_context
1370
+ @json_skeleton_utils .json_skeleton_generation_handler (input_params_to_complex_types = {'freeform-tags' : {'module' : 'devops' , 'class' : 'dict(str, string)' }, 'defined-tags' : {'module' : 'devops' , 'class' : 'dict(str, dict(str, object))' }, 'tls-verify-config' : {'module' : 'devops' , 'class' : 'TlsVerifyConfig' }}, output_type = {'module' : 'devops' , 'class' : 'Connection' })
1371
+ @cli_util .wrap_exceptions
1372
+ def update_connection_update_bitbucket_server_access_token_connection_details_extended (ctx , ** kwargs ):
1373
+
1374
+ if 'personal_access_token' in kwargs :
1375
+ kwargs ['access_token' ] = kwargs ['personal_access_token' ]
1376
+ kwargs .pop ('personal_access_token' )
1377
+
1378
+ ctx .invoke (devops_cli .update_connection_update_bitbucket_server_access_token_connection_details , ** kwargs )
1379
+
1380
+
1381
+ @cli_util .copy_params_from_generated_command (devops_cli .update_connection_update_gitlab_server_access_token_connection_details , params_to_exclude = ['access_token' ])
1382
+ @devops_cli .connection_group .command (name = devops_cli .update_connection_update_gitlab_server_access_token_connection_details .name , help = devops_cli .update_connection_update_gitlab_server_access_token_connection_details .help )
1383
+ @cli_util .option ('--personal-access-token' , help = u"""The OCID of personal access token saved in secret store.""" )
1384
+ @click .pass_context
1385
+ @json_skeleton_utils .json_skeleton_generation_handler (input_params_to_complex_types = {'freeform-tags' : {'module' : 'devops' , 'class' : 'dict(str, string)' }, 'defined-tags' : {'module' : 'devops' , 'class' : 'dict(str, dict(str, object))' }, 'tls-verify-config' : {'module' : 'devops' , 'class' : 'TlsVerifyConfig' }}, output_type = {'module' : 'devops' , 'class' : 'Connection' })
1386
+ @cli_util .wrap_exceptions
1387
+ def update_connection_update_gitlab_server_access_token_connection_details_extended (ctx , ** kwargs ):
1388
+
1389
+ if 'personal_access_token' in kwargs :
1390
+ kwargs ['access_token' ] = kwargs ['personal_access_token' ]
1391
+ kwargs .pop ('personal_access_token' )
1392
+
1393
+ ctx .invoke (devops_cli .update_connection_update_gitlab_server_access_token_connection_details , ** kwargs )
0 commit comments