@@ -471,3 +471,97 @@ def list_pipeline_runs(ctx, from_json, all_pages, page_size, compartment_id, id,
471
471
472
472
# Remove create-pipeline-run-pipeline-default-configuration-details from oci data-science pipeline-run
473
473
datascience_cli .pipeline_run_group .commands .pop (datascience_cli .create_pipeline_run_pipeline_default_configuration_details .name )
474
+
475
+
476
+ # oci data-science data-science-private-endpoint -> oci data-science ds-private-endpoint
477
+ cli_util .rename_command (datascience_cli , datascience_cli .data_science_root_group , datascience_cli .data_science_private_endpoint_group , "ds-private-endpoint" )
478
+
479
+
480
+ @cli_util .copy_params_from_generated_command (datascience_cli .change_data_science_private_endpoint_compartment , params_to_exclude = ['data_science_private_endpoint_id' ])
481
+ @datascience_cli .data_science_private_endpoint_group .command (name = datascience_cli .change_data_science_private_endpoint_compartment .name , help = datascience_cli .change_data_science_private_endpoint_compartment .help )
482
+ @cli_util .option ('--ds-private-endpoint-id' , required = True , help = u"""The unique ID for a Data Science private endpoint. [required]""" )
483
+ @click .pass_context
484
+ @json_skeleton_utils .json_skeleton_generation_handler (input_params_to_complex_types = {})
485
+ @cli_util .wrap_exceptions
486
+ def change_data_science_private_endpoint_compartment_extended (ctx , ** kwargs ):
487
+
488
+ if 'ds_private_endpoint_id' in kwargs :
489
+ kwargs ['data_science_private_endpoint_id' ] = kwargs ['ds_private_endpoint_id' ]
490
+ kwargs .pop ('ds_private_endpoint_id' )
491
+
492
+ ctx .invoke (datascience_cli .change_data_science_private_endpoint_compartment , ** kwargs )
493
+
494
+
495
+ @cli_util .copy_params_from_generated_command (datascience_cli .create_data_science_private_endpoint , params_to_exclude = ['data_science_resource_type' ])
496
+ @datascience_cli .data_science_private_endpoint_group .command (name = datascience_cli .create_data_science_private_endpoint .name , help = datascience_cli .create_data_science_private_endpoint .help )
497
+ @cli_util .option ('--ds-resource-type' , required = True , type = custom_types .CliCaseInsensitiveChoice (["NOTEBOOK_SESSION" ]), help = u"""Data Science resource type. [required]""" )
498
+ @click .pass_context
499
+ @json_skeleton_utils .json_skeleton_generation_handler (input_params_to_complex_types = {'freeform-tags' : {'module' : 'data_science' , 'class' : 'dict(str, string)' }, 'defined-tags' : {'module' : 'data_science' , 'class' : 'dict(str, dict(str, object))' }, 'nsg-ids' : {'module' : 'data_science' , 'class' : 'list[string]' }}, output_type = {'module' : 'data_science' , 'class' : 'DataSciencePrivateEndpoint' })
500
+ @cli_util .wrap_exceptions
501
+ def create_data_science_private_endpoint_extended (ctx , ** kwargs ):
502
+
503
+ if 'ds_resource_type' in kwargs :
504
+ kwargs ['data_science_resource_type' ] = kwargs ['ds_resource_type' ]
505
+ kwargs .pop ('ds_resource_type' )
506
+
507
+ ctx .invoke (datascience_cli .create_data_science_private_endpoint , ** kwargs )
508
+
509
+
510
+ @cli_util .copy_params_from_generated_command (datascience_cli .delete_data_science_private_endpoint , params_to_exclude = ['data_science_private_endpoint_id' ])
511
+ @datascience_cli .data_science_private_endpoint_group .command (name = datascience_cli .delete_data_science_private_endpoint .name , help = datascience_cli .delete_data_science_private_endpoint .help )
512
+ @cli_util .option ('--ds-private-endpoint-id' , required = True , help = u"""The unique ID for a Data Science private endpoint. [required]""" )
513
+ @click .pass_context
514
+ @json_skeleton_utils .json_skeleton_generation_handler (input_params_to_complex_types = {})
515
+ @cli_util .wrap_exceptions
516
+ def delete_data_science_private_endpoint_extended (ctx , ** kwargs ):
517
+
518
+ if 'ds_private_endpoint_id' in kwargs :
519
+ kwargs ['data_science_private_endpoint_id' ] = kwargs ['ds_private_endpoint_id' ]
520
+ kwargs .pop ('ds_private_endpoint_id' )
521
+
522
+ ctx .invoke (datascience_cli .delete_data_science_private_endpoint , ** kwargs )
523
+
524
+
525
+ @cli_util .copy_params_from_generated_command (datascience_cli .get_data_science_private_endpoint , params_to_exclude = ['data_science_private_endpoint_id' ])
526
+ @datascience_cli .data_science_private_endpoint_group .command (name = datascience_cli .get_data_science_private_endpoint .name , help = datascience_cli .get_data_science_private_endpoint .help )
527
+ @cli_util .option ('--ds-private-endpoint-id' , required = True , help = u"""The unique ID for a Data Science private endpoint. [required]""" )
528
+ @click .pass_context
529
+ @json_skeleton_utils .json_skeleton_generation_handler (input_params_to_complex_types = {}, output_type = {'module' : 'data_science' , 'class' : 'DataSciencePrivateEndpoint' })
530
+ @cli_util .wrap_exceptions
531
+ def get_data_science_private_endpoint_extended (ctx , ** kwargs ):
532
+
533
+ if 'ds_private_endpoint_id' in kwargs :
534
+ kwargs ['data_science_private_endpoint_id' ] = kwargs ['ds_private_endpoint_id' ]
535
+ kwargs .pop ('ds_private_endpoint_id' )
536
+
537
+ ctx .invoke (datascience_cli .get_data_science_private_endpoint , ** kwargs )
538
+
539
+
540
+ @cli_util .copy_params_from_generated_command (datascience_cli .list_data_science_private_endpoints , params_to_exclude = ['data_science_resource_type' ])
541
+ @datascience_cli .data_science_private_endpoint_group .command (name = datascience_cli .list_data_science_private_endpoints .name , help = datascience_cli .list_data_science_private_endpoints .help )
542
+ @cli_util .option ('--ds-resource-type' , type = custom_types .CliCaseInsensitiveChoice (["NOTEBOOK_SESSION" ]), help = u"""Resource types in the Data Science service such as notebooks.""" )
543
+ @click .pass_context
544
+ @json_skeleton_utils .json_skeleton_generation_handler (input_params_to_complex_types = {}, output_type = {'module' : 'data_science' , 'class' : 'list[DataSciencePrivateEndpointSummary]' })
545
+ @cli_util .wrap_exceptions
546
+ def list_data_science_private_endpoints_extended (ctx , ** kwargs ):
547
+
548
+ if 'ds_resource_type' in kwargs :
549
+ kwargs ['data_science_resource_type' ] = kwargs ['ds_resource_type' ]
550
+ kwargs .pop ('ds_resource_type' )
551
+
552
+ ctx .invoke (datascience_cli .list_data_science_private_endpoints , ** kwargs )
553
+
554
+
555
+ @cli_util .copy_params_from_generated_command (datascience_cli .update_data_science_private_endpoint , params_to_exclude = ['data_science_private_endpoint_id' ])
556
+ @datascience_cli .data_science_private_endpoint_group .command (name = datascience_cli .update_data_science_private_endpoint .name , help = datascience_cli .update_data_science_private_endpoint .help )
557
+ @cli_util .option ('--ds-private-endpoint-id' , required = True , help = u"""The unique ID for a Data Science private endpoint. [required]""" )
558
+ @click .pass_context
559
+ @json_skeleton_utils .json_skeleton_generation_handler (input_params_to_complex_types = {'freeform-tags' : {'module' : 'data_science' , 'class' : 'dict(str, string)' }, 'defined-tags' : {'module' : 'data_science' , 'class' : 'dict(str, dict(str, object))' }, 'nsg-ids' : {'module' : 'data_science' , 'class' : 'list[string]' }}, output_type = {'module' : 'data_science' , 'class' : 'DataSciencePrivateEndpoint' })
560
+ @cli_util .wrap_exceptions
561
+ def update_data_science_private_endpoint_extended (ctx , ** kwargs ):
562
+
563
+ if 'ds_private_endpoint_id' in kwargs :
564
+ kwargs ['data_science_private_endpoint_id' ] = kwargs ['ds_private_endpoint_id' ]
565
+ kwargs .pop ('ds_private_endpoint_id' )
566
+
567
+ ctx .invoke (datascience_cli .update_data_science_private_endpoint , ** kwargs )
0 commit comments