Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
)
group.command(
'config-versions',
'get_provisioned_fabric_config_version_info_list'
)
group.command('upgrade-status', 'get_cluster_upgrade_progress')
group.command('recover-system', 'recover_system_partitions')
group.command('operation-list', 'get_fault_operation_list')
group.command('operation-cancel', 'cancel_operation')
group.command('provision', 'provision_cluster')
group.command('unprovision', 'unprovision_cluster')
group.command('upgrade-rollback', 'rollback_cluster_upgrade')
group.command('upgrade-resume', 'resume_cluster_upgrade')
with CommandGroup(self, 'node', client_func_path,
client_factory=client_create) as group:
group.command('list', 'get_node_info_list')
group.command('info', 'get_node_info')
group.command('health', 'get_node_health')
group.command('load', 'get_node_load_info')
group.command('disable', 'disable_node')
group.command('enable', 'enable_node')
group.command('remove-state', 'remove_node_state')
group.command('restart', 'restart_node')
group.command('transition', 'start_node_transition')
group.command(
'transition-status',
'get_node_transition_progress'
)
group.command(
'add-configuration-parameter-overrides',
'add_configuration_parameter_overrides'
def property_commands(loader):
"""Load property related commands"""
sdk_func_path = 'azure.servicefabric#ServiceFabricClientAPIs.{}'
with CommandSuperGroup(__name__, loader, sdk_func_path,
client_factory=create_client) as super_group:
with super_group.group('property') as group:
group.command('put', 'put_property')
group.command('list', 'get_property_info_list')
group.command('get', 'get_property_info')
group.command('delete', 'delete_property')
# Standard commands
# -----------------
client_func_path = 'azure.servicefabric#ServiceFabricClientAPIs.{}'
mesh_code_package_func_path = 'azure.servicefabric.operations#MeshCodePackageOperations.{}'
mesh_gateway_func_path = 'azure.servicefabric.operations#MeshGatewayOperations.{}'
mesh_secret_func_path = 'azure.servicefabric.operations#MeshSecretOperations.{}'
mesh_secret_value_func_path = 'azure.servicefabric.operations#MeshSecretValueOperations.{}'
mesh_network_func_path = 'azure.servicefabric.operations#MeshNetworkOperations.{}'
mesh_application_func_path = 'azure.servicefabric.operations#MeshApplicationOperations.{}'
mesh_volume_func_path = 'azure.servicefabric.operations#MeshVolumeOperations.{}'
mesh_service_func_path = 'azure.servicefabric.operations#MeshServiceOperations.{}'
mesh_service_replica_func_path = 'azure.servicefabric.operations#MeshServiceReplicaOperations.{}' #pylint: disable=line-too-long
with CommandGroup(self, 'rpm', client_func_path,
client_factory=client_create) as group:
group.command('delete', 'delete_repair_task')
group.command('list', 'get_repair_task_list')
group.command('approve-force', 'force_approve_repair_task')
with CommandGroup(self, 'sa-cluster', client_func_path,
client_factory=client_create) as group:
group.command('config', 'get_cluster_configuration')
group.command('upgrade-status',
'get_cluster_configuration_upgrade_status')
with CommandGroup(self, 'cluster', client_func_path,
client_factory=client_create) as group:
group.command('health', 'get_cluster_health')
group.command('manifest', 'get_cluster_manifest')
group.command(
'code-versions',