def Args(parser): resource_args.AddInstanceResourceArg(parser, 'Instance to create.') base.ASYNC_FLAG.AddToParser(parser) labels_util.AddCreateLabelsFlags(parser) parser.add_argument( '--zone', help='Compute Engine zone in which the instance will ' 'be created. For example: `--zone=us-central1-a`.', required=True) parser.add_argument( '--edition', choices=_EDITIONS, default='basic', help='Edition of the Data Fusion instance to create. ' 'For example: `--edition=enterprise`.') parser.add_argument( '--options', type=arg_parsers.ArgDict(), metavar='KEY=VALUE', help='Options to use for instance creation, ' 'specified as KEY1=VALUE1,KEY2=VALUE2.') parser.add_argument( '--enable_stackdriver_logging', action='store_true', help='Enable Stackdriver logging for this Data Fusion instance.') parser.add_argument( '--enable_stackdriver_monitoring', action='store_true', help='Enable Stackdriver monitoring for this Data Fusion instance.')
def Args(parser): resource_args.AddInstanceResourceArg(parser, 'Instance to describe.') base.URI_FLAG.RemoveFromParser(parser) parser.add_argument( '--namespace', help='CDAP Namespace whose IAM policy we wish to fetch. ' 'For example: `--namespace=my-namespace`.')
def Args(parser): resource_args.AddInstanceResourceArg(parser, 'Instance to set.') base.URI_FLAG.RemoveFromParser(parser) iam_util.AddArgForPolicyFile(parser) parser.add_argument( '--namespace', help='CDAP Namespace whose IAM policy we wish to set. ' 'For example: `--namespace=my-namespace`.')
def Args(parser): resource_args.AddInstanceResourceArg(parser, 'Instance to describe.') parser.display_info.AddFormat('table[box](' 'name.segment(5):label=NAME,' 'type:label=EDITION,' 'createTime:reverse:label=CREATE_TIME,' 'updateTime:reverse:label=UPDATE_TIME,' 'zone:label=ZONE,' 'service_endpoint:label=INSTANCE_URL' ')')
def Args(parser): resource_args.AddInstanceResourceArg(parser, 'Instance to update.') base.ASYNC_FLAG.AddToParser(parser) labels_util.AddCreateLabelsFlags(parser) parser.add_argument( '--enable_stackdriver_logging', action='store_true', help='Enable Stackdriver logging for this Data Fusion instance.') parser.add_argument( '--enable_stackdriver_monitoring', action='store_true', help='Enable Stackdriver monitoring for this Data Fusion instance.' ) parser.add_argument('--version', help='Version of Datafusion to update to.')
def Args(parser): resource_args.AddInstanceResourceArg(parser, 'Instance to restart.') base.ASYNC_FLAG.AddToParser(parser)