apache-airflow-providers-google 10.14.0rc1__py3-none-any.whl → 10.15.0rc1__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (126) hide show
  1. airflow/providers/google/__init__.py +1 -1
  2. airflow/providers/google/ads/hooks/ads.py +1 -2
  3. airflow/providers/google/cloud/hooks/automl.py +13 -13
  4. airflow/providers/google/cloud/hooks/bigquery.py +208 -256
  5. airflow/providers/google/cloud/hooks/bigquery_dts.py +6 -6
  6. airflow/providers/google/cloud/hooks/bigtable.py +8 -8
  7. airflow/providers/google/cloud/hooks/cloud_batch.py +1 -1
  8. airflow/providers/google/cloud/hooks/cloud_build.py +19 -20
  9. airflow/providers/google/cloud/hooks/cloud_composer.py +4 -4
  10. airflow/providers/google/cloud/hooks/cloud_memorystore.py +10 -10
  11. airflow/providers/google/cloud/hooks/cloud_run.py +1 -1
  12. airflow/providers/google/cloud/hooks/cloud_sql.py +18 -19
  13. airflow/providers/google/cloud/hooks/cloud_storage_transfer_service.py +3 -3
  14. airflow/providers/google/cloud/hooks/compute.py +16 -16
  15. airflow/providers/google/cloud/hooks/compute_ssh.py +1 -1
  16. airflow/providers/google/cloud/hooks/datacatalog.py +22 -22
  17. airflow/providers/google/cloud/hooks/dataflow.py +48 -49
  18. airflow/providers/google/cloud/hooks/dataform.py +16 -16
  19. airflow/providers/google/cloud/hooks/datafusion.py +15 -15
  20. airflow/providers/google/cloud/hooks/datapipeline.py +3 -3
  21. airflow/providers/google/cloud/hooks/dataplex.py +19 -19
  22. airflow/providers/google/cloud/hooks/dataprep.py +10 -10
  23. airflow/providers/google/cloud/hooks/dataproc.py +132 -14
  24. airflow/providers/google/cloud/hooks/dataproc_metastore.py +13 -13
  25. airflow/providers/google/cloud/hooks/datastore.py +3 -3
  26. airflow/providers/google/cloud/hooks/dlp.py +25 -25
  27. airflow/providers/google/cloud/hooks/gcs.py +39 -27
  28. airflow/providers/google/cloud/hooks/gdm.py +3 -3
  29. airflow/providers/google/cloud/hooks/kms.py +3 -3
  30. airflow/providers/google/cloud/hooks/kubernetes_engine.py +63 -48
  31. airflow/providers/google/cloud/hooks/life_sciences.py +13 -12
  32. airflow/providers/google/cloud/hooks/looker.py +8 -9
  33. airflow/providers/google/cloud/hooks/mlengine.py +12 -12
  34. airflow/providers/google/cloud/hooks/natural_language.py +2 -2
  35. airflow/providers/google/cloud/hooks/os_login.py +1 -1
  36. airflow/providers/google/cloud/hooks/pubsub.py +9 -9
  37. airflow/providers/google/cloud/hooks/secret_manager.py +1 -1
  38. airflow/providers/google/cloud/hooks/spanner.py +11 -11
  39. airflow/providers/google/cloud/hooks/speech_to_text.py +1 -1
  40. airflow/providers/google/cloud/hooks/stackdriver.py +7 -7
  41. airflow/providers/google/cloud/hooks/tasks.py +11 -11
  42. airflow/providers/google/cloud/hooks/text_to_speech.py +1 -1
  43. airflow/providers/google/cloud/hooks/translate.py +1 -1
  44. airflow/providers/google/cloud/hooks/vertex_ai/auto_ml.py +13 -13
  45. airflow/providers/google/cloud/hooks/vertex_ai/batch_prediction_job.py +6 -6
  46. airflow/providers/google/cloud/hooks/vertex_ai/custom_job.py +45 -50
  47. airflow/providers/google/cloud/hooks/vertex_ai/dataset.py +13 -13
  48. airflow/providers/google/cloud/hooks/vertex_ai/endpoint_service.py +9 -9
  49. airflow/providers/google/cloud/hooks/vertex_ai/hyperparameter_tuning_job.py +128 -11
  50. airflow/providers/google/cloud/hooks/vertex_ai/model_service.py +10 -10
  51. airflow/providers/google/cloud/hooks/vertex_ai/pipeline_job.py +8 -8
  52. airflow/providers/google/cloud/hooks/video_intelligence.py +2 -2
  53. airflow/providers/google/cloud/hooks/vision.py +1 -1
  54. airflow/providers/google/cloud/hooks/workflows.py +10 -10
  55. airflow/providers/google/cloud/links/datafusion.py +12 -5
  56. airflow/providers/google/cloud/operators/bigquery.py +11 -11
  57. airflow/providers/google/cloud/operators/cloud_storage_transfer_service.py +3 -1
  58. airflow/providers/google/cloud/operators/dataflow.py +16 -16
  59. airflow/providers/google/cloud/operators/datafusion.py +9 -1
  60. airflow/providers/google/cloud/operators/dataproc.py +444 -69
  61. airflow/providers/google/cloud/operators/kubernetes_engine.py +6 -6
  62. airflow/providers/google/cloud/operators/life_sciences.py +10 -9
  63. airflow/providers/google/cloud/operators/mlengine.py +96 -96
  64. airflow/providers/google/cloud/operators/pubsub.py +2 -0
  65. airflow/providers/google/cloud/operators/vertex_ai/custom_job.py +33 -3
  66. airflow/providers/google/cloud/operators/vertex_ai/hyperparameter_tuning_job.py +59 -2
  67. airflow/providers/google/cloud/secrets/secret_manager.py +8 -7
  68. airflow/providers/google/cloud/sensors/bigquery.py +20 -16
  69. airflow/providers/google/cloud/sensors/cloud_composer.py +11 -8
  70. airflow/providers/google/cloud/sensors/dataproc_metastore.py +12 -2
  71. airflow/providers/google/cloud/sensors/gcs.py +8 -7
  72. airflow/providers/google/cloud/transfers/bigquery_to_gcs.py +1 -0
  73. airflow/providers/google/cloud/transfers/cassandra_to_gcs.py +4 -4
  74. airflow/providers/google/cloud/transfers/gcs_to_bigquery.py +1 -0
  75. airflow/providers/google/cloud/transfers/gcs_to_sftp.py +1 -1
  76. airflow/providers/google/cloud/transfers/mssql_to_gcs.py +1 -1
  77. airflow/providers/google/cloud/transfers/mysql_to_gcs.py +1 -1
  78. airflow/providers/google/cloud/transfers/oracle_to_gcs.py +1 -1
  79. airflow/providers/google/cloud/transfers/postgres_to_gcs.py +1 -1
  80. airflow/providers/google/cloud/transfers/presto_to_gcs.py +1 -1
  81. airflow/providers/google/cloud/transfers/s3_to_gcs.py +3 -3
  82. airflow/providers/google/cloud/transfers/sftp_to_gcs.py +1 -1
  83. airflow/providers/google/cloud/transfers/sql_to_gcs.py +3 -3
  84. airflow/providers/google/cloud/transfers/trino_to_gcs.py +1 -1
  85. airflow/providers/google/cloud/triggers/bigquery.py +12 -12
  86. airflow/providers/google/cloud/triggers/bigquery_dts.py +1 -1
  87. airflow/providers/google/cloud/triggers/cloud_batch.py +3 -1
  88. airflow/providers/google/cloud/triggers/cloud_build.py +2 -2
  89. airflow/providers/google/cloud/triggers/cloud_run.py +1 -1
  90. airflow/providers/google/cloud/triggers/cloud_storage_transfer_service.py +6 -6
  91. airflow/providers/google/cloud/triggers/dataflow.py +3 -1
  92. airflow/providers/google/cloud/triggers/datafusion.py +2 -2
  93. airflow/providers/google/cloud/triggers/dataplex.py +2 -2
  94. airflow/providers/google/cloud/triggers/dataproc.py +34 -14
  95. airflow/providers/google/cloud/triggers/gcs.py +12 -8
  96. airflow/providers/google/cloud/triggers/kubernetes_engine.py +2 -2
  97. airflow/providers/google/cloud/triggers/mlengine.py +2 -2
  98. airflow/providers/google/cloud/triggers/pubsub.py +1 -1
  99. airflow/providers/google/cloud/triggers/vertex_ai.py +99 -0
  100. airflow/providers/google/cloud/utils/bigquery.py +2 -2
  101. airflow/providers/google/cloud/utils/credentials_provider.py +2 -2
  102. airflow/providers/google/cloud/utils/dataform.py +1 -1
  103. airflow/providers/google/cloud/utils/dataproc.py +25 -0
  104. airflow/providers/google/cloud/utils/field_validator.py +2 -2
  105. airflow/providers/google/cloud/utils/helpers.py +2 -2
  106. airflow/providers/google/cloud/utils/mlengine_operator_utils.py +1 -1
  107. airflow/providers/google/cloud/utils/mlengine_prediction_summary.py +1 -1
  108. airflow/providers/google/common/auth_backend/google_openid.py +2 -2
  109. airflow/providers/google/common/hooks/base_google.py +87 -23
  110. airflow/providers/google/common/hooks/discovery_api.py +2 -2
  111. airflow/providers/google/common/utils/id_token_credentials.py +5 -5
  112. airflow/providers/google/firebase/hooks/firestore.py +3 -3
  113. airflow/providers/google/get_provider_info.py +7 -2
  114. airflow/providers/google/leveldb/hooks/leveldb.py +4 -4
  115. airflow/providers/google/marketing_platform/hooks/analytics.py +11 -14
  116. airflow/providers/google/marketing_platform/hooks/campaign_manager.py +11 -11
  117. airflow/providers/google/marketing_platform/hooks/display_video.py +13 -13
  118. airflow/providers/google/marketing_platform/hooks/search_ads.py +4 -4
  119. airflow/providers/google/marketing_platform/operators/analytics.py +37 -32
  120. airflow/providers/google/suite/hooks/calendar.py +2 -2
  121. airflow/providers/google/suite/hooks/drive.py +7 -7
  122. airflow/providers/google/suite/hooks/sheets.py +8 -8
  123. {apache_airflow_providers_google-10.14.0rc1.dist-info → apache_airflow_providers_google-10.15.0rc1.dist-info}/METADATA +11 -11
  124. {apache_airflow_providers_google-10.14.0rc1.dist-info → apache_airflow_providers_google-10.15.0rc1.dist-info}/RECORD +126 -124
  125. {apache_airflow_providers_google-10.14.0rc1.dist-info → apache_airflow_providers_google-10.15.0rc1.dist-info}/WHEEL +0 -0
  126. {apache_airflow_providers_google-10.14.0rc1.dist-info → apache_airflow_providers_google-10.15.0rc1.dist-info}/entry_points.txt +0 -0
