+ re.compile(r"^/2/instances/(%s)/activate-disks$" % instance_name_pattern):
+ rlib2.R_2_instances_name_activate_disks,
+ re.compile(r"^/2/instances/(%s)/deactivate-disks$" % instance_name_pattern):
+ rlib2.R_2_instances_name_deactivate_disks,
+ re.compile(r"^/2/instances/(%s)/recreate-disks$" % instance_name_pattern):
+ rlib2.R_2_instances_name_recreate_disks,
+ re.compile(r"^/2/instances/(%s)/prepare-export$" % instance_name_pattern):
+ rlib2.R_2_instances_name_prepare_export,
+ re.compile(r"^/2/instances/(%s)/export$" % instance_name_pattern):
+ rlib2.R_2_instances_name_export,
+ re.compile(r"^/2/instances/(%s)/migrate$" % instance_name_pattern):
+ rlib2.R_2_instances_name_migrate,
+ re.compile(r"^/2/instances/(%s)/failover$" % instance_name_pattern):
+ rlib2.R_2_instances_name_failover,
+ re.compile(r"^/2/instances/(%s)/rename$" % instance_name_pattern):
+ rlib2.R_2_instances_name_rename,
+ re.compile(r"^/2/instances/(%s)/modify$" % instance_name_pattern):
+ rlib2.R_2_instances_name_modify,
+ re.compile(r"^/2/instances/(%s)/disk/(%s)/grow$" %
+ (instance_name_pattern, disk_pattern)):
+ rlib2.R_2_instances_name_disk_grow,
+ re.compile(r"^/2/instances/(%s)/console$" % instance_name_pattern):
+ rlib2.R_2_instances_name_console,
+
+ "/2/groups": rlib2.R_2_groups,
+ re.compile(r"^/2/groups/(%s)$" % group_name_pattern):
+ rlib2.R_2_groups_name,
+ re.compile(r"^/2/groups/(%s)/modify$" % group_name_pattern):
+ rlib2.R_2_groups_name_modify,
+ re.compile(r"^/2/groups/(%s)/rename$" % group_name_pattern):
+ rlib2.R_2_groups_name_rename,
+ re.compile(r"^/2/groups/(%s)/assign-nodes$" % group_name_pattern):
+ rlib2.R_2_groups_name_assign_nodes,
+ re.compile(r"^/2/groups/(%s)/tags$" % group_name_pattern):
+ rlib2.R_2_groups_name_tags,
+
+ "/2/jobs": rlib2.R_2_jobs,
+ re.compile(r"^/2/jobs/(%s)$" % job_id_pattern):
+ rlib2.R_2_jobs_id,
+ re.compile(r"^/2/jobs/(%s)/wait$" % job_id_pattern):
+ rlib2.R_2_jobs_id_wait,
+
+ "/2/tags": rlib2.R_2_tags,
+ "/2/info": rlib2.R_2_info,
+ "/2/os": rlib2.R_2_os,
+ "/2/redistribute-config": rlib2.R_2_redist_config,
+ "/2/features": rlib2.R_2_features,
+ "/2/modify": rlib2.R_2_cluster_modify,
+ re.compile(r"^/2/query/(%s)$" % query_res_pattern): rlib2.R_2_query,
+ re.compile(r"^/2/query/(%s)/fields$" % query_res_pattern):
+ rlib2.R_2_query_fields,
+ }
+
+
+CONNECTOR.update(GetHandlers(_NAME_PATTERN, _NAME_PATTERN, _NAME_PATTERN,
+ constants.JOB_ID_TEMPLATE, _DISK_PATTERN,
+ _NAME_PATTERN))