/* * Copyright © 2012-2016 Cask Data, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); you may not * use this file except in compliance with the License. You may obtain a copy of * the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the * License for the specific language governing permissions and limitations under * the License. */ package co.cask.cdap.cli; /** * Argument names. */ public enum ArgumentName { PROGRAM("app-id.program-id"), STREAM("stream-id"), WORKER("app-id.worker-id"), METHOD("app-id.method-id"), FLOW("app-id.flow-id"), FLOWLET("app-id.flow-id.flowlet-id"), WORKFLOW("app-id.workflow-id"), SERVICE("app-id.service-id"), MAPREDUCE("app-id.mapreduce-id"), SPARK("app-id.spark-id"), APP_CONFIG("app-config"), APP_CONFIG_FILE("app-config-file"), RUNTIME_ARGS("runtime-args"), HOSTNAME("hostname"), DATASET_TYPE("dataset-type"), DATASET_MODULE("dataset-module"), DATASET_PROPERTIES("dataset-properties"), DATASET_DESCRIPTON("dataset-description"), NEW_DATASET_MODULE("new-dataset-module"), DATASET("dataset-name"), NEW_DATASET("new-dataset-name"), STREAM_EVENT("stream-event"), CONTENT_TYPE("content-type"), LOCAL_FILE_PATH("local-file-path"), NEW_STREAM("new-stream-id"), PARAMETER_MAP("parameter-map"), TTL_IN_SECONDS("ttl-in-seconds"), NOTIFICATION_THRESHOLD_MB("notification-threshold-mb"), STREAM_DESCRIPTION("stream-description"), NUM_INSTANCES("num-instances"), START_TIME("start-time"), END_TIME("end-time"), TIMEOUT("timeout"), LIMIT("limit"), RUN_STATUS("status"), RUN_ID("runid"), APP_JAR_FILE("app-jar-file"), DATASET_MODULE_JAR_FILE("module-jar-file"), DATASET_MODULE_JAR_CLASSNAME("module-jar-classname"), QUERY("query"), APP("app-id"), PROGRAM_TYPES("program-types"), VIEW("view-id"), HTTP_METHOD("http-method"), ENDPOINT("endpoint"), HEADERS("headers"), HTTP_BODY("body"), /** * stream format */ FORMAT("format"), SCHEMA("schema"), SETTINGS("settings"), FREQUENCY("frequency"), NAMESPACE_NAME("namespace-name"), NAMESPACE_DESCRIPTION("namespace-description"), INSTANCE("instance-id"), COMMAND_CATEGORY("command-category"), TABLE_RENDERER("table-renderer"), WORKFLOW_NODE("workflow-node"), WORKFLOW_TOKEN_SCOPE("workflow-token-scope"), WORKFLOW_TOKEN_KEY("workflow-token-key"), /** * Artifacts */ ARTIFACT_NAME("artifact-name"), ARTIFACT_VERSION("artifact-version"), ARTIFACT_PARENTS("artifact-parents"), ARTIFACT_CONFIG_FILE("artifact-config"), SCOPE("scope"), PLUGIN_TYPE("plugin-type"), PLUGIN_NAME("plugin-name"), INSTANCE_URI("cdap-instance-uri"), VERIFY_SSL_CERT("verify-ssl-cert"), ENTITY("entity-id"), /** * Metadata */ SEARCH_QUERY("search-query"), TARGET_TYPE("target-type"), METADATA_SCOPE("scope"), /** * Authorization */ PRINCIPAL_TYPE("principal-type"), PRINCIPAL_NAME("principal-name"), ROLE_NAME("role-name"); private final String name; ArgumentName(String name) { this.name = name; } public String getName() { return name; } @Override public String toString() { return name; } }