def Args(cls, parser):
        _CommonArgs(
            parser,
            deprecate_maintenance_policy=cls._deprecate_maintenance_policy,
            support_min_node_cpu=cls._support_min_node_cpu,
            support_erase_vss=cls._support_erase_vss,
            snapshot_csek=cls._support_source_snapshot_csek,
            image_csek=cls._support_image_csek,
            support_display_device=cls._support_display_device,
            support_local_ssd_size=cls._support_local_ssd_size,
            support_numa_node_count=cls._support_numa_node_count,
            support_visible_core_count=cls._support_visible_core_count,
            support_max_run_duration=cls._support_max_run_duration,
            support_enable_target_shape=cls._support_enable_target_shape)

        cls.SOURCE_INSTANCE_TEMPLATE = (
            instances_flags.MakeBulkSourceInstanceTemplateArg())
        cls.SOURCE_INSTANCE_TEMPLATE.AddArgument(parser)
        instances_flags.AddMinCpuPlatformArgs(parser, base.ReleaseTrack.ALPHA)
        instances_flags.AddPublicDnsArgs(parser, instance=True)
        instances_flags.AddConfidentialComputeArgs(parser)
        instances_flags.AddPostKeyRevocationActionTypeArgs(parser)
        instances_flags.AddBulkCreateArgs(parser)
        instances_flags.AddSecureTagsArgs(parser)
        instances_flags.AddHostErrorTimeoutSecondsArgs(parser)
Esempio n. 2
0
 def Args(cls, parser):
     _CommonArgs(
         parser,
         deprecate_maintenance_policy=cls._deprecate_maintenance_policy,
         enable_resource_policy=cls._support_disk_resource_policy,
         supports_min_node_cpu=cls._support_min_node_cpu,
         supports_location_hint=cls._support_location_hint,
         supports_erase_vss=cls._support_erase_vss,
         snapshot_csek=cls._support_source_snapshot_csek,
         image_csek=cls._support_image_csek)
     CreateAlpha.SOURCE_INSTANCE_TEMPLATE = (
         instances_flags.MakeSourceInstanceTemplateArg())
     CreateAlpha.SOURCE_INSTANCE_TEMPLATE.AddArgument(parser)
     instances_flags.AddMinCpuPlatformArgs(parser, base.ReleaseTrack.ALPHA)
     instances_flags.AddPublicDnsArgs(parser, instance=True)
     instances_flags.AddLocalSsdArgsWithSize(parser)
     instances_flags.AddConfidentialComputeArgs(parser)
     instances_flags.AddPostKeyRevocationActionTypeArgs(parser)
     instances_flags.AddBulkCreateArgs(parser)
     instances_flags.AddBootDiskArgs(parser)
     instances_flags.AddNestedVirtualizationArgs(parser)