@@ -20,6 +20,7 @@ from __future__ import annotations
20
20
 
21
21
  import time
22
22
  import uuid
23
+ from collections.abc import MutableSequence
23
24
  from typing import TYPE_CHECKING, Any, Sequence
24
25
 
25
26
  from google.api_core.client_options import ClientOptions
@@ -54,6 +55,7 @@ if TYPE_CHECKING:
54
55
  from google.api_core.retry_async import AsyncRetry
55
56
  from google.protobuf.duration_pb2 import Duration
56
57
  from google.protobuf.field_mask_pb2 import FieldMask
58
+ from google.type.interval_pb2 import Interval
57
59
 
58
60
 
59
61
  class DataProcJobBuilder:
@@ -386,17 +388,25 @@ class DataprocHook(GoogleBaseHook):
386
388
  region: str,
387
389
  cluster_name: str,
388
390
  project_id: str,
391
+ tarball_gcs_dir: str | None = None,
392
+ diagnosis_interval: dict | Interval | None = None,
393
+ jobs: MutableSequence[str] | None = None,
394
+ yarn_application_ids: MutableSequence[str] | None = None,
389
395
  retry: Retry | _MethodDefault = DEFAULT,
390
396
  timeout: float | None = None,
391
397
  metadata: Sequence[tuple[str, str]] = (),
