コード例 #1
0
ファイル: create.py プロジェクト: bopopescu/HeuApplication
    def Args(parser):
        _Args(parser)
        group = parser.add_mutually_exclusive_group()
        _AddAdditionalZonesFlag(group, deprecated=True)

        flags.AddAcceleratorArgs(parser)
        flags.AddAddonsFlags(parser)
        flags.AddClusterAutoscalingFlags(parser)
        flags.AddClusterScopesFlag(parser)
        flags.AddEnableAuditLoggingFlag(parser, hidden=True)
        flags.AddEnableAutoRepairFlag(parser)
        flags.AddEnableAutoUpgradeFlag(parser)
        flags.AddEnableKubernetesAlphaFlag(parser)
        flags.AddEnableLegacyAuthorizationFlag(parser)
        flags.AddIPAliasFlags(parser, hidden=False)
        flags.AddLabelsFlag(parser)
        flags.AddLocalSSDFlag(parser)
        flags.AddMaintenanceWindowFlag(parser, hidden=True)
        flags.AddMasterAuthorizedNetworksFlags(parser)
        flags.AddMinCpuPlatformFlag(parser)
        flags.AddWorkloadMetadataFromNodeFlag(parser, hidden=True)
        flags.AddNetworkPolicyFlags(parser, hidden=False)
        flags.AddNodeLocationsFlag(group)
        flags.AddNodeTaintsFlag(parser, hidden=True)
        flags.AddPreemptibleFlag(parser)
        flags.AddServiceAccountFlag(parser)
コード例 #2
0
 def Args(parser):
     _AddCommonArgs(parser)
     group = parser.add_mutually_exclusive_group(required=True)
     _AddMutuallyExclusiveArgs(group)
     flags.AddClusterAutoscalingFlags(parser, group)
     _AddAdditionalZonesArg(group)
     flags.AddMasterAuthorizedNetworksFlags(parser, group)
     flags.AddEnableLegacyAuthorizationFlag(group)
     flags.AddStartIpRotationFlag(group)
     flags.AddCompleteIpRotationFlag(group)
     flags.AddUpdateLabelsFlag(group)
     flags.AddRemoveLabelsFlag(group)
     flags.AddNetworkPolicyFlags(group, hidden=True)
     flags.AddLoggingServiceFlag(group)
     flags.AddEnableAuditLoggingFlag(group, hidden=True)
コード例 #3
0
 def Args(parser):
     _Args(parser)
     flags.AddClusterAutoscalingFlags(parser)
     flags.AddLocalSSDFlag(parser)
     flags.AddEnableKubernetesAlphaFlag(parser)
     flags.AddPreemptibleFlag(parser)
     flags.AddEnableAutoRepairFlag(parser)
     flags.AddEnableAutoUpgradeFlag(parser)
     flags.AddServiceAccountFlag(parser)
     flags.AddMasterAuthorizedNetworksFlags(parser)
     flags.AddEnableLegacyAuthorizationFlag(parser)
     flags.AddLabelsFlag(parser)
     flags.AddNetworkPolicyFlags(parser, hidden=False)
     flags.AddIPAliasFlags(parser)
     flags.AddAcceleratorArgs(parser)
     flags.AddEnableAuditLoggingFlag(parser)
コード例 #4
0
 def Args(parser):
     _AddCommonArgs(parser)
     group = parser.add_mutually_exclusive_group(required=True)
     _AddMutuallyExclusiveArgs(group, base.ReleaseTrack.ALPHA)
     flags.AddClusterAutoscalingFlags(parser, group)
     group_locations = group.add_mutually_exclusive_group()
     _AddAdditionalZonesArg(group_locations, deprecated=True)
     flags.AddNodeLocationsFlag(group_locations)
     flags.AddMasterAuthorizedNetworksFlags(parser, group)
     flags.AddEnableLegacyAuthorizationFlag(group)
     flags.AddStartIpRotationFlag(group)
     flags.AddCompleteIpRotationFlag(group)
     flags.AddUpdateLabelsFlag(group)
     flags.AddRemoveLabelsFlag(group)
     flags.AddNetworkPolicyFlags(group, hidden=False)
     flags.AddLoggingServiceFlag(group)
     flags.AddEnableAuditLoggingFlag(group, hidden=True)
     flags.AddMaintenanceWindowFlag(group, add_unset_text=True)
コード例 #5
0
    def Args(parser):
        """Register flags for this command.

    Args:
      parser: An argparse.ArgumentParser-like object. It is mocked out in order
          to capture some information, but behaves like an ArgumentParser.
    """
        _AddCommonArgs(parser)
        group = parser.add_mutually_exclusive_group(required=True)
        _AddMutuallyExclusiveArgs(group)
        flags.AddClusterAutoscalingFlags(parser, group, hidden=True)
        flags.AddMasterAuthorizedNetworksFlags(parser, group, hidden=True)
        flags.AddEnableLegacyAuthorizationFlag(group, hidden=True)
        flags.AddStartIpRotationFlag(group, hidden=True)
        flags.AddCompleteIpRotationFlag(group, hidden=True)
        flags.AddUpdateLabelsFlag(group, suppressed=True)
        flags.AddRemoveLabelsFlag(group, suppressed=True)
        flags.AddNetworkPolicyFlags(group, hidden=True)
        flags.AddLoggingServiceFlag(group, hidden=True)
        flags.AddEnableAuditLoggingFlag(group, hidden=True)