def Args(cls, parser): _Args(cls, parser) flags.AddAddressesAndIPVersions(parser, required=False) flags.AddNetworkTier(parser) flags.AddPrefixLength(parser) flags.AddPurpose(parser) cls.SUBNETWORK_ARG = flags.SubnetworkArgument() cls.SUBNETWORK_ARG.AddArgument(parser) cls.NETWORK_ARG = flags.NetworkArgument() cls.NETWORK_ARG.AddArgument(parser)
def _Args(cls, parser, support_shared_loadbalancer_vip): """Argument parsing.""" cls.ADDRESSES_ARG = flags.AddressArgument(required=False) cls.ADDRESSES_ARG.AddArgument(parser, operation_type='create') flags.AddDescription(parser) parser.display_info.AddCacheUpdater(flags.AddressesCompleter) flags.AddAddressesAndIPVersions(parser, required=False) flags.AddNetworkTier(parser) flags.AddPrefixLength(parser) flags.AddPurpose(parser, support_shared_loadbalancer_vip) cls.SUBNETWORK_ARG = flags.SubnetworkArgument() cls.SUBNETWORK_ARG.AddArgument(parser) cls.NETWORK_ARG = flags.NetworkArgument() cls.NETWORK_ARG.AddArgument(parser)
def _Args(cls, parser, support_psc_google_apis, support_ipv6_reservation): """Argument parsing.""" cls.ADDRESSES_ARG = flags.AddressArgument(required=False) cls.ADDRESSES_ARG.AddArgument(parser, operation_type='create') flags.AddDescription(parser) parser.display_info.AddCacheUpdater(flags.AddressesCompleter) flags.AddAddressesAndIPVersions(parser, required=False) flags.AddNetworkTier(parser) flags.AddPrefixLength(parser) flags.AddPurpose(parser, support_psc_google_apis) flags.AddIPv6EndPointType(parser, support_ipv6_reservation) cls.SUBNETWORK_ARG = flags.SubnetworkArgument() cls.SUBNETWORK_ARG.AddArgument(parser) cls.NETWORK_ARG = flags.NetworkArgument() cls.NETWORK_ARG.AddArgument(parser)