Skip to content
This repository has been archived by the owner on Sep 5, 2023. It is now read-only.

Commit

Permalink
docs: update taxonomy display_name comment (#338)
Browse files Browse the repository at this point in the history
- [ ] Regenerate this pull request now.

feat: added Dataplex specific fields
feat: AuditConfig for IAM v1
fix(deps): require grpc-google-iam-v1 >=0.12.4
docs: fix type in docstring for map fields 

PiperOrigin-RevId: 440386238

Source-Link: googleapis/googleapis@99fd8be

Source-Link: https://github.com/googleapis/googleapis-gen/commit/e132e73e514ed7a3009e69de8248a364b8878cb8
Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiZTEzMmU3M2U1MTRlZDdhMzAwOWU2OWRlODI0OGEzNjRiODg3OGNiOCJ9
  • Loading branch information
gcf-owl-bot[bot] authored Apr 9, 2022
1 parent fe4e8a7 commit 9e33102
Show file tree
Hide file tree
Showing 216 changed files with 1,185 additions and 8,688 deletions.
Empty file added datacatalog-v1beta1-py.tar.gz
Empty file.
14 changes: 14 additions & 0 deletions google/cloud/datacatalog/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@
from google.cloud.datacatalog_v1.types.common import PersonalDetails
from google.cloud.datacatalog_v1.types.common import IntegratedSystem
from google.cloud.datacatalog_v1.types.data_source import DataSource
from google.cloud.datacatalog_v1.types.data_source import StorageProperties
from google.cloud.datacatalog_v1.types.datacatalog import BusinessContext
from google.cloud.datacatalog_v1.types.datacatalog import Contacts
from google.cloud.datacatalog_v1.types.datacatalog import CreateEntryGroupRequest
Expand All @@ -54,6 +55,7 @@
from google.cloud.datacatalog_v1.types.datacatalog import Entry
from google.cloud.datacatalog_v1.types.datacatalog import EntryGroup
from google.cloud.datacatalog_v1.types.datacatalog import EntryOverview
from google.cloud.datacatalog_v1.types.datacatalog import FilesetSpec
from google.cloud.datacatalog_v1.types.datacatalog import GetEntryGroupRequest
from google.cloud.datacatalog_v1.types.datacatalog import GetEntryRequest
from google.cloud.datacatalog_v1.types.datacatalog import GetTagTemplateRequest
Expand Down Expand Up @@ -83,8 +85,13 @@
from google.cloud.datacatalog_v1.types.datacatalog import UpdateTagTemplateFieldRequest
from google.cloud.datacatalog_v1.types.datacatalog import UpdateTagTemplateRequest
from google.cloud.datacatalog_v1.types.datacatalog import EntryType
from google.cloud.datacatalog_v1.types.dataplex_spec import DataplexExternalTable
from google.cloud.datacatalog_v1.types.dataplex_spec import DataplexFilesetSpec
from google.cloud.datacatalog_v1.types.dataplex_spec import DataplexSpec
from google.cloud.datacatalog_v1.types.dataplex_spec import DataplexTableSpec
from google.cloud.datacatalog_v1.types.gcs_fileset_spec import GcsFilesetSpec
from google.cloud.datacatalog_v1.types.gcs_fileset_spec import GcsFileSpec
from google.cloud.datacatalog_v1.types.physical_schema import PhysicalSchema
from google.cloud.datacatalog_v1.types.policytagmanager import CreatePolicyTagRequest
from google.cloud.datacatalog_v1.types.policytagmanager import CreateTaxonomyRequest
from google.cloud.datacatalog_v1.types.policytagmanager import DeletePolicyTagRequest
Expand Down Expand Up @@ -155,6 +162,7 @@
"PersonalDetails",
"IntegratedSystem",
"DataSource",
"StorageProperties",
"BusinessContext",
"Contacts",
"CreateEntryGroupRequest",
Expand All @@ -172,6 +180,7 @@
"Entry",
"EntryGroup",
"EntryOverview",
"FilesetSpec",
"GetEntryGroupRequest",
"GetEntryRequest",
"GetTagTemplateRequest",
Expand Down Expand Up @@ -199,8 +208,13 @@
"UpdateTagTemplateFieldRequest",
"UpdateTagTemplateRequest",
"EntryType",
"DataplexExternalTable",
"DataplexFilesetSpec",
"DataplexSpec",
"DataplexTableSpec",
"GcsFilesetSpec",
"GcsFileSpec",
"PhysicalSchema",
"CreatePolicyTagRequest",
"CreateTaxonomyRequest",
"DeletePolicyTagRequest",
Expand Down
14 changes: 14 additions & 0 deletions google/cloud/datacatalog_v1/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
from .types.common import PersonalDetails
from .types.common import IntegratedSystem
from .types.data_source import DataSource
from .types.data_source import StorageProperties
from .types.datacatalog import BusinessContext
from .types.datacatalog import Contacts
from .types.datacatalog import CreateEntryGroupRequest
Expand All @@ -48,6 +49,7 @@
from .types.datacatalog import Entry
from .types.datacatalog import EntryGroup
from .types.datacatalog import EntryOverview
from .types.datacatalog import FilesetSpec
from .types.datacatalog import GetEntryGroupRequest
from .types.datacatalog import GetEntryRequest
from .types.datacatalog import GetTagTemplateRequest
Expand Down Expand Up @@ -75,8 +77,13 @@
from .types.datacatalog import UpdateTagTemplateFieldRequest
from .types.datacatalog import UpdateTagTemplateRequest
from .types.datacatalog import EntryType
from .types.dataplex_spec import DataplexExternalTable
from .types.dataplex_spec import DataplexFilesetSpec
from .types.dataplex_spec import DataplexSpec
from .types.dataplex_spec import DataplexTableSpec
from .types.gcs_fileset_spec import GcsFilesetSpec
from .types.gcs_fileset_spec import GcsFileSpec
from .types.physical_schema import PhysicalSchema
from .types.policytagmanager import CreatePolicyTagRequest
from .types.policytagmanager import CreateTaxonomyRequest
from .types.policytagmanager import DeletePolicyTagRequest
Expand Down Expand Up @@ -142,6 +149,10 @@
"DataSource",
"DataSourceConnectionSpec",
"DatabaseTableSpec",
"DataplexExternalTable",
"DataplexFilesetSpec",
"DataplexSpec",
"DataplexTableSpec",
"DeleteEntryGroupRequest",
"DeleteEntryRequest",
"DeletePolicyTagRequest",
Expand All @@ -156,6 +167,7 @@
"ExportTaxonomiesRequest",
"ExportTaxonomiesResponse",
"FieldType",
"FilesetSpec",
"GcsFileSpec",
"GcsFilesetSpec",
"GetEntryGroupRequest",
Expand All @@ -181,6 +193,7 @@
"ModifyEntryContactsRequest",
"ModifyEntryOverviewRequest",
"PersonalDetails",
"PhysicalSchema",
"PolicyTag",
"PolicyTagManagerClient",
"PolicyTagManagerSerializationClient",
Expand All @@ -197,6 +210,7 @@
"SerializedTaxonomy",
"StarEntryRequest",
"StarEntryResponse",
"StorageProperties",
"SystemTimestamps",
"TableSourceType",
"TableSpec",
Expand Down
92 changes: 52 additions & 40 deletions google/cloud/datacatalog_v1/services/data_catalog/async_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -1018,7 +1018,7 @@ def sample_create_entry():
# Initialize request argument(s)
entry = datacatalog_v1.Entry()
entry.type_ = "SERVICE"
entry.integrated_system = "DATAPROC_METASTORE"
entry.integrated_system = "DATAPLEX"
entry.gcs_fileset_spec.file_patterns = ['file_patterns_value_1', 'file_patterns_value_2']
request = datacatalog_v1.CreateEntryRequest(
Expand Down Expand Up @@ -1158,7 +1158,7 @@ def sample_update_entry():
# Initialize request argument(s)
entry = datacatalog_v1.Entry()
entry.type_ = "SERVICE"
entry.integrated_system = "DATAPROC_METASTORE"
entry.integrated_system = "DATAPLEX"
entry.gcs_fileset_spec.file_patterns = ['file_patterns_value_1', 'file_patterns_value_2']
request = datacatalog_v1.UpdateEntryRequest(
Expand Down Expand Up @@ -3663,21 +3663,26 @@ def sample_set_iam_policy():
Returns:
google.iam.v1.policy_pb2.Policy:
Defines an Identity and Access Management (IAM) policy. It is used to
specify access control policies for Cloud Platform
resources.
An Identity and Access Management (IAM) policy, which specifies access
controls for Google Cloud resources.
A Policy is a collection of bindings. A binding binds
one or more members to a single role. Members can be
user accounts, service accounts, Google groups, and
domains (such as G Suite). A role is a named list of
permissions (defined by IAM or configured by users).
A binding can optionally specify a condition, which
is a logic expression that further constrains the
role binding based on attributes about the request
and/or target resource.
**JSON Example**
one or more members, or principals, to a single role.
Principals can be user accounts, service accounts,
Google groups, and domains (such as G Suite). A role
is a named list of permissions; each role can be an
IAM predefined role or a user-created custom role.
For some types of Google Cloud resources, a binding
can also specify a condition, which is a logical
expression that allows access to a resource only if
the expression evaluates to true. A condition can add
constraints based on attributes of the request, the
resource, or both. To learn which resources support
conditions in their IAM policies, see the [IAM
documentation](\ https://cloud.google.com/iam/help/conditions/resource-policies).
**JSON example:**
{
"bindings": [
Expand All @@ -3692,17 +3697,17 @@ def sample_set_iam_policy():
}, { "role":
"roles/resourcemanager.organizationViewer",
"members": ["user:eve@example.com"],
"members": [ "user:eve@example.com" ],
"condition": { "title": "expirable access",
"description": "Does not grant access after
Sep 2020", "expression": "request.time <
timestamp('2020-10-01T00:00:00.000Z')", } }
]
], "etag": "BwWWja0YfJA=", "version": 3
}
**YAML Example**
**YAML example:**
bindings: - members: - user:\ mike@example.com -
group:\ admins@example.com - domain:google.com -
Expand All @@ -3713,11 +3718,12 @@ def sample_set_iam_policy():
condition: title: expirable access description:
Does not grant access after Sep 2020 expression:
request.time <
timestamp('2020-10-01T00:00:00.000Z')
timestamp('2020-10-01T00:00:00.000Z') etag:
BwWWja0YfJA= version: 3
For a description of IAM and its features, see the
[IAM developer's
guide](\ https://cloud.google.com/iam/docs).
[IAM
documentation](\ https://cloud.google.com/iam/docs/).
"""
# Create or coerce a protobuf request object.
Expand Down Expand Up @@ -3839,21 +3845,26 @@ def sample_get_iam_policy():
Returns:
google.iam.v1.policy_pb2.Policy:
Defines an Identity and Access Management (IAM) policy. It is used to
specify access control policies for Cloud Platform
resources.
An Identity and Access Management (IAM) policy, which specifies access
controls for Google Cloud resources.
A Policy is a collection of bindings. A binding binds
one or more members to a single role. Members can be
user accounts, service accounts, Google groups, and
domains (such as G Suite). A role is a named list of
permissions (defined by IAM or configured by users).
A binding can optionally specify a condition, which
is a logic expression that further constrains the
role binding based on attributes about the request
and/or target resource.
**JSON Example**
one or more members, or principals, to a single role.
Principals can be user accounts, service accounts,
Google groups, and domains (such as G Suite). A role
is a named list of permissions; each role can be an
IAM predefined role or a user-created custom role.
For some types of Google Cloud resources, a binding
can also specify a condition, which is a logical
expression that allows access to a resource only if
the expression evaluates to true. A condition can add
constraints based on attributes of the request, the
resource, or both. To learn which resources support
conditions in their IAM policies, see the [IAM
documentation](\ https://cloud.google.com/iam/help/conditions/resource-policies).
**JSON example:**
{
"bindings": [
Expand All @@ -3868,17 +3879,17 @@ def sample_get_iam_policy():
}, { "role":
"roles/resourcemanager.organizationViewer",
"members": ["user:eve@example.com"],
"members": [ "user:eve@example.com" ],
"condition": { "title": "expirable access",
"description": "Does not grant access after
Sep 2020", "expression": "request.time <
timestamp('2020-10-01T00:00:00.000Z')", } }
]
], "etag": "BwWWja0YfJA=", "version": 3
}
**YAML Example**
**YAML example:**
bindings: - members: - user:\ mike@example.com -
group:\ admins@example.com - domain:google.com -
Expand All @@ -3889,11 +3900,12 @@ def sample_get_iam_policy():
condition: title: expirable access description:
Does not grant access after Sep 2020 expression:
request.time <
timestamp('2020-10-01T00:00:00.000Z')
timestamp('2020-10-01T00:00:00.000Z') etag:
BwWWja0YfJA= version: 3
For a description of IAM and its features, see the
[IAM developer's
guide](\ https://cloud.google.com/iam/docs).
[IAM
documentation](\ https://cloud.google.com/iam/docs/).
"""
# Create or coerce a protobuf request object.
Expand Down
Loading

0 comments on commit 9e33102

Please sign in to comment.