Example #1
0
 def Args(parser):
     messages = apis.GetMessagesModule('dns', 'v1beta2')
     _AddArgsCommon(parser, messages)
     flags.GetManagedZoneNetworksArg().AddToParser(parser)
     flags.GetManagedZoneVisibilityArg().AddToParser(parser)
     parser.display_info.AddCacheUpdater(flags.ManagedZoneCompleter)
     flags.GetForwardingTargetsArg().AddToParser(parser)
Example #2
0
def _AddArgsCommon(parser, messages):
    flags.GetDnsZoneArg(
        'The name of the managed-zone to be created.').AddToParser(parser)
    flags.GetManagedZonesDnsNameArg().AddToParser(parser)
    flags.GetManagedZonesDescriptionArg(required=True).AddToParser(parser)
    flags.AddCommonManagedZonesDnssecArgs(parser, messages)
    labels_util.AddCreateLabelsFlags(parser)
    flags.GetManagedZoneNetworksArg().AddToParser(parser)
    flags.GetManagedZoneVisibilityArg().AddToParser(parser)
Example #3
0
def _AddArgsCommon(parser, messages):
    """Adds the common arguments for all versions."""
    flags.GetDnsZoneArg(
        'The name of the managed-zone to be created.').AddToParser(parser)
    flags.GetManagedZonesDnsNameArg().AddToParser(parser)
    flags.GetManagedZonesDescriptionArg(required=True).AddToParser(parser)
    flags.AddCommonManagedZonesDnssecArgs(parser, messages)
    labels_util.AddCreateLabelsFlags(parser)
    flags.GetManagedZoneNetworksArg().AddToParser(parser)
    flags.GetManagedZoneVisibilityArg().AddToParser(parser)
    flags.GetForwardingTargetsArg().AddToParser(parser)
    flags.GetDnsPeeringArgs().AddToParser(parser)