Skip to content

Commit

Permalink
chore: [google-cloud-datacatalog] Update gapic-generator-python to v1…
Browse files Browse the repository at this point in the history
….18.3 (#12920)

- [ ] Regenerate this pull request now.

BEGIN_COMMIT_OVERRIDE
feat: [google-cloud-datacatalog] add DataplexTransferStatus enum and
field to TagTemplate
docs: update field comments for updated IDENTIFIER field behavior
END_COMMIT_OVERRIDE

PiperOrigin-RevId: 656040068

Source-Link:
googleapis/googleapis@3f4e29a

Source-Link:
googleapis/googleapis-gen@b8feb21
Copy-Tag:
eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLWRhdGFjYXRhbG9nLy5Pd2xCb3QueWFtbCIsImgiOiJiOGZlYjIxMDlkZGU3YjA5MzhjMjJjOTkzZDAwMjI1MWFjNjcxNGRjIn0=

BEGIN_NESTED_COMMIT
chore: [google-cloud-datacatalog] Update gapic-generator-python to
v1.18.3
PiperOrigin-RevId: 655567917

Source-Link:
googleapis/googleapis@43aa65e

Source-Link:
googleapis/googleapis-gen@0e38378
Copy-Tag:
eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLWRhdGFjYXRhbG9nLy5Pd2xCb3QueWFtbCIsImgiOiIwZTM4Mzc4NzUzMDc0YzBmNjZmZjYzMzQ4ZDY4NjQ5MjllMTA0ZDVjIn0=
END_NESTED_COMMIT
BEGIN_NESTED_COMMIT
feat: [google-cloud-datacatalog] add DataplexTransferStatus enum and
field to TagTemplate
docs: update field comments for updated IDENTIFIER field behavior

PiperOrigin-RevId: 655260321

Source-Link:
googleapis/googleapis@2638123

Source-Link:
googleapis/googleapis-gen@e626a8c
Copy-Tag:
eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLWRhdGFjYXRhbG9nLy5Pd2xCb3QueWFtbCIsImgiOiJlNjI2YThjNTJjNmFlMjJjZDRhNjM4ZDhjOTJjZjExYzc0YWVjMTliIn0=
END_NESTED_COMMIT

---------

Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
  • Loading branch information
gcf-owl-bot[bot] and gcf-owl-bot[bot] authored Jul 29, 2024
1 parent 2c7c4b7 commit 8a2814b
Show file tree
Hide file tree
Showing 9 changed files with 73 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@
# See the License for the specific language governing permissions and
# limitations under the License.
#
__version__ = "3.19.1" # {x-release-please-version}
__version__ = "0.0.0" # {x-release-please-version}
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@
# See the License for the specific language governing permissions and
# limitations under the License.
#
__version__ = "3.19.1" # {x-release-please-version}
__version__ = "0.0.0" # {x-release-please-version}
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@
# See the License for the specific language governing permissions and
# limitations under the License.
#
__version__ = "3.19.1" # {x-release-please-version}
__version__ = "0.0.0" # {x-release-please-version}
Original file line number Diff line number Diff line change
Expand Up @@ -659,8 +659,8 @@ class Entry(proto.Message):
Attributes:
name (str):
Output only. The Data Catalog resource name of the entry in
URL format. Example:
Output only. Identifier. The Data Catalog resource name of
the entry in URL format. Example:
- projects/{project_id}/locations/{location}/entryGroups/{entry_group_id}/entries/{entry_id}
Expand Down Expand Up @@ -838,7 +838,8 @@ class EntryGroup(proto.Message):
Attributes:
name (str):
The resource name of the entry group in URL format. Example:
Identifier. The resource name of the entry group in URL
format. Example:
- projects/{project_id}/locations/{location}/entryGroups/{entry_group_id}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,8 @@ class Tag(proto.Message):
Attributes:
name (str):
The resource name of the tag in URL format. Example:
Identifier. The resource name of the tag in URL format.
Example:
- projects/{project_id}/locations/{location}/entrygroups/{entry_group_id}/entries/{entry_id}/tags/{tag_id}
Expand Down Expand Up @@ -219,8 +220,8 @@ class TagTemplate(proto.Message):
Attributes:
name (str):
The resource name of the tag template in URL format.
Example:
Identifier. The resource name of the tag template in URL
format. Example:
- projects/{project_id}/locations/{location}/tagTemplates/{tag_template_id}
Expand All @@ -240,8 +241,27 @@ class TagTemplate(proto.Message):
(0-9) and underscores (_). Field IDs must be at least 1
character long and at most 64 characters long. Field IDs
must start with a letter or underscore.
dataplex_transfer_status (google.cloud.datacatalog_v1beta1.types.TagTemplate.DataplexTransferStatus):
Output only. Transfer status of the
TagTemplate
"""

class DataplexTransferStatus(proto.Enum):
r"""This enum describes TagTemplate transfer status to Dataplex
service.
Values:
DATAPLEX_TRANSFER_STATUS_UNSPECIFIED (0):
Default value. TagTemplate and its tags are
only visible and editable in DataCatalog.
MIGRATED (1):
TagTemplate and its tags are auto-copied to
Dataplex service. Visible in both services.
Editable in DataCatalog, read-only in Dataplex.
"""
DATAPLEX_TRANSFER_STATUS_UNSPECIFIED = 0
MIGRATED = 1

name: str = proto.Field(
proto.STRING,
number=1,
Expand All @@ -256,15 +276,20 @@ class TagTemplate(proto.Message):
number=3,
message="TagTemplateField",
)
dataplex_transfer_status: DataplexTransferStatus = proto.Field(
proto.ENUM,
number=7,
enum=DataplexTransferStatus,
)


class TagTemplateField(proto.Message):
r"""The template for an individual field within a tag template.
Attributes:
name (str):
Output only. The resource name of the tag template field in
URL format. Example:
Output only. Identifier. The resource name of the tag
template field in URL format. Example:
- projects/{project_id}/locations/{location}/tagTemplates/{tag_template}/fields/{field}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ class UsageStats(proto.Message):
- The usage stats only include BigQuery query jobs
- The usage stats might be underestimated, e.g. wildcard table
references are not yet counted in usage computation
https://cloud.google.com/bigquery/docs/querying-wildcard-tables
https://cloud.google.com/bigquery/docs/querying-wildcard-tables
Attributes:
total_completions (float):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
],
"language": "PYTHON",
"name": "google-cloud-datacatalog",
"version": "3.19.1"
"version": "0.1.0"
},
"snippets": [
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
],
"language": "PYTHON",
"name": "google-cloud-datacatalog",
"version": "3.19.1"
"version": "0.1.0"
},
"snippets": [
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6083,6 +6083,7 @@ def test_create_tag_template(request_type, transport: str = "grpc"):
call.return_value = tags.TagTemplate(
name="name_value",
display_name="display_name_value",
dataplex_transfer_status=tags.TagTemplate.DataplexTransferStatus.MIGRATED,
)
response = client.create_tag_template(request)

Expand All @@ -6096,6 +6097,10 @@ def test_create_tag_template(request_type, transport: str = "grpc"):
assert isinstance(response, tags.TagTemplate)
assert response.name == "name_value"
assert response.display_name == "display_name_value"
assert (
response.dataplex_transfer_status
== tags.TagTemplate.DataplexTransferStatus.MIGRATED
)


def test_create_tag_template_empty_call():
Expand Down Expand Up @@ -6208,6 +6213,7 @@ async def test_create_tag_template_empty_call_async():
tags.TagTemplate(
name="name_value",
display_name="display_name_value",
dataplex_transfer_status=tags.TagTemplate.DataplexTransferStatus.MIGRATED,
)
)
response = await client.create_tag_template()
Expand Down Expand Up @@ -6279,6 +6285,7 @@ async def test_create_tag_template_async(
tags.TagTemplate(
name="name_value",
display_name="display_name_value",
dataplex_transfer_status=tags.TagTemplate.DataplexTransferStatus.MIGRATED,
)
)
response = await client.create_tag_template(request)
Expand All @@ -6293,6 +6300,10 @@ async def test_create_tag_template_async(
assert isinstance(response, tags.TagTemplate)
assert response.name == "name_value"
assert response.display_name == "display_name_value"
assert (
response.dataplex_transfer_status
== tags.TagTemplate.DataplexTransferStatus.MIGRATED
)


@pytest.mark.asyncio
Expand Down Expand Up @@ -6490,6 +6501,7 @@ def test_get_tag_template(request_type, transport: str = "grpc"):
call.return_value = tags.TagTemplate(
name="name_value",
display_name="display_name_value",
dataplex_transfer_status=tags.TagTemplate.DataplexTransferStatus.MIGRATED,
)
response = client.get_tag_template(request)

Expand All @@ -6503,6 +6515,10 @@ def test_get_tag_template(request_type, transport: str = "grpc"):
assert isinstance(response, tags.TagTemplate)
assert response.name == "name_value"
assert response.display_name == "display_name_value"
assert (
response.dataplex_transfer_status
== tags.TagTemplate.DataplexTransferStatus.MIGRATED
)


def test_get_tag_template_empty_call():
Expand Down Expand Up @@ -6605,6 +6621,7 @@ async def test_get_tag_template_empty_call_async():
tags.TagTemplate(
name="name_value",
display_name="display_name_value",
dataplex_transfer_status=tags.TagTemplate.DataplexTransferStatus.MIGRATED,
)
)
response = await client.get_tag_template()
Expand Down Expand Up @@ -6674,6 +6691,7 @@ async def test_get_tag_template_async(
tags.TagTemplate(
name="name_value",
display_name="display_name_value",
dataplex_transfer_status=tags.TagTemplate.DataplexTransferStatus.MIGRATED,
)
)
response = await client.get_tag_template(request)
Expand All @@ -6688,6 +6706,10 @@ async def test_get_tag_template_async(
assert isinstance(response, tags.TagTemplate)
assert response.name == "name_value"
assert response.display_name == "display_name_value"
assert (
response.dataplex_transfer_status
== tags.TagTemplate.DataplexTransferStatus.MIGRATED
)


@pytest.mark.asyncio
Expand Down Expand Up @@ -6859,6 +6881,7 @@ def test_update_tag_template(request_type, transport: str = "grpc"):
call.return_value = tags.TagTemplate(
name="name_value",
display_name="display_name_value",
dataplex_transfer_status=tags.TagTemplate.DataplexTransferStatus.MIGRATED,
)
response = client.update_tag_template(request)

Expand All @@ -6872,6 +6895,10 @@ def test_update_tag_template(request_type, transport: str = "grpc"):
assert isinstance(response, tags.TagTemplate)
assert response.name == "name_value"
assert response.display_name == "display_name_value"
assert (
response.dataplex_transfer_status
== tags.TagTemplate.DataplexTransferStatus.MIGRATED
)


def test_update_tag_template_empty_call():
Expand Down Expand Up @@ -6978,6 +7005,7 @@ async def test_update_tag_template_empty_call_async():
tags.TagTemplate(
name="name_value",
display_name="display_name_value",
dataplex_transfer_status=tags.TagTemplate.DataplexTransferStatus.MIGRATED,
)
)
response = await client.update_tag_template()
Expand Down Expand Up @@ -7049,6 +7077,7 @@ async def test_update_tag_template_async(
tags.TagTemplate(
name="name_value",
display_name="display_name_value",
dataplex_transfer_status=tags.TagTemplate.DataplexTransferStatus.MIGRATED,
)
)
response = await client.update_tag_template(request)
Expand All @@ -7063,6 +7092,10 @@ async def test_update_tag_template_async(
assert isinstance(response, tags.TagTemplate)
assert response.name == "name_value"
assert response.display_name == "display_name_value"
assert (
response.dataplex_transfer_status
== tags.TagTemplate.DataplexTransferStatus.MIGRATED
)


@pytest.mark.asyncio
Expand Down

0 comments on commit 8a2814b

Please sign in to comment.