class_docstr: Disables one or more enabled alerting policies identified by filter parameter.
  
  Inoperative in case the policy is already disabled.
  
  .. seealso::
      For more information on how to use this operator, take a look at the guide:
      :ref:`howto/operator:StackdriverDisableAlertPoliciesOperator`
  
  :param filter_:  If provided, this field specifies the criteria that
      must be met by alert policies to be disabled.
      For more details, see https://cloud.google.com/monitoring/api/v3/sorting-and-filtering.
  :param retry: A retry object used to retry requests. If ``None`` is
      specified, requests will be retried using a default configuration.
  :param timeout: The amount of time, in seconds, to wait
      for the request to complete. Note that if ``retry`` is
      specified, the timeout applies to each individual attempt.
  :param metadata: Additional metadata that is provided to the method.
  :param gcp_conn_id: (Optional) The connection ID used to connect to Google
      Cloud Platform.
  :param project_id: The project in which alert needs to be disabled.
  :param impersonation_chain: Optional service account to impersonate using short-term
      credentials, or chained list of accounts required to get the access_token
      of the last account in the list, which will be impersonated in the request.
      If set as a string, the account must grant the originating account
      the Service Account Token Creator IAM role.
      If set as a sequence, the identities from the list must grant
      Service Account Token Creator IAM role to the directly preceding identity, with first
      account from the list granting this role to the originating account (templated).
class_docstr_tok: ["Disables","one","or","more","enabled","alerting","policies","identified","by","filter","parameter",".","Inoperative","in","case","the","policy","is","already","disabled",".","..","seealso",":",":","For","more","information","on","how","to","use","this","operator",",","take","a","look","at","the","guide",":",":","ref",":","`","howto\/operator",":","StackdriverDisableAlertPoliciesOperator","`",":","param","filter_",":","If","provided",",","this","field","specifies","the","criteria","that","must","be","met","by","alert","policies","to","be","disabled",".","For","more","details",",","see","https",":","\/\/cloud.google.com\/monitoring\/api\/v3\/sorting-and-filtering",".",":","param","retry",":","A","retry","object","used","to","retry","requests",".","If","``","None","``","is","specified",",","requests","will","be","retried","using","a","default","configuration",".",":","param","timeout",":","The","amount","of","time",",","in","seconds",",","to","wait","for","the","request","to","complete",".","Note","that","if","``","retry","``","is","specified",",","the","timeout","applies","to","each","individual","attempt",".",":","param","metadata",":","Additional","metadata","that","is","provided","to","the","method",".",":","param","gcp_conn_id",":","(","Optional",")","The","connection","ID","used","to","connect","to","Google","Cloud","Platform",".",":","param","project_id",":","The","project","in","which","alert","needs","to","be","disabled",".",":","param","impersonation_chain",":","Optional","service","account","to","impersonate","using","short-term","credentials",",","or","chained","list","of","accounts","required","to","get","the","access_token","of","the","last","account","in","the","list",",","which","will","be","impersonated","in","the","request",".","If","set","as","a","string",",","the","account","must","grant","the","originating","account","the","Service","Account","Token","Creator","IAM","role",".","If","set","as","a","sequence",",","the","identities","from","the","list","must","grant","Service","Account","Token","Creator","IAM","role","to","the","directly","preceding","identity",",","with","first","account","from","the","list","granting","this","role","to","the","originating","account","(","templated",")","."]
code: def execute(self, context: Context):
      self.log.info(
          "Disable Alert Policies: Project id: %s Filter: %s",
          self.project_id,
          self.filter_,
      )
      if self.hook is None:
          self.hook = StackdriverHook(
              gcp_conn_id=self.gcp_conn_id,
              impersonation_chain=self.impersonation_chain,
          )
      self.hook.disable_alert_policies(
          filter_=self.filter_,
          project_id=self.project_id,
          retry=self.retry,
          timeout=self.timeout,
          metadata=self.metadata,
      )
      StackdriverPoliciesLink.persist(
          context=context,
          operator_instance=self,
          project_id=self.project_id or self.hook.project_id,
      )
  
imports: from __future__ import annotations
  from typing import TYPE_CHECKING, Sequence
  from google.api_core.gapic_v1.method import DEFAULT, _MethodDefault
  from google.cloud.monitoring_v3 import AlertPolicy, NotificationChannel
  from airflow.providers.google.cloud.hooks.stackdriver import StackdriverHook
  from airflow.providers.google.cloud.links.stackdriver import StackdriverNotificationsLink, StackdriverPoliciesLink
  from airflow.providers.google.cloud.operators.cloud_base import GoogleCloudBaseOperator
label_desc: Use image node_id 2 for calling the StackdriverDisableAlertPoliciesOperator obj's underlying member method code with example usage: obj.execute(context) without return types