@@ -44,56 +44,56 @@ def get_deployment_client(api_key):
4444 type = ChoiceType (DEPLOYMENT_TYPES_MAP , case_sensitive = False ),
4545 required = True ,
4646 help = "Model deployment type. Only TensorFlow models can currently be deployed" ,
47- cls = common .OptionReadValueFromConfigFile ,
47+ cls = common .GradientOption ,
4848)
4949@click .option (
5050 "--modelId" ,
5151 "model_id" ,
5252 required = True ,
5353 help = "ID of a trained model" ,
54- cls = common .OptionReadValueFromConfigFile ,
54+ cls = common .GradientOption ,
5555)
5656@click .option (
5757 "--name" ,
5858 "name" ,
5959 required = True ,
6060 help = "Human-friendly name for new model deployment" ,
61- cls = common .OptionReadValueFromConfigFile ,
61+ cls = common .GradientOption ,
6262)
6363@click .option (
6464 "--machineType" ,
6565 "machine_type" ,
6666 required = True ,
6767 help = "Type of machine for new deployment" ,
68- cls = common .OptionReadValueFromConfigFile ,
68+ cls = common .GradientOption ,
6969)
7070@click .option (
7171 "--imageUrl" ,
7272 "image_url" ,
7373 required = True ,
7474 help = "Docker image for model serving" ,
75- cls = common .OptionReadValueFromConfigFile ,
75+ cls = common .GradientOption ,
7676)
7777@click .option (
7878 "--instanceCount" ,
7979 "instance_count" ,
8080 type = int ,
8181 required = True ,
8282 help = "Number of machine instances" ,
83- cls = common .OptionReadValueFromConfigFile ,
83+ cls = common .GradientOption ,
8484)
8585@click .option (
8686 "--clusterId" ,
8787 "cluster_id" ,
8888 help = "Cluster ID" ,
89- cls = common .OptionReadValueFromConfigFile ,
89+ cls = common .GradientOption ,
9090)
9191@click .option (
9292 "--vpc" ,
9393 "use_vpc" ,
9494 type = bool ,
9595 is_flag = True ,
96- cls = common .OptionReadValueFromConfigFile ,
96+ cls = common .GradientOption ,
9797)
9898@api_key_option
9999@common .options_file
@@ -123,19 +123,19 @@ def create_deployment(api_key, use_vpc, options_file, **kwargs):
123123 "state" ,
124124 type = ChoiceType (DEPLOYMENT_STATES_MAP , case_sensitive = False ),
125125 help = "Filter by deployment state" ,
126- cls = common .OptionReadValueFromConfigFile ,
126+ cls = common .GradientOption ,
127127)
128128@click .option (
129129 "--projectId" ,
130130 "project_id" ,
131131 help = "Use to filter by project ID" ,
132- cls = common .OptionReadValueFromConfigFile ,
132+ cls = common .GradientOption ,
133133)
134134@click .option (
135135 "--modelId" ,
136136 "model_id" ,
137137 help = "Use to filter by model ID" ,
138- cls = common .OptionReadValueFromConfigFile ,
138+ cls = common .GradientOption ,
139139)
140140@api_key_option
141141@common .options_file
@@ -155,14 +155,14 @@ def get_deployments_list(api_key, options_file, **filters):
155155 "id_" ,
156156 required = True ,
157157 help = "Deployment ID" ,
158- cls = common .OptionReadValueFromConfigFile ,
158+ cls = common .GradientOption ,
159159)
160160@click .option (
161161 "--vpc" ,
162162 "use_vpc" ,
163163 type = bool ,
164164 is_flag = True ,
165- cls = common .OptionReadValueFromConfigFile ,
165+ cls = common .GradientOption ,
166166)
167167@api_key_option
168168@common .options_file
@@ -178,14 +178,14 @@ def start_deployment(id_, use_vpc, options_file, api_key=None):
178178 "id_" ,
179179 required = True ,
180180 help = "Deployment ID" ,
181- cls = common .OptionReadValueFromConfigFile ,
181+ cls = common .GradientOption ,
182182)
183183@click .option (
184184 "--vpc" ,
185185 "use_vpc" ,
186186 type = bool ,
187187 is_flag = True ,
188- cls = common .OptionReadValueFromConfigFile ,
188+ cls = common .GradientOption ,
189189)
190190@api_key_option
191191@common .options_file
0 commit comments