def _Args(parser, support_public_dns, support_network_tier): """Register parser args common to all tracks.""" parser.add_argument('--access-config-name', default=constants.DEFAULT_ACCESS_CONFIG_NAME, help="""\ Specifies the name of the new access configuration. ``{0}'' is used as the default if this flag is not provided. Since ONE_TO_ONE_NAT is currently the only access-config type, it is not recommended that you change this value. """.format(constants.DEFAULT_ACCESS_CONFIG_NAME)) parser.add_argument('--address', action=arg_parsers.StoreOnceAction, help="""\ Specifies the external IP address of the new access configuration. If this is not specified, then the service will choose an available ephemeral IP address. If an explicit IP address is given, then that IP address must be reserved by the project and not be in use by another resource. """) flags.AddNetworkInterfaceArgs(parser) flags.AddPublicPtrArgs(parser, instance=False) if support_public_dns: flags.AddPublicDnsArgs(parser, instance=False) if support_network_tier: flags.AddNetworkTierArgs(parser, instance=False) flags.INSTANCE_ARG.AddArgument(parser)
def _Args(parser, support_public_dns, support_network_tier): """Register parser args common to all tracks.""" access_config_name = parser.add_argument( '--access-config-name', default=constants.DEFAULT_ACCESS_CONFIG_NAME, help='Specifies the name of the new access configuration.') access_config_name.detailed_help = """\ Specifies the name of the new access configuration. ``{0}'' is used as the default if this flag is not provided. """.format(constants.DEFAULT_ACCESS_CONFIG_NAME) address = parser.add_argument( '--address', action=arg_parsers.StoreOnceAction, help=('Specifies the external IP address of the new access ' 'configuration.')) address.detailed_help = """\ Specifies the external IP address of the new access configuration. If this is not specified, then the service will choose an available ephemeral IP address. If an explicit IP address is given, then that IP address must be reserved by the project and not be in use by another resource. """ instance_flags.AddNetworkInterfaceArgs(parser) if support_public_dns: instance_flags.AddPublicDnsArgs(parser, instance=False) if support_network_tier: instance_flags.AddNetworkTierArgs(parser, instance=False) instance_flags.INSTANCE_ARG.AddArgument(parser)
def _Args(parser, support_public_dns, support_network_tier): """Register parser args common to all tracks.""" flags.INSTANCE_ARG.AddArgument(parser) flags.AddNetworkInterfaceArgs(parser) flags.AddPublicPtrArgs(parser, instance=False) if support_public_dns: flags.AddPublicDnsArgs(parser, instance=False) if support_network_tier: flags.AddNetworkTierArgs(parser, instance=False, for_update=True)
def Args(parser): instance_flags.INSTANCE_ARG.AddArgument(parser) instance_flags.AddNetworkInterfaceArgs(parser) instance_flags.AddPublicDnsArgs(parser, instance=False) instance_flags.AddNetworkTierArgs(parser, instance=False)
def Args(parser): flags.INSTANCE_ARG.AddArgument(parser) flags.AddNetworkInterfaceArgs(parser) flags.AddPublicDnsArgs(parser, instance=False) flags.AddNetworkTierArgs(parser, instance=False, for_update=True)