392
- ) -> str:
398
+ ) -> Operation:
393
399
  """Get cluster diagnostic information.
394
400
 
395
- After the operation completes, the GCS URI to diagnose is returned.
401
+ After the operation completes, the response contains the Cloud Storage URI of the diagnostic output report containing a summary of collected diagnostics.
396
402
 
397
403
  :param project_id: Google Cloud project ID that the cluster belongs to.
398
404
  :param region: Cloud Dataproc region in which to handle the request.
399
405
  :param cluster_name: Name of the cluster.
406
+ :param tarball_gcs_dir: The output Cloud Storage directory for the diagnostic tarball. If not specified, a task-specific directory in the cluster's staging bucket will be used.
407
+ :param diagnosis_interval: Time interval in which diagnosis should be carried out on the cluster.
408
+ :param jobs: Specifies a list of jobs on which diagnosis is to be performed. Format: `projects/{project}/regions/{region}/jobs/{job}`
409
+ :param yarn_application_ids: Specifies a list of yarn applications on which diagnosis is to be performed.
400
410
  :param retry: A retry object used to retry requests. If *None*, requests
401
411
  will not be retried.
402
412
  :param timeout: The amount of time, in seconds, to wait for the request
@@ -405,15 +415,21 @@ class DataprocHook(GoogleBaseHook):
405
415
  :param metadata: Additional metadata that is provided to the method.
406
416
  """
407
417
  client = self.get_cluster_client(region=region)
