def Run(self, args): holder = base_classes.ComputeApiHolder(self.ReleaseTrack()) client = holder.client policy_ref = flags.MakeMaintenancePolicyArg().ResolveAsResource( args, holder.resources, scope_lister=compute_flags.GetDefaultScopeLister(holder.client)) messages = holder.client.messages request = messages.ComputeMaintenancePoliciesDeleteRequest( maintenancePolicy=policy_ref.Name(), project=policy_ref.project, region=policy_ref.region) service = holder.client.apitools_client.maintenancePolicies return client.MakeRequests([(service, 'Delete', request)])
def Args(parser): flags.MakeMaintenancePolicyArg().AddArgument(parser) flags.AddCommonArgs(parser) flags.AddCycleFrequencyArgs(parser)
def Args(parser): flags.MakeMaintenancePolicyArg().AddArgument(parser) parser.display_info.AddCacheUpdater(None)
def Args(parser): flags.MakeMaintenancePolicyArg().AddArgument(parser)