Exemple #1
0
 def Args(parser):
     """Register flags for this command."""
     flags.AddPrivatecloudArgToParser(parser, positional=True)
     parser.add_argument('--description',
                         help="""\
     Text describing the private cloud
     """)
     parser.add_argument('--vpc-network',
                         required=True,
                         help="""\
     Name of the virtual network for this private cloud
     """)
     parser.add_argument('--management-ip-range',
                         required=True,
                         help="""\
     IP address range available to the private cloud for management access,
     in address/mask format. For example,
     `--management-ip-range=10.0.1.0/29`.
     """)
     parser.add_argument('--workload-ip-range',
                         required=True,
                         help="""\
     IP address range available to the private cloud in address/mask
     format. For example, `--workload-ip-range=10.0.1.0/29`.
     """)
     labels_util.AddCreateLabelsFlags(parser)
Exemple #2
0
 def Args(parser):
     """Register flags for this command."""
     flags.AddPrivatecloudArgToParser(parser)
     parser.display_info.AddFormat('table(name.segment(-1):label=NAME,'
                                   'name.segment(-5):label=PROJECT,'
                                   'name.segment(-3):label=PRIVATECLOUD,'
                                   'nodeCount,createTime,status)')
Exemple #3
0
 def Args(parser):
     """Register flags for this command."""
     flags.AddPrivatecloudArgToParser(parser)
     parser.display_info.AddFormat('table(name.segment(-1):label=NAME,'
                                   'name.segment(-5):label=LOCATION,'
                                   'name.segment(-3):label=PRIVATE_CLOUD,'
                                   'createTime,state,activationKey)')
Exemple #4
0
 def Args(parser):
     """Register flags for this command."""
     flags.AddPrivatecloudArgToParser(parser)
     parser.display_info.AddFormat('table(name.segment(-1):label=NAME,'
                                   'name.segment(-5):label=LOCATION,'
                                   'name.segment(-3):label=PRIVATE_CLOUD,'
                                   'nodeTypeId:label=NODE_TYPE,'
                                   'nodeCount,createTime,state)')
Exemple #5
0
 def Args(parser):
     """Register flags for this command."""
     flags.AddPrivatecloudArgToParser(parser, positional=True)
     base.ASYNC_FLAG.AddToParser(parser)
     base.ASYNC_FLAG.SetDefault(parser, True)
     parser.add_argument('--description',
                         help="""\
     Text describing the private cloud
     """)
 def Args(parser):
     """Register flags for this command."""
     flags.AddPrivatecloudArgToParser(parser, positional=True)
     base.ASYNC_FLAG.AddToParser(parser)
     base.ASYNC_FLAG.SetDefault(parser, True)
     parser.add_argument('--delay-hours',
                         required=False,
                         default=3,
                         choices=[0, 1, 2, 3, 4, 5, 6, 7, 8],
                         type=int,
                         help="""
     Number of hours to wait before deleting the private cloud. Specifying a value of `0` for this field begins the deletion process immediately.
     """)
Exemple #7
0
 def Args(parser):
     """Register flags for this command."""
     flags.AddPrivatecloudArgToParser(parser, positional=True)
     parser.add_argument('--description',
                         help="""\
     Text describing the private cloud
     """)
     parser.add_argument('--external-ip-access',
                         action='store_true',
                         default=None,
                         help="""\
     Enable public ips for management vms.
     Use --no-external-ip-access to disable
     """)
     labels_util.AddCreateLabelsFlags(parser)
Exemple #8
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.
        """)
 def Args(parser):
     """Register flags for this command."""
     flags.AddPrivatecloudArgToParser(parser)
     base.ASYNC_FLAG.AddToParser(parser)
     base.ASYNC_FLAG.SetDefault(parser, True)
Exemple #10
0
 def Args(parser):
     """Register flags for this command."""
     flags.AddPrivatecloudArgToParser(parser, positional=True)