Skip to content
This repository was archived by the owner on Jul 6, 2023. It is now read-only.

Commit bb36139

Browse files
feat: Add WriteDisposition to BigQuery Export API (#107)
- [ ] Regenerate this pull request now. PiperOrigin-RevId: 413945427 Source-Link: googleapis/googleapis@6230f6e Source-Link: https://github.com/googleapis/googleapis-gen/commit/00cdef308d6d6ba4c75354de491da484f642bd80 Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiMDBjZGVmMzA4ZDZkNmJhNGM3NTM1NGRlNDkxZGE0ODRmNjQyYmQ4MCJ9
1 parent 8018a51 commit bb36139

File tree

2 files changed

+13
-1
lines changed

2 files changed

+13
-1
lines changed

google/cloud/contact_center_insights_v1/types/contact_center_insights.py

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -455,8 +455,19 @@ class ExportInsightsDataRequest(proto.Message):
455455
A fully qualified KMS key name for BigQuery
456456
tables protected by CMEK. Format:
457457
projects/{project}/locations/{location}/keyRings/{keyring}/cryptoKeys/{key}/cryptoKeyVersions/{version}
458+
write_disposition (google.cloud.contact_center_insights_v1.types.ExportInsightsDataRequest.WriteDisposition):
459+
Options for what to do if the destination
460+
table already exists.
458461
"""
459462

463+
class WriteDisposition(proto.Enum):
464+
r"""Specifies the action that occurs if the destination table
465+
already exists.
466+
"""
467+
WRITE_DISPOSITION_UNSPECIFIED = 0
468+
WRITE_TRUNCATE = 1
469+
WRITE_APPEND = 2
470+
460471
class BigQueryDestination(proto.Message):
461472
r"""A BigQuery Table Reference.
462473
@@ -486,6 +497,7 @@ class BigQueryDestination(proto.Message):
486497
parent = proto.Field(proto.STRING, number=1,)
487498
filter = proto.Field(proto.STRING, number=3,)
488499
kms_key = proto.Field(proto.STRING, number=4,)
500+
write_disposition = proto.Field(proto.ENUM, number=5, enum=WriteDisposition,)
489501

490502

491503
class ExportInsightsDataMetadata(proto.Message):

scripts/fixup_contact_center_insights_v1_keywords.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ class contact_center_insightsCallTransformer(cst.CSTTransformer):
5050
'delete_issue_model': ('name', ),
5151
'delete_phrase_matcher': ('name', ),
5252
'deploy_issue_model': ('name', ),
53-
'export_insights_data': ('parent', 'big_query_destination', 'filter', 'kms_key', ),
53+
'export_insights_data': ('parent', 'big_query_destination', 'filter', 'kms_key', 'write_disposition', ),
5454
'get_analysis': ('name', ),
5555
'get_conversation': ('name', 'view', ),
5656
'get_issue': ('name', ),

0 commit comments

Comments
 (0)