示例#1
0
 def _CheckPlatform(self, args):
   if flags.IsManaged(args):
     raise exceptions.PlatformError(
         'This command is in beta for fully managed Cloud Run; '
         'use `gcloud beta run domain-mappings delete`.')
示例#2
0
 def _CheckPlatform(self):
     if flags.GetPlatform() == flags.PLATFORM_MANAGED:
         raise exceptions.PlatformError(
             'This command group is in beta for fully managed Cloud Run; '
             'use `gcloud beta run domain-mappings`.')
 def _CheckPlatform(self):
     if platforms.GetPlatform() == platforms.PLATFORM_MANAGED:
         raise run_exceptions.PlatformError(
             'The flag --platform={0} is not supported. '
             'Instead of using the flag --platform={0} in "gcloud events", '
             'run "gcloud eventarc".'.format(platforms.PLATFORM_MANAGED))
示例#4
0
 def _CheckPlatform(self):
     if platforms.GetPlatform() != platforms.PLATFORM_MANAGED:
         raise exceptions.PlatformError(
             'This command group only supports reading logs for '
             'Cloud Run (fully managed).')
示例#5
0
 def _CheckPlatform(self):
   platform = platforms.GetPlatform()
   if platform is not None and platform != platforms.PLATFORM_MANAGED:
     raise exceptions.PlatformError(
         'This command group only supports listing regions for '
         'Cloud Run (fully managed).')
 def _CheckPlatform(self):
     platform = platforms.GetPlatform()
     if platform != platforms.PLATFORM_MANAGED:
         raise exceptions.PlatformError(
             'This command is only supported for fully managed Cloud Run.')
示例#7
0
 def _CheckPlatform(self):
     platform = platforms.GetPlatform(prompt_if_unset=False)
     if platform is not None and platform != platforms.PLATFORM_MANAGED:
         raise exceptions.PlatformError(
             'This command group is only supported for fully managed Cloud Run.'
         )