408
- operation = client.diagnose_cluster(
409
- request={"project_id": project_id, "region": region, "cluster_name": cluster_name},
418
+ result = client.diagnose_cluster(
419
+ request={
420
+ "project_id": project_id,
421
+ "region": region,
422
+ "cluster_name": cluster_name,
423
+ "tarball_gcs_dir": tarball_gcs_dir,
424
+ "diagnosis_interval": diagnosis_interval,
425
+ "jobs": jobs,
426
+ "yarn_application_ids": yarn_application_ids,
427
+ },
410
428
  retry=retry,
411
429
  timeout=timeout,
412
430
  metadata=metadata,
413
431
  )
414
- operation.result()
415
- gcs_uri = str(operation.operation.response.value)
416
- return gcs_uri
432
+ return result
417
433
 
418
434
  @GoogleBaseHook.fallback_to_default_project_id
419
435
  def get_cluster(
@@ -567,6 +583,94 @@ class DataprocHook(GoogleBaseHook):
567
583
  )
568
584
  return operation
569
585
 
586
+ @GoogleBaseHook.fallback_to_default_project_id
587
+ def start_cluster(
588
+ self,
589
+ region: str,
590
+ project_id: str,
591
+ cluster_name: str,
592
+ cluster_uuid: str | None = None,
593
+ request_id: str | None = None,
594
+ retry: Retry | _MethodDefault = DEFAULT,
595
+ timeout: float | None = None,
596
+ metadata: Sequence[tuple[str, str]] = (),
597
+ ) -> Operation:
598
+ """Start a cluster in a project.
599
+
600
+ :param region: Cloud Dataproc region to handle the request.
601
+ :param project_id: Google Cloud project ID that the cluster belongs to.
602
+ :param cluster_name: The cluster name.
603
+ :param cluster_uuid: The cluster UUID
604
+ :param request_id: A unique id used to identify the request. If the
605
+ server receives two *UpdateClusterRequest* requests with the same
606
+ ID, the second request will be ignored, and an operation created
607
+ for the first one and stored in the backend is returned.
608
+ :param retry: A retry object used to retry requests. If *None*, requests
609
+ will not be retried.
610
+ :param timeout: The amount of time, in seconds, to wait for the request
611
+ to complete. If *retry* is specified, the timeout applies to each
612
+ individual attempt.
613
+ :param metadata: Additional metadata that is provided to the method.
614
+ :return: An instance of ``google.api_core.operation.Operation``
615
+ """
616
+ client = self.get_cluster_client(region=region)
617
+ return client.start_cluster(
618
+ request={
619
+ "project_id": project_id,
620
+ "region": region,
621
+ "cluster_name": cluster_name,
622
+ "cluster_uuid": cluster_uuid,
623
+ "request_id": request_id,
624
+ },
625
+ retry=retry,
626
+ timeout=timeout,
627
+ metadata=metadata,
628
+ )
629
+
630
+ @GoogleBaseHook.fallback_to_default_project_id
631
+ def stop_cluster(
632
+ self,
633
+ region: str,
634
+ project_id: str,
635
+ cluster_name: str,
636
+ cluster_uuid: str | None = None,
637
+ request_id: str | None = None,
638
+ retry: Retry | _MethodDefault = DEFAULT,
639
+ timeout: float | None = None,
640
+ metadata: Sequence[tuple[str, str]] = (),
641
+ ) -> Operation:
642
+ """Start a cluster in a project.
643
+
644
+ :param region: Cloud Dataproc region to handle the request.
645
+ :param project_id: Google Cloud project ID that the cluster belongs to.
646
+ :param cluster_name: The cluster name.
647
+ :param cluster_uuid: The cluster UUID
648
+ :param request_id: A unique id used to identify the request. If the
649
+ server receives two *UpdateClusterRequest* requests with the same
650
+ ID, the second request will be ignored, and an operation created
651
+ for the first one and stored in the backend is returned.
652
+ :param retry: A retry object used to retry requests. If *None*, requests
653
+ will not be retried.
654
+ :param timeout: The amount of time, in seconds, to wait for the request
655
+ to complete. If *retry* is specified, the timeout applies to each
656
+ individual attempt.
657
+ :param metadata: Additional metadata that is provided to the method.
658
+ :return: An instance of ``google.api_core.operation.Operation``
659
+ """
660
+ client = self.get_cluster_client(region=region)
661
+ return client.stop_cluster(
662
+ request={
663
+ "project_id": project_id,
664
+ "region": region,
665
+ "cluster_name": cluster_name,
666
+ "cluster_uuid": cluster_uuid,
667
+ "request_id": request_id,
668
+ },
669
+ retry=retry,
670
+ timeout=timeout,
671
+ metadata=metadata,
672
+ )
673
+
570
674
  @GoogleBaseHook.fallback_to_default_project_id
571
675
  def create_workflow_template(
572
676
  self,
@@ -1243,17 +1347,25 @@ class DataprocAsyncHook(GoogleBaseHook):
1243
1347
  region: str,
1244
1348
  cluster_name: str,
1245
1349
  project_id: str,
1350
+ tarball_gcs_dir: str | None = None,
1351
+ diagnosis_interval: dict | Interval | None = None,
1352
+ jobs: MutableSequence[str] | None = None,
1353
+ yarn_application_ids: MutableSequence[str] | None = None,
1246
1354
  retry: AsyncRetry | _MethodDefault = DEFAULT,
1247
1355
  timeout: float | None = None,
1248
1356
  metadata: Sequence[tuple[str, str]] = (),
1249
- ) -> str:
1357
+ ) -> AsyncOperation:
1250
1358
  """Get cluster diagnostic information.
1251
1359
 
1252
- After the operation completes, the GCS URI to diagnose is returned.
1360
+ After the operation completes, the response contains the Cloud Storage URI of the diagnostic output report containing a summary of collected diagnostics.
1253
1361
 
1254
1362
  :param project_id: Google Cloud project ID that the cluster belongs to.
1255
1363
  :param region: Cloud Dataproc region in which to handle the request.
1256
1364
  :param cluster_name: Name of the cluster.
1365
+ :param tarball_gcs_dir: The output Cloud Storage directory for the diagnostic tarball. If not specified, a task-specific directory in the cluster's staging bucket will be used.
1366
+ :param diagnosis_interval: Time interval in which diagnosis should be carried out on the cluster.
1367
+ :param jobs: Specifies a list of jobs on which diagnosis is to be performed. Format: `projects/{project}/regions/{region}/jobs/{job}`
1368
+ :param yarn_application_ids: Specifies a list of yarn applications on which diagnosis is to be performed.
1257
1369
  :param retry: A retry object used to retry requests. If *None*, requests
1258
1370
  will not be retried.
1259
1371
  :param timeout: The amount of time, in seconds, to wait for the request
@@ -1262,15 +1374,21 @@ class DataprocAsyncHook(GoogleBaseHook):
1262
1374
  :param metadata: Additional metadata that is provided to the method.
1263
1375
  """
1264
1376
  client = self.get_cluster_client(region=region)
1265
- operation = await client.diagnose_cluster(
1266
- request={"project_id": project_id, "region": region, "cluster_name": cluster_name},
1377
+ result = await client.diagnose_cluster(
1378
+ request={
1379
+ "project_id": project_id,
1380
+ "region": region,
1381
+ "cluster_name": cluster_name,
1382
+ "tarball_gcs_dir": tarball_gcs_dir,
1383
+ "diagnosis_interval": diagnosis_interval,
1384
+ "jobs": jobs,
1385
+ "yarn_application_ids": yarn_application_ids,
1386
+ },
1267
1387
  retry=retry,
1268
1388
  timeout=timeout,
1269
1389
  metadata=metadata,
1270
1390
  )
1271
- operation.result()
1272
- gcs_uri = str(operation.operation.response.value)
1273
- return gcs_uri
1391
+ return result
1274
1392
 
1275
1393
  @GoogleBaseHook.fallback_to_default_project_id
1276
1394
  async def get_cluster(
@@ -48,7 +48,7 @@ class DataprocMetastoreHook(GoogleBaseHook):
48
48
  super().__init__(**kwargs)
49
49
 
50
50
  def get_dataproc_metastore_client(self) -> DataprocMetastoreClient:
51
- """Returns DataprocMetastoreClient."""
51
+ """Return DataprocMetastoreClient."""
52
52
  client_options = ClientOptions(api_endpoint="metastore.googleapis.com:443")
53
53
 
54
54
  return DataprocMetastoreClient(
@@ -56,7 +56,7 @@ class DataprocMetastoreHook(GoogleBaseHook):
56
56
  )
57
57
 
58
58
  def get_dataproc_metastore_client_v1beta(self):
59
- """Returns DataprocMetastoreClient (from v1 beta)."""
59
+ """Return DataprocMetastoreClient (from v1 beta)."""
60
60
  from google.cloud.metastore_v1beta import DataprocMetastoreClient
61
61
 
62
62
  client_options = ClientOptions(api_endpoint="metastore.googleapis.com:443")
@@ -65,7 +65,7 @@ class DataprocMetastoreHook(GoogleBaseHook):
65
65
  )
66
66
 
67
67
  def wait_for_operation(self, timeout: float | None, operation: Operation):
68
- """Waits for long-lasting operation to complete."""
68
+ """Wait for long-lasting operation to complete."""
69
69
  try:
70
70
  return operation.result(timeout=timeout)
71
71
  except Exception:
@@ -86,7 +86,7 @@ class DataprocMetastoreHook(GoogleBaseHook):
86
86
  metadata: Sequence[tuple[str, str]] = (),
87
87
  ):
88
88
  """
89
- Creates a new backup in a given project and location.
89
+ Create a new backup in a given project and location.
90
90
 
91
91
  :param project_id: Required. The ID of the Google Cloud project that the service belongs to.
92
92
  :param region: Required. The ID of the Google Cloud region that the service belongs to.
@@ -143,7 +143,7 @@ class DataprocMetastoreHook(GoogleBaseHook):
143
143
  metadata: Sequence[tuple[str, str]] = (),
144
144
  ):
145
145
  """
146
- Creates a new MetadataImport in a given project and location.
146
+ Create a new MetadataImport in a given project and location.
147
147
 
148
148
  :param project_id: Required. The ID of the Google Cloud project that the service belongs to.
149
149
  :param region: Required. The ID of the Google Cloud region that the service belongs to.
@@ -200,7 +200,7 @@ class DataprocMetastoreHook(GoogleBaseHook):
200
200
  metadata: Sequence[tuple[str, str]] = (),
201
201
  ):
202
202
  """
203
- Creates a metastore service in a project and location.
203
+ Create a metastore service in a project and location.
204
204
 
205
205
  :param region: Required. The ID of the Google Cloud region that the service belongs to.
206
206
  :param project_id: Required. The ID of the Google Cloud project that the service belongs to.
@@ -250,7 +250,7 @@ class DataprocMetastoreHook(GoogleBaseHook):
250
250
  metadata: Sequence[tuple[str, str]] = (),
251
251
  ):
252
252
  """
253
- Deletes a single backup.
253
+ Delete a single backup.
254
254
 
255
255
  :param project_id: Required. The ID of the Google Cloud project that the service belongs to.
256
256
  :param region: Required. The ID of the Google Cloud region that the service belongs to.
@@ -298,7 +298,7 @@ class DataprocMetastoreHook(GoogleBaseHook):
298
298
  metadata: Sequence[tuple[str, str]] = (),
299
299
  ):
300
300
  """
301
- Deletes a single service.
301
+ Delete a single service.
302
302
 
303
303
  :param project_id: Required. The ID of the Google Cloud project that the service belongs to.
304
304
  :param region: Required. The ID of the Google Cloud region that the service belongs to.
@@ -342,7 +342,7 @@ class DataprocMetastoreHook(GoogleBaseHook):
342
342
  metadata: Sequence[tuple[str, str]] = (),
343
343
  ):
344
344
  """
345
- Exports metadata from a service.
345
+ Export metadata from a service.
346
346
 
347
347
  :param destination_gcs_folder: A Cloud Storage URI of a folder, in the format
348
348
  ``gs://<bucket_name>/<path_inside_bucket>``. A sub-folder
@@ -391,7 +391,7 @@ class DataprocMetastoreHook(GoogleBaseHook):
391
391
  metadata: Sequence[tuple[str, str]] = (),
392
392
  ):
393
393
  """
394
- Gets the details of a single service.
394
+ Get the details of a single service.
395
395
 
396
396
  :param project_id: Required. The ID of the Google Cloud project that the service belongs to.
397
397
  :param region: Required. The ID of the Google Cloud region that the service belongs to.
@@ -474,7 +474,7 @@ class DataprocMetastoreHook(GoogleBaseHook):
474
474
  metadata: Sequence[tuple[str, str]] = (),
475
475
  ):
476
476
  """
477
- Lists backups in a service.
477
+ List backups in a service.
478
478
 
479
479
  :param project_id: Required. The ID of the Google Cloud project that the service belongs to.
480
480
  :param region: Required. The ID of the Google Cloud region that the service belongs to.
@@ -603,7 +603,7 @@ class DataprocMetastoreHook(GoogleBaseHook):
603
603
  metadata: Sequence[tuple[str, str]] = (),
604
604
  ):
605
605
  """
606
- Updates the parameters of a single service.
606
+ Update the parameters of a single service.
607
607
 
608
608
  :param project_id: Required. The ID of the Google Cloud project that the service belongs to.
609
609
  :param region: Required. The ID of the Google Cloud region that the service belongs to.
@@ -660,7 +660,7 @@ class DataprocMetastoreHook(GoogleBaseHook):
660
660
  partition_names: list[str] | None = None,
661
661
  ) -> Operation:
662
662
  """
663
- Lists Hive partitions.
663
+ List Hive partitions.
664
664
 
665
665
  :param project_id: Optional. The ID of a dbt Cloud project.
666
666
  :param service_id: Required. Dataproc Metastore service id.
@@ -57,7 +57,7 @@ class DatastoreHook(GoogleBaseHook):
57
57
 
58
58
  def get_conn(self) -> Resource:
59
59
  """
60
- Establishes a connection to the Google API.
60
+ Establish a connection to the Google API.
61
61
 
62
62
  :return: a Google Cloud Datastore service object.
63
63
  """
@@ -200,7 +200,7 @@ class DatastoreHook(GoogleBaseHook):
200
200
 
201
201
  def get_operation(self, name: str) -> dict:
202
202
  """
203
- Gets the latest state of a long-running operation.
203
+ Get the latest state of a long-running operation.
204
204
 
205
205
  .. seealso::
206
206
  https://cloud.google.com/datastore/docs/reference/data/rest/v1/projects.operations/get
@@ -216,7 +216,7 @@ class DatastoreHook(GoogleBaseHook):
216
216
 
217
217
  def delete_operation(self, name: str) -> dict:
218
218
  """
219
- Deletes the long-running operation.
219
+ Delete the long-running operation.
220
220
 
221
221
  .. seealso::
222
222
  https://cloud.google.com/datastore/docs/reference/data/rest/v1/projects.operations/delete
@@ -103,7 +103,7 @@ class CloudDLPHook(GoogleBaseHook):
103
103
 
104
104
  def get_conn(self) -> DlpServiceClient:
105
105
  """
106
- Provides a client for interacting with the Cloud DLP API.
106
+ Provide a client for interacting with the Cloud DLP API.
107
107
 
108
108
  :return: Google Cloud DLP API Client
109
109
  """
@@ -130,7 +130,7 @@ class CloudDLPHook(GoogleBaseHook):
130
130
  metadata: Sequence[tuple[str, str]] = (),
131
131
  ) -> None:
132
132
  """
133
- Starts asynchronous cancellation on a long-running DLP job.
133
+ Start asynchronous cancellation on a long-running DLP job.
134
134
 
135
135
  :param dlp_job_id: ID of the DLP job resource to be cancelled.
136
136
  :param project_id: (Optional) Google Cloud project ID where the
@@ -221,7 +221,7 @@ class CloudDLPHook(GoogleBaseHook):
221
221
  time_to_sleep_in_seconds: int = 60,
222
222
  ) -> DlpJob:
223
223
  """
224
- Creates a new job to inspect storage or calculate risk metrics.
224
+ Create a new job to inspect storage or calculate risk metrics.
225
225
 
226
226
  :param project_id: (Optional) Google Cloud project ID where the
227
227
  DLP Instance exists. If set to None or missing, the default
@@ -383,7 +383,7 @@ class CloudDLPHook(GoogleBaseHook):
383
383
  metadata: Sequence[tuple[str, str]] = (),
384
384
  ) -> StoredInfoType:
385
385
  """
386
- Creates a pre-built stored info type to be used for inspection.
386
+ Create a pre-built stored info type to be used for inspection.
387
387
 
388
388
  :param organization_id: (Optional) The organization ID. Required to set this
389
389
  field if parent resource is an organization.
@@ -480,7 +480,7 @@ class CloudDLPHook(GoogleBaseHook):
480
480
  self, template_id, organization_id=None, project_id=None, retry=DEFAULT, timeout=None, metadata=()
481
481
  ) -> None:
482
482
  """
483
- Deletes a deidentify template.
483
+ Delete a deidentify template.
484
484
 
485
485
  :param template_id: The ID of deidentify template to be deleted.
486
486
  :param organization_id: (Optional) The organization ID. Required to set this
@@ -529,7 +529,7 @@ class CloudDLPHook(GoogleBaseHook):
529
529
  metadata: Sequence[tuple[str, str]] = (),
530
530
  ) -> None:
531
531
  """
532
- Deletes a long-running DLP job.
532
+ Delete a long-running DLP job.
533
533
 
534
534
  This method indicates that the client is no longer interested in the DLP job result.
535
535
  The job will be cancelled if possible.
@@ -570,7 +570,7 @@ class CloudDLPHook(GoogleBaseHook):
570
570
  metadata: Sequence[tuple[str, str]] = (),
571
571
  ) -> None:
572
572
  """
573
- Deletes an inspect template.
573
+ Delete an inspect template.
574
574
 
575
575
  :param template_id: The ID of the inspect template to be deleted.
576
576
  :param organization_id: (Optional) The organization ID. Required to set this
@@ -619,7 +619,7 @@ class CloudDLPHook(GoogleBaseHook):
619
619
  metadata: Sequence[tuple[str, str]] = (),
620
620
  ) -> None:
621
621
  """
622
- Deletes a job trigger.
622
+ Delete a job trigger.
623
623
 
624
624
  :param job_trigger_id: The ID of the DLP job trigger to be deleted.
625
625
  :param project_id: (Optional) Google Cloud project ID where the
@@ -657,7 +657,7 @@ class CloudDLPHook(GoogleBaseHook):
657
657
  metadata: Sequence[tuple[str, str]] = (),
658
658
  ) -> None:
659
659
  """
660
- Deletes a stored info type.
660
+ Delete a stored info type.
661
661
 
662
662
  :param stored_info_type_id: The ID of the stored info type to be deleted.
663
663
  :param organization_id: (Optional) The organization ID. Required to set this
@@ -706,7 +706,7 @@ class CloudDLPHook(GoogleBaseHook):
706
706
  metadata: Sequence[tuple[str, str]] = (),
707
707
  ) -> DeidentifyTemplate:
708
708
  """
709
- Gets a deidentify template.
709
+ Get a deidentify template.
710
710
 
711
711
  :param template_id: The ID of deidentify template to be read.
712
712
  :param organization_id: (Optional) The organization ID. Required to set this
@@ -755,7 +755,7 @@ class CloudDLPHook(GoogleBaseHook):
755
755
  metadata: Sequence[tuple[str, str]] = (),
756
756
  ) -> DlpJob:
757
757
  """
758
- Gets the latest state of a long-running Dlp Job.
758
+ Get the latest state of a long-running Dlp Job.
759
759
 
760
760
  :param dlp_job_id: The ID of the DLP job resource to be read.
761
761
  :param project_id: (Optional) Google Cloud project ID where the
@@ -793,7 +793,7 @@ class CloudDLPHook(GoogleBaseHook):
793
793
  metadata: Sequence[tuple[str, str]] = (),
794
794
  ) -> InspectTemplate:
795
795
  """
796
- Gets an inspect template.
796
+ Get an inspect template.
797
797
 
798
798
  :param template_id: The ID of inspect template to be read.
799
799
  :param organization_id: (Optional) The organization ID. Required to set this
@@ -842,7 +842,7 @@ class CloudDLPHook(GoogleBaseHook):
842
842
  metadata: Sequence[tuple[str, str]] = (),
843
843
  ) -> JobTrigger:
844
844
  """
845
- Gets a DLP job trigger.
845
+ Get a DLP job trigger.
846
846
 
847
847
  :param job_trigger_id: The ID of the DLP job trigger to be read.
848
848
  :param project_id: (Optional) Google Cloud project ID where the
@@ -880,7 +880,7 @@ class CloudDLPHook(GoogleBaseHook):
880
880
  metadata: Sequence[tuple[str, str]] = (),
881
881
  ) -> StoredInfoType:
882
882
  """
883
- Gets a stored info type.
883
+ Get a stored info type.
884
884
 
885
885
  :param stored_info_type_id: The ID of the stored info type to be read.
886
886
  :param organization_id: (Optional) The organization ID. Required to set this
@@ -931,7 +931,7 @@ class CloudDLPHook(GoogleBaseHook):
931
931
  metadata: Sequence[tuple[str, str]] = (),
932
932
  ) -> InspectContentResponse:
933
933
  """
934
- Finds potentially sensitive info in content; limits input size, processing time, and output size.
934
+ Find potentially sensitive info in content; limits input size, processing time, and output size.
935
935
 
936
936
  :param project_id: (Optional) Google Cloud project ID where the
937
937
  DLP Instance exists. If set to None or missing, the default
@@ -974,7 +974,7 @@ class CloudDLPHook(GoogleBaseHook):
974
974
  metadata: Sequence[tuple[str, str]] = (),
975
975
  ) -> list[DeidentifyTemplate]:
976
976
  """
977
- Lists deidentify templates.
977
+ List deidentify templates.
978
978
 
979
979
  :param organization_id: (Optional) The organization ID. Required to set this
980
980
  field if parent resource is an organization.
@@ -1030,7 +1030,7 @@ class CloudDLPHook(GoogleBaseHook):
1030
1030
  metadata: Sequence[tuple[str, str]] = (),
1031
1031
  ) -> list[DlpJob]:
1032
1032
  """
1033
- Lists DLP jobs that match the specified filter in the request.
1033
+ List DLP jobs that match the specified filter in the request.
1034
1034
 
1035
1035
  :param project_id: (Optional) Google Cloud project ID where the
1036
1036
  DLP Instance exists. If set to None or missing, the default
@@ -1074,7 +1074,7 @@ class CloudDLPHook(GoogleBaseHook):
1074
1074
  metadata: Sequence[tuple[str, str]] = (),
1075
1075
  ) -> ListInfoTypesResponse:
1076
1076
  """
1077
- Returns a list of the sensitive information types that the DLP API supports.
1077
+ Return a list of the sensitive information types that the DLP API supports.
1078
1078
 
1079
1079
  :param language_code: (Optional) Optional BCP-47 language code for localized info
1080
1080
  type friendly names. If omitted, or if localized strings are not available,
@@ -1110,7 +1110,7 @@ class CloudDLPHook(GoogleBaseHook):
1110
1110
  metadata: Sequence[tuple[str, str]] = (),
1111
1111
  ) -> list[InspectTemplate]:
1112
1112
  """
1113
- Lists inspect templates.
1113
+ List inspect templates.
1114
1114
 
1115
1115
  :param organization_id: (Optional) The organization ID. Required to set this
1116
1116
  field if parent resource is an organization.
@@ -1164,7 +1164,7 @@ class CloudDLPHook(GoogleBaseHook):
1164
1164
  metadata: Sequence[tuple[str, str]] = (),
1165
1165
  ) -> list[JobTrigger]:
1166
1166
  """
1167
- Lists job triggers.
1167
+ List job triggers.
1168
1168
 
1169
1169
  :param project_id: (Optional) Google Cloud project ID where the
1170
1170
  DLP Instance exists. If set to None or missing, the default
@@ -1208,7 +1208,7 @@ class CloudDLPHook(GoogleBaseHook):
1208
1208
  metadata: Sequence[tuple[str, str]] = (),
1209
1209
  ) -> list[StoredInfoType]:
1210
1210
  """
1211
- Lists stored info types.
1211
+ List stored info types.
1212
1212
 
1213
1213
  :param organization_id: (Optional) The organization ID. Required to set this
1214
1214
  field if parent resource is an organization.
@@ -1363,7 +1363,7 @@ class CloudDLPHook(GoogleBaseHook):
1363
1363
  metadata: Sequence[tuple[str, str]] = (),
1364
1364
  ) -> DeidentifyTemplate:
1365
1365
  """
1366
- Updates the deidentify template.
1366
+ Update the deidentify template.
1367
1367
 
1368
1368
  :param template_id: The ID of deidentify template to be updated.
1369
1369
  :param organization_id: (Optional) The organization ID. Required to set this
@@ -1418,7 +1418,7 @@ class CloudDLPHook(GoogleBaseHook):
1418
1418
  metadata: Sequence[tuple[str, str]] = (),
1419
1419
  ) -> InspectTemplate:
1420
1420
  """
1421
- Updates the inspect template.
1421
+ Update the inspect template.
1422
1422
 
1423
1423
  :param template_id: The ID of the inspect template to be updated.
1424
1424
  :param organization_id: (Optional) The organization ID. Required to set this
@@ -1472,7 +1472,7 @@ class CloudDLPHook(GoogleBaseHook):
1472
1472
  metadata: Sequence[tuple[str, str]] = (),
1473
1473
  ) -> JobTrigger:
1474
1474
  """
1475
- Updates a job trigger.
1475
+ Update a job trigger.
1476
1476
 
1477
1477
  :param job_trigger_id: The ID of the DLP job trigger to be updated.
1478
1478
  :param project_id: (Optional) Google Cloud project ID where the
@@ -1520,7 +1520,7 @@ class CloudDLPHook(GoogleBaseHook):
1520
1520
  metadata: Sequence[tuple[str, str]] = (),
1521
1521
  ) -> StoredInfoType:
1522
1522
  """
1523
- Updates the stored info type by creating a new version.
1523
+ Update the stored info type by creating a new version.
1524
1524
 
1525
1525
  :param stored_info_type_id: The ID of the stored info type to be updated.
1526
1526
  :param organization_id: (Optional) The organization ID. Required to set this