def Args(parser):
     """Register flags for this command."""
     flags.AddClusterArgToParser(parser, positional=True)
     base.ASYNC_FLAG.AddToParser(parser)
     base.ASYNC_FLAG.SetDefault(parser, True)
     parser.add_argument('--node-count',
                         required=True,
                         type=int,
                         help="""\
     Nodes count for cluster
     """)
Exemplo n.º 2
0
 def Args(parser):
     """Register flags for this command."""
     flags.AddClusterArgToParser(parser)
     parser.add_argument('--node-count',
                         required=True,
                         type=int,
                         help="""\
     Initial number of nodes in the cluster
     """)
     parser.add_argument('--zone',
                         required=True,
                         help="""\
     Zone in which to create nodes in the cluster
     """)
     labels_util.AddCreateLabelsFlags(parser)
Exemplo n.º 3
0
    def Args(parser):
        """Register flags for this command."""
        flags.AddPrivatecloudArgToParser(parser, positional=True)
        flags.AddClusterArgToParser(parser, positional=False)
        flags.AddNodeTypeArgToParser(parser)
        base.ASYNC_FLAG.AddToParser(parser)
        base.ASYNC_FLAG.SetDefault(parser, True)
        parser.add_argument('--description',
                            help="""\
        Text describing the private cloud.
        """)
        parser.add_argument('--node-count',
                            required=True,
                            type=int,
                            help="""\
        Number of nodes in the management cluster.
        """)
        parser.add_argument('--management-range',
                            required=True,
                            help="""\
         IP address range in the private cloud to use for management appliances, in CIDR format. Use an IP address range that meets the [VMware Engine networking requirements](https://cloud.google.com/vmware-engine/docs/quickstart-networking-requirements).
        """)

        group = parser.add_mutually_exclusive_group(required=True)
        group.add_argument('--network',
                           required=False,
                           help="""\
        Network ID of the Google Cloud VPC network to connect with your private cloud.
        """)
        group.add_argument('--vmware-engine-network',
                           required=False,
                           hidden=True,
                           help="""\
        Network ID of the VMware Engine network attached to the private cloud.
        """)
        parser.add_argument('--network-project',
                            required=False,
                            help="""\
         Project ID or project name of the VPC network. Use this flag when the VPC network is in another project.
        """)
        parser.add_argument('--node-custom-core-count',
                            required=False,
                            hidden=True,
                            type=int,
                            help="""\
         Customized number of virtual cores to use for each node of the management cluster. To get a list of valid values for your node type, run the `{grandparent_command} node-types describe` command and reference the `availableCustomCoreCounts` field in the output.
        """)
Exemplo n.º 4
0
 def Args(parser):
   """Register flags for this command."""
   flags.AddClusterArgToParser(parser, positional=True)
   flags.AddNodeTypeArgToParser(parser)
   base.ASYNC_FLAG.AddToParser(parser)
   base.ASYNC_FLAG.SetDefault(parser, True)
   parser.add_argument(
       '--node-count',
       required=True,
       type=int,
       help="""\
       Nodes count for cluster
       """)
   parser.add_argument(
       '--node-custom-core-count',
       required=False,
       type=int,
       hidden=True,
       help="""\
        Customized number of virtual cores to use for each node of the cluster. To get a list of valid values for your node type, run the `{grandparent_command} node-types describe` command and reference the `availableCustomCoreCounts` field in the output.
       """)
Exemplo n.º 5
0
 def Args(parser):
   """Register flags for this command."""
   flags.AddClusterArgToParser(parser)
Exemplo n.º 6
0
 def Args(parser):
     """Register flags for this command."""
     flags.AddClusterArgToParser(parser, positional=True)
     base.ASYNC_FLAG.AddToParser(parser)
     base.ASYNC_FLAG.SetDefault(parser, True)
 def Args(parser):
     """Register flags for this command."""
     flags.AddClusterArgToParser(parser, positional=True)