Esempio n. 1
0
 def Args(cls, parser):
     cls.LOCATION_ARG = (
         location_flags.InterconnectLocationArgumentForOtherResource(
             _LOCATION_FLAG_MSG))
     cls.LOCATION_ARG.AddArgument(parser)
     cls.INTERCONNECT_ARG = flags.InterconnectArgument()
     cls.INTERCONNECT_ARG.AddArgument(parser, operation_type='create')
     flags.AddCreateBetaArgs(parser)
Esempio n. 2
0
 def Args(cls, parser):
     cls.LOCATION_ARG = (
         location_flags.InterconnectLocationArgumentForOtherResource(
             _LOCATION_FLAG_MSG))
     cls.LOCATION_ARG.AddArgument(parser)
     cls.INTERCONNECT_ARG = flags.InterconnectArgument()
     cls.INTERCONNECT_ARG.AddArgument(parser, operation_type='create')
     flags.AddCreateGaArgs(parser)
     parser.display_info.AddCacheUpdater(flags.InterconnectsCompleter)
Esempio n. 3
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)
Esempio n. 4
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)
Esempio n. 5
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)
Esempio n. 6
0
 def Args(cls, parser):
   cls.INTERCONNECT_ARG = flags.InterconnectArgument()
   cls.INTERCONNECT_ARG.AddArgument(parser, operation_type='describe')
Esempio n. 7
0
 def Args(cls, parser):
     cls.INTERCONNECT_ARG = flags.InterconnectArgument()
     cls.INTERCONNECT_ARG.AddArgument(parser)
Esempio n. 8
0
 def Args(cls, parser):
     cls.INTERCONNECT_ARG = flags.InterconnectArgument(plural=True)
     cls.INTERCONNECT_ARG.AddArgument(parser, operation_type='delete')
     parser.display_info.AddCacheUpdater(flags.InterconnectsCompleter)
Esempio n. 9
0
 def Args(cls, parser):
     cls.INTERCONNECT_ARG = flags.InterconnectArgument(plural=True)
     cls.INTERCONNECT_ARG.AddArgument(parser, operation_type='delete')
Esempio n. 10
0
    def Args(cls, parser):
        cls.INTERCONNECT_ARG = flags.InterconnectArgument()
        cls.INTERCONNECT_ARG.AddArgument(parser, operation_type='update')

        flags.AddMacsecEnabledForUpdate(parser)
        flags.AddFailOpenForUpdate(parser)
Esempio n. 11
0
    def Args(cls, parser):
        cls.INTERCONNECT_ARG = flags.InterconnectArgument()
        cls.INTERCONNECT_ARG.AddArgument(parser, operation_type='update')

        flags.AddMacsecPreSharedKeyNameForAddKey(parser)
        flags.AddMacsecPreSharedKeyStartTimeForAddKey(parser)