@@ -68,13 +68,13 @@ def openapi_types(_):
6868
6969 def __init__ (
7070 self_ ,
71- acl : ObservabilityPipelineGoogleCloudStorageDestinationAcl ,
72- auth : ObservabilityPipelineGcpAuth ,
7371 bucket : str ,
7472 id : str ,
7573 inputs : List [str ],
7674 storage_class : ObservabilityPipelineGoogleCloudStorageDestinationStorageClass ,
7775 type : ObservabilityPipelineGoogleCloudStorageDestinationType ,
76+ acl : Union [ObservabilityPipelineGoogleCloudStorageDestinationAcl , UnsetType ] = unset ,
77+ auth : Union [ObservabilityPipelineGcpAuth , UnsetType ] = unset ,
7878 key_prefix : Union [str , UnsetType ] = unset ,
7979 metadata : Union [List [ObservabilityPipelineMetadataEntry ], UnsetType ] = unset ,
8080 ** kwargs ,
@@ -84,10 +84,10 @@ def __init__(
8484 It requires a bucket name, GCP authentication, and metadata fields.
8585
8686 :param acl: Access control list setting for objects written to the bucket.
87- :type acl: ObservabilityPipelineGoogleCloudStorageDestinationAcl
87+ :type acl: ObservabilityPipelineGoogleCloudStorageDestinationAcl, optional
8888
8989 :param auth: GCP credentials used to authenticate with Google Cloud Storage.
90- :type auth: ObservabilityPipelineGcpAuth
90+ :type auth: ObservabilityPipelineGcpAuth, optional
9191
9292 :param bucket: Name of the GCS bucket.
9393 :type bucket: str
@@ -110,14 +110,16 @@ def __init__(
110110 :param type: The destination type. Always ``google_cloud_storage``.
111111 :type type: ObservabilityPipelineGoogleCloudStorageDestinationType
112112 """
113+ if acl is not unset :
114+ kwargs ["acl" ] = acl
115+ if auth is not unset :
116+ kwargs ["auth" ] = auth
113117 if key_prefix is not unset :
114118 kwargs ["key_prefix" ] = key_prefix
115119 if metadata is not unset :
116120 kwargs ["metadata" ] = metadata
117121 super ().__init__ (kwargs )
118122
119- self_ .acl = acl
120- self_ .auth = auth
121123 self_ .bucket = bucket
122124 self_ .id = id
123125 self_ .inputs = inputs
0 commit comments