Skip to content

Commit 3867f76

Browse files
authored
Update Google Cloud branding (#10615)
1 parent 725bf33 commit 3867f76

File tree

85 files changed

+597
-569
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

85 files changed

+597
-569
lines changed

β€Žairflow/config_templates/config.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -623,8 +623,8 @@
623623
default: ""
624624
- name: google_key_path
625625
description: |
626-
Path to GCP Credential JSON file. If omitted, authorization based on `the Application Default
627-
Credentials
626+
Path to Google Cloud Service Account key file (JSON). If omitted, authorization based on
627+
`the Application Default Credentials
628628
<https://cloud.google.com/docs/authentication/production#finding_credentials_automatically>`__ will
629629
be used.
630630
type: string

β€Žairflow/config_templates/default_airflow.cfg

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -339,8 +339,8 @@ fallback_page_limit = 100
339339
# Example: google_oauth2_audience = project-id-random-value.apps.googleusercontent.com
340340
google_oauth2_audience =
341341

342-
# Path to GCP Credential JSON file. If omitted, authorization based on `the Application Default
343-
# Credentials
342+
# Path to Google Cloud Service Account key file (JSON). If omitted, authorization based on
343+
# `the Application Default Credentials
344344
# <https://cloud.google.com/docs/authentication/production#finding_credentials_automatically>`__ will
345345
# be used.
346346
# Example: google_key_path = /files/service-account-json

β€Žairflow/providers/google/ads/hooks/ads.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ def _get_config(self) -> None:
127127

128128
def _update_config_with_secret(self, secrets_temp: IO[str]) -> None:
129129
"""
130-
Gets GCP secret from connection and saves the contents to the temp file
130+
Gets Google Cloud secret from connection and saves the contents to the temp file
131131
Updates google ads config with file path of the temp file containing the secret
132132
Note, the secret must be passed as a file path for Google Ads API
133133
"""

β€Žairflow/providers/google/cloud/_internal_client/secret_manager_client.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,9 @@
3232

3333
class _SecretManagerClient(LoggingMixin):
3434
"""
35-
Retrieves Secrets object from GCP Secrets Manager. This is a common class reused between SecretsManager
36-
and Secrets Hook that provides the shared authentication and verification mechanisms. This class should
37-
not be used directly, use SecretsManager or SecretsHook instead
35+
Retrieves Secrets object from Google Cloud Secrets Manager. This is a common class reused between
36+
SecretsManager and Secrets Hook that provides the shared authentication and verification mechanisms.
37+
This class should not be used directly, use SecretsManager or SecretsHook instead
3838
3939
4040
:param credentials: Credentials used to authenticate to GCP
@@ -84,11 +84,11 @@ def get_secret(self, secret_id: str, project_id: str, secret_version: str = 'lat
8484
value = response.payload.data.decode('UTF-8')
8585
return value
8686
except NotFound:
87-
self.log.error("GCP API Call Error (NotFound): Secret ID %s not found.", secret_id)
87+
self.log.error("Google Cloud API Call Error (NotFound): Secret ID %s not found.", secret_id)
8888
return None
8989
except PermissionDenied:
9090
self.log.error(
91-
"""GCP API Call Error (PermissionDenied): No access for Secret ID %s.
91+
"""Google Cloud API Call Error (PermissionDenied): No access for Secret ID %s.
9292
Did you add 'secretmanager.versions.access' permission?""",
9393
secret_id,
9494
)

β€Žairflow/providers/google/cloud/example_dags/example_dlp.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,10 @@
1818

1919
"""
2020
Example Airflow DAG that execute the following tasks using
21-
Cloud DLP service in the Google Cloud Platform:
21+
Cloud DLP service in the Google Cloud:
2222
1) Creating a content inspect template;
2323
2) Using the created template to inspect content;
24-
3) Deleting the template from GCP .
24+
3) Deleting the template from Google Cloud .
2525
"""
2626

2727
import os

β€Žairflow/providers/google/cloud/hooks/bigquery.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -921,7 +921,7 @@ def update_dataset(
921921
:type dataset_id: str
922922
:param fields: The properties of ``dataset`` to change (e.g. "friendly_name").
923923
:type fields: Sequence[str]
924-
:param project_id: The GCP Project ID
924+
:param project_id: The Google Cloud Project ID
925925
:type project_id: str
926926
:param retry: How to retry the RPC.
927927
:type retry: google.api_core.retry.Retry
@@ -955,7 +955,7 @@ def patch_dataset(
955955
in request body.
956956
https://cloud.google.com/bigquery/docs/reference/rest/v2/datasets#resource
957957
:type dataset_resource: dict
958-
:param project_id: The GCP Project ID
958+
:param project_id: The Google Cloud Project ID
959959
:type project_id: str
960960
:rtype: dataset
961961
https://cloud.google.com/bigquery/docs/reference/rest/v2/datasets#resource
@@ -998,7 +998,7 @@ def get_dataset_tables_list(
998998
999999
:param dataset_id: The BigQuery Dataset ID
10001000
:type dataset_id: str
1001-
:param project_id: The GCP Project ID
1001+
:param project_id: The Google Cloud Project ID
10021002
:type project_id: str
10031003
:param table_prefix: Tables must begin by this prefix to be returned (case sensitive)
10041004
:type table_prefix: str
@@ -1073,7 +1073,7 @@ def get_dataset(self, dataset_id: str, project_id: Optional[str] = None) -> Data
10731073
10741074
:param dataset_id: The BigQuery Dataset ID
10751075
:type dataset_id: str
1076-
:param project_id: The GCP Project ID
1076+
:param project_id: The Google Cloud Project ID
10771077
:type project_id: str
10781078
:return: dataset_resource
10791079

β€Žairflow/providers/google/cloud/hooks/bigquery_dts.py

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,8 @@ def create_transfer_config(
113113
:param transfer_config: Data transfer configuration to create.
114114
:type transfer_config: Union[dict, google.cloud.bigquery_datatransfer_v1.types.TransferConfig]
115115
:param project_id: The BigQuery project id where the transfer configuration should be
116-
created. If set to None or missing, the default project_id from the GCP connection is used.
116+
created. If set to None or missing, the default project_id from the Google Cloud connection
117+
is used.
117118
:type project_id: str
118119
:param authorization_code: authorization code to use with this transfer configuration.
119120
This is required if new credentials are needed.
@@ -155,7 +156,8 @@ def delete_transfer_config(
155156
:param transfer_config_id: Id of transfer config to be used.
156157
:type transfer_config_id: str
157158
:param project_id: The BigQuery project id where the transfer configuration should be
158-
created. If set to None or missing, the default project_id from the GCP connection is used.
159+
created. If set to None or missing, the default project_id from the Google Cloud connection
160+
is used.
159161
:type project_id: str
160162
:param retry: A retry object used to retry requests. If `None` is
161163
specified, requests will not be retried.
@@ -201,7 +203,8 @@ def start_manual_transfer_runs(
201203
`~google.cloud.bigquery_datatransfer_v1.types.Timestamp`
202204
:type requested_run_time: Union[dict, ~google.cloud.bigquery_datatransfer_v1.types.Timestamp]
203205
:param project_id: The BigQuery project id where the transfer configuration should be
204-
created. If set to None or missing, the default project_id from the GCP connection is used.
206+
created. If set to None or missing, the default project_id from the Google Cloud connection
207+
is used.
205208
:type project_id: str
206209
:param retry: A retry object used to retry requests. If `None` is
207210
specified, requests will not be retried.
@@ -243,7 +246,8 @@ def get_transfer_run(
243246
:param transfer_config_id: ID of transfer config to be used.
244247
:type transfer_config_id: str
245248
:param project_id: The BigQuery project id where the transfer configuration should be
246-
created. If set to None or missing, the default project_id from the GCP connection is used.
249+
created. If set to None or missing, the default project_id from the Google Cloud connection
250+
is used.
247251
:type project_id: str
248252
:param retry: A retry object used to retry requests. If `None` is
249253
specified, requests will not be retried.

β€Žairflow/providers/google/cloud/hooks/bigtable.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ def get_instance(self, instance_id: str, project_id: str) -> Instance:
7272
:type instance_id: str
7373
:param project_id: Optional, Google Cloud Platform project ID where the
7474
BigTable exists. If set to None or missing,
75-
the default project_id from the GCP connection is used.
75+
the default project_id from the Google Cloud connection is used.
7676
:type project_id: str
7777
"""
7878
instance = self._get_client(project_id=project_id).instance(instance_id)
@@ -89,7 +89,7 @@ def delete_instance(self, instance_id: str, project_id: str) -> None:
8989
9090
:param project_id: Optional, Google Cloud Platform project ID where the
9191
BigTable exists. If set to None or missing,
92-
the default project_id from the GCP connection is used.
92+
the default project_id from the Google Cloud connection is used.
9393
:type project_id: str
9494
:param instance_id: The ID of the Cloud Bigtable instance.
9595
:type instance_id: str
@@ -132,7 +132,7 @@ def create_instance(
132132
:type project_id: str
133133
:param project_id: Optional, Google Cloud Platform project ID where the
134134
BigTable exists. If set to None or missing,
135-
the default project_id from the GCP connection is used.
135+
the default project_id from the Google Cloud connection is used.
136136
:type replica_clusters: List[Dict[str, str]]
137137
:param replica_clusters: (optional) A list of replica clusters for the new
138138
instance. Each cluster dictionary contains an id and a zone.
@@ -215,7 +215,7 @@ def update_instance(
215215
:type project_id: str
216216
:param project_id: Optional, Google Cloud Platform project ID where the
217217
BigTable exists. If set to None or missing,
218-
the default project_id from the GCP connection is used.
218+
the default project_id from the Google Cloud connection is used.
219219
:type instance_display_name: str
220220
:param instance_display_name: (optional) Human-readable name of the instance.
221221
:type instance_type: enums.Instance.Type or enum.IntEnum
@@ -285,7 +285,7 @@ def delete_table(self, instance_id: str, table_id: str, project_id: str) -> None
285285
:type project_id: str
286286
:param project_id: Optional, Google Cloud Platform project ID where the
287287
BigTable exists. If set to None or missing,
288-
the default project_id from the GCP connection is used.
288+
the default project_id from the Google Cloud connection is used.
289289
"""
290290
table = self.get_instance(instance_id=instance_id, project_id=project_id).table(table_id=table_id)
291291
table.delete()

β€Žairflow/providers/google/cloud/hooks/cloud_build.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ def create_build(self, body: Dict, project_id: str) -> Dict:
9090
See: https://cloud.google.com/cloud-build/docs/api/reference/rest/v1/projects.builds
9191
:type body: dict
9292
:param project_id: Optional, Google Cloud Project project_id where the function belongs.
93-
If set to None or missing, the default project_id from the GCP connection is used.
93+
If set to None or missing, the default project_id from the Google Cloud connection is used.
9494
:type project_id: str
9595
:return: Dict
9696
"""

β€Žairflow/providers/google/cloud/hooks/cloud_memorystore.py

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ def create_instance(
131131
:class:`~google.cloud.redis_v1.types.Instance`
132132
:type instance: Union[Dict, google.cloud.redis_v1.types.Instance]
133133
:param project_id: Project ID of the project that contains the instance. If set
134-
to None or missing, the default project_id from the GCP connection is used.
134+
to None or missing, the default project_id from the Google Cloud connection is used.
135135
:type project_id: str
136136
:param retry: A retry object used to retry requests. If ``None`` is specified, requests will not be
137137
retried.
@@ -190,8 +190,8 @@ def delete_instance(
190190
:type location: str
191191
:param instance: The logical name of the Redis instance in the customer project.
192192
:type instance: str
193-
:param project_id: Project ID of the project that contains the instance. If set
194-
to None or missing, the default project_id from the GCP connection is used.
193+
:param project_id: Project ID of the project that contains the instance. If set
194+
to None or missing, the default project_id from the Google Cloud connection is used.
195195
:type project_id: str
196196
:param retry: A retry object used to retry requests. If ``None`` is specified, requests will not be
197197
retried.
@@ -241,7 +241,7 @@ def export_instance(
241241
:class:`~google.cloud.redis_v1.types.OutputConfig`
242242
:type output_config: Union[Dict, google.cloud.redis_v1.types.OutputConfig]
243243
:param project_id: Project ID of the project that contains the instance. If set
244-
to None or missing, the default project_id from the GCP connection is used.
244+
to None or missing, the default project_id from the Google Cloud connection is used.
245245
:type project_id: str
246246
:param retry: A retry object used to retry requests. If ``None`` is specified, requests will not be
247247
retried.
@@ -285,7 +285,7 @@ def failover_instance(
285285
:type data_protection_mode: google.cloud.redis_v1.gapic.enums.FailoverInstanceRequest
286286
.DataProtectionMode
287287
:param project_id: Project ID of the project that contains the instance. If set
288-
to None or missing, the default project_id from the GCP connection is used.
288+
to None or missing, the default project_id from the Google Cloud connection is used.
289289
:type project_id: str
290290
:param retry: A retry object used to retry requests. If ``None`` is specified, requests will not be
291291
retried.
@@ -327,8 +327,8 @@ def get_instance(
327327
:type location: str
328328
:param instance: The logical name of the Redis instance in the customer project.
329329
:type instance: str
330-
:param project_id: Project ID of the project that contains the instance. If set
331-
to None or missing, the default project_id from the GCP connection is used.
330+
:param project_id: Project ID of the project that contains the instance. If set
331+
to None or missing, the default project_id from the Google Cloud connection is used.
332332
:type project_id: str
333333
:param retry: A retry object used to retry requests. If ``None`` is specified, requests will not be
334334
retried.
@@ -372,7 +372,7 @@ def import_instance(
372372
:class:`~google.cloud.redis_v1.types.InputConfig`
373373
:type input_config: Union[Dict, google.cloud.redis_v1.types.InputConfig]
374374
:param project_id: Project ID of the project that contains the instance. If set
375-
to None or missing, the default project_id from the GCP connection is used.
375+
to None or missing, the default project_id from the Google Cloud connection is used.
376376
:type project_id: str
377377
:param retry: A retry object used to retry requests. If ``None`` is specified, requests will not be
378378
retried.
@@ -416,7 +416,7 @@ def list_instances(
416416
streaming is performed per-page, this determines the maximum number of resources in a page.
417417
:type page_size: int
418418
:param project_id: Project ID of the project that contains the instance. If set
419-
to None or missing, the default project_id from the GCP connection is used.
419+
to None or missing, the default project_id from the Google Cloud connection is used.
420420
:type project_id: str
421421
:param retry: A retry object used to retry requests. If ``None`` is specified, requests will not be
422422
retried.
@@ -470,8 +470,8 @@ def update_instance(
470470
:type location: str
471471
:param instance_id: The logical name of the Redis instance in the customer project.
472472
:type instance_id: str
473-
:param project_id: Project ID of the project that contains the instance. If set
474-
to None or missing, the default project_id from the GCP connection is used.
473+
:param project_id: Project ID of the project that contains the instance. If set
474+
to None or missing, the default project_id from the Google Cloud connection is used.
475475
:type project_id: str
476476
:param retry: A retry object used to retry requests. If ``None`` is specified, requests will not be
477477
retried.

0 commit comments

Comments
 (0)