Exemple #1
0
    def Args(cls, parser):

        cls.INTERCONNECT_ARG = flags.InterconnectArgument()
        cls.INTERCONNECT_ARG.AddArgument(parser, operation_type='patch')

        parser.add_argument(
            '--description',
            help='An optional, textual description for the interconnect.')
        flags.AddAdminEnabledForPatch(parser)
        flags.AddNocContactEmail(parser)
        flags.AddRequestedLinkCountForPatch(parser)
Exemple #2
0
def _ArgsCommon(cls, parser, support_labels=False):
  """Shared arguments for update commands."""
  cls.INTERCONNECT_ARG = flags.InterconnectArgument()
  cls.INTERCONNECT_ARG.AddArgument(parser, operation_type='update')

  parser.add_argument(
      '--description',
      help='An optional, textual description for the interconnect.')
  flags.AddAdminEnabledForUpdate(parser)
  flags.AddNocContactEmail(parser)
  flags.AddRequestedLinkCountForUpdate(parser)
  if support_labels:
    labels_util.AddUpdateLabelsFlags(parser)
Exemple #3
0
    def Args(cls, parser):
        cls.LOCATION_ARG = (
            location_flags.InterconnectLocationArgumentForOtherResource(
                'The location for the interconnect, user can first list the '
                'locations by using '
                '{ gcloud alpha compute interconnects locations list }, then find'
                'the appropriate location to use when create interconnect here.'
            ))
        cls.LOCATION_ARG.AddArgument(parser)
        cls.INTERCONNECT_ARG = flags.InterconnectArgument()
        cls.INTERCONNECT_ARG.AddArgument(parser, operation_type='create')

        parser.add_argument(
            '--description',
            help='An optional, textual description for the interconnect.')
        flags.AddAdminEnabled(parser)
        flags.AddInterconnectType(parser)
        flags.AddLinkType(parser)
        flags.AddNocContactEmail(parser)
        flags.AddRequestedLinkCount(parser)