Skip to content

Commit

Permalink
feat: Add WriteDisposition to BigQuery Export API (#107)
Browse files Browse the repository at this point in the history
- [ ] Regenerate this pull request now.

PiperOrigin-RevId: 413945427

Source-Link: googleapis/googleapis@6230f6e

Source-Link: googleapis/googleapis-gen@00cdef3
Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiMDBjZGVmMzA4ZDZkNmJhNGM3NTM1NGRlNDkxZGE0ODRmNjQyYmQ4MCJ9
  • Loading branch information
gcf-owl-bot[bot] authored Dec 5, 2021
1 parent 3ee40c1 commit 293365f
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -455,8 +455,19 @@ class ExportInsightsDataRequest(proto.Message):
A fully qualified KMS key name for BigQuery
tables protected by CMEK. Format:
projects/{project}/locations/{location}/keyRings/{keyring}/cryptoKeys/{key}/cryptoKeyVersions/{version}
write_disposition (google.cloud.contact_center_insights_v1.types.ExportInsightsDataRequest.WriteDisposition):
Options for what to do if the destination
table already exists.
"""

class WriteDisposition(proto.Enum):
r"""Specifies the action that occurs if the destination table
already exists.
"""
WRITE_DISPOSITION_UNSPECIFIED = 0
WRITE_TRUNCATE = 1
WRITE_APPEND = 2

class BigQueryDestination(proto.Message):
r"""A BigQuery Table Reference.
Expand Down Expand Up @@ -486,6 +497,7 @@ class BigQueryDestination(proto.Message):
parent = proto.Field(proto.STRING, number=1,)
filter = proto.Field(proto.STRING, number=3,)
kms_key = proto.Field(proto.STRING, number=4,)
write_disposition = proto.Field(proto.ENUM, number=5, enum=WriteDisposition,)


class ExportInsightsDataMetadata(proto.Message):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ class contact_center_insightsCallTransformer(cst.CSTTransformer):
'delete_issue_model': ('name', ),
'delete_phrase_matcher': ('name', ),
'deploy_issue_model': ('name', ),
'export_insights_data': ('parent', 'big_query_destination', 'filter', 'kms_key', ),
'export_insights_data': ('parent', 'big_query_destination', 'filter', 'kms_key', 'write_disposition', ),
'get_analysis': ('name', ),
'get_conversation': ('name', 'view', ),
'get_issue': ('name', ),
Expand Down

0 comments on commit 293365f

Please sign in to comment.