コード例 #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`.')
コード例 #3
0
 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
ファイル: __init__.py プロジェクト: PrateekKhatri/gcloud_cli
 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).')
コード例 #6
0
 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.'
         )