15
15
# KIND, either express or implied. See the License for the
16
16
# specific language governing permissions and limitations
17
17
# under the License.
18
- import warnings
19
18
from tempfile import NamedTemporaryFile
20
19
from typing import TYPE_CHECKING , Optional , Sequence , Union
21
20
@@ -57,8 +56,6 @@ class S3ToGCSOperator(S3ListOperator):
57
56
You can specify this argument if you want to use a different
58
57
CA cert bundle than the one used by botocore.
59
58
:param gcp_conn_id: (Optional) The connection ID used to connect to Google Cloud.
60
- :param dest_gcs_conn_id: (Deprecated) The connection ID used to connect to Google Cloud.
61
- This parameter has been deprecated. You should pass the gcp_conn_id parameter instead.
62
59
:param dest_gcs: The destination Google Cloud Storage bucket and prefix
63
60
where you want to store the files. (templated)
64
61
:param delegate_to: Google account to impersonate using domain-wide delegation of authority,
@@ -85,7 +82,7 @@ class S3ToGCSOperator(S3ListOperator):
85
82
task_id="s3_to_gcs_example",
86
83
bucket="my-s3-bucket",
87
84
prefix="data/customers-201804",
88
- dest_gcs_conn_id ="google_cloud_default",
85
+ gcp_conn_id ="google_cloud_default",
89
86
dest_gcs="gs://my.gcs.bucket/some/customers/",
90
87
replace=False,
91
88
gzip=True,
@@ -114,7 +111,6 @@ def __init__(
114
111
aws_conn_id = 'aws_default' ,
115
112
verify = None ,
116
113
gcp_conn_id = 'google_cloud_default' ,
117
- dest_gcs_conn_id = None ,
118
114
dest_gcs = None ,
119
115
delegate_to = None ,
120
116
replace = False ,
@@ -124,16 +120,6 @@ def __init__(
124
120
):
125
121
126
122
super ().__init__ (bucket = bucket , prefix = prefix , delimiter = delimiter , aws_conn_id = aws_conn_id , ** kwargs )
127
-
128
- if dest_gcs_conn_id :
129
- warnings .warn (
130
- "The dest_gcs_conn_id parameter has been deprecated. You should pass "
131
- "the gcp_conn_id parameter." ,
132
- DeprecationWarning ,
133
- stacklevel = 3 ,
134
- )
135
- gcp_conn_id = dest_gcs_conn_id
136
-
137
123
self .gcp_conn_id = gcp_conn_id
138
124
self .dest_gcs = dest_gcs
139
125
self .delegate_to = delegate_to
0 commit comments