Ejemplo n.º 1
0
 def Args(cls, parser):
     dataproc = dp.Dataproc(cls.ReleaseTrack())
     flags.AddClusterResourceArg(parser, 'import', dataproc.api_version)
     export_util.AddImportFlags(parser, cls.GetSchemaPath(for_help=True))
     base.ASYNC_FLAG.AddToParser(parser)
     # 30m is backend timeout + 5m for safety buffer.
     flags.AddTimeoutFlag(parser, default='35m')
 def Args(cls, parser):
   flags.INSTANCE_ARG.AddArgument(parser, operation_type='update')
   export_util.AddImportFlags(parser, cls.GetSchemaPath(for_help=True))
   parser.add_argument(
       '--most-disruptive-allowed-action',
       help=('If specified, Compute Engine returns an error if the update '
             'requires a higher action to be applied to the instance. If '
             'not specified, the default will be REFRESH.'))
   parser.add_argument(
       '--minimal-action',
       help=(
           'If specified, this action or higher level action is performed on '
           'the instance irrespective of what action is required for the '
           'update to take effect. If not specified, then Compute Engine acts '
           'based on the minimum action required.'))
   if cls._support_secure_tag:
     parser.add_argument(
         '--clear-secure-tag',
         dest='clear_secure_tag',
         action='store_true',
         default=None,
         help=(
             'If specified, all secure tags bound to this instance will be'
             ' removed.'
         ))
Ejemplo n.º 3
0
 def Args(cls, parser):
     cls.URL_MAP_ARG = flags.UrlMapArgument(
         include_l7_internal_load_balancing=cls.
         _include_l7_internal_load_balancing)
     cls.URL_MAP_ARG.AddArgument(parser, operation_type='import')
     export_util.AddImportFlags(
         parser, _GetSchemaPath(cls.ReleaseTrack(), for_help=True))
Ejemplo n.º 4
0
def AddImportArgs(parser, verb, api_version, resource_message_name):
    AddAutoscalingPolicyResourceArg(parser, verb, api_version)

    schema_path = export_util.GetSchemaPath('dataproc',
                                            api_version,
                                            resource_message_name,
                                            for_help=True)
    export_util.AddImportFlags(parser, schema_path)
Ejemplo n.º 5
0
    def Args(cls, parser):
        if cls.ReleaseTrack() == base.ReleaseTrack.ALPHA:
            cls.URL_MAP_ARG = flags.UrlMapArgument(include_alpha=True)
        else:
            cls.URL_MAP_ARG = flags.UrlMapArgument()

        cls.URL_MAP_ARG.AddArgument(parser, operation_type='import')
        export_util.AddImportFlags(parser, cls.GetSchemaPath(for_help=True))
Ejemplo n.º 6
0
 def Args(cls, parser):
     flags.AddTemplateResourceArg(parser,
                                  'import',
                                  api_version=cls.GetApiVersion())
     export_util.AddImportFlags(parser, cls.GetSchemaPath(for_help=True))
Ejemplo n.º 7
0
 def Args(cls, parser):
   parser.add_argument('name', help='The name of the cluster to import.')
   export_util.AddImportFlags(parser, cls.GetSchemaPath(for_help=True))
   base.ASYNC_FLAG.AddToParser(parser)
   # 30m is backend timeout + 5m for safety buffer.
   flags.AddTimeoutFlag(parser, default='35m')
Ejemplo n.º 8
0
 def Args(cls, parser):
     cls.FORWARDING_RULE_ARG = flags.ForwardingRuleArgument()
     cls.FORWARDING_RULE_ARG.AddArgument(parser, operation_type='import')
     export_util.AddImportFlags(parser, cls.GetSchemaPath(for_help=True))
 def Args(cls, parser):
     flags.GLOBAL_REGIONAL_BACKEND_SERVICE_ARG.AddArgument(
         parser, operation_type='import')
     export_util.AddImportFlags(parser, cls.GetSchemaPath(for_help=True))
Ejemplo n.º 10
0
 def Args(cls, parser):
     cls.TARGET_HTTPS_PROXY_ARG = flags.TargetHttpsProxyArgument(
         include_l7_internal_load_balancing=True)
     cls.TARGET_HTTPS_PROXY_ARG.AddArgument(parser, operation_type='import')
     export_util.AddImportFlags(
         parser, _GetSchemaPath(cls.ReleaseTrack(), for_help=True))
Ejemplo n.º 11
0
 def Args(cls, parser):
     cls.TARGET_HTTP_PROXY_ARG = flags.TargetHttpProxyArgument()
     cls.TARGET_HTTP_PROXY_ARG.AddArgument(parser, operation_type='import')
     export_util.AddImportFlags(
         parser, _GetSchemaPath(cls.ReleaseTrack(), for_help=True))
Ejemplo n.º 12
0
 def Args(cls, parser):
     cls.TARGET_GRPC_PROXY_ARG = flags.TargetGrpcProxyArgument()
     cls.TARGET_GRPC_PROXY_ARG.AddArgument(parser, operation_type='import')
     export_util.AddImportFlags(parser, cls.GetSchemaPath(for_help=True))
Ejemplo n.º 13
0
 def Args(cls, parser):
     flags.AddTemplateResourceArg(parser,
                                  'import',
                                  api_version=cls.GetApiVersion())
     export_util.AddImportFlags(parser)
Ejemplo n.º 14
0
 def Args(cls, parser):
   cls.SSL_POLICY_ARG = flags.GetSslPolicyArgument()
   cls.SSL_POLICY_ARG.AddArgument(parser, operation_type='import')
   export_util.AddImportFlags(parser, cls.GetSchemaPath(for_help=True))
Ejemplo n.º 15
0
    def Args(cls, parser):
        dataproc = dp.Dataproc(cls.ReleaseTrack())

        flags.AddAutoscalingPolicyResourceArg(parser, 'import',
                                              dataproc.api_version)
        export_util.AddImportFlags(parser)