diff --git a/datacatalog-v1beta1-py.tar.gz b/datacatalog-v1beta1-py.tar.gz new file mode 100644 index 00000000..e69de29b diff --git a/google/cloud/datacatalog/__init__.py b/google/cloud/datacatalog/__init__.py index a9239df7..84b14d9a 100644 --- a/google/cloud/datacatalog/__init__.py +++ b/google/cloud/datacatalog/__init__.py @@ -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 @@ -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 @@ -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 @@ -155,6 +162,7 @@ "PersonalDetails", "IntegratedSystem", "DataSource", + "StorageProperties", "BusinessContext", "Contacts", "CreateEntryGroupRequest", @@ -172,6 +180,7 @@ "Entry", "EntryGroup", "EntryOverview", + "FilesetSpec", "GetEntryGroupRequest", "GetEntryRequest", "GetTagTemplateRequest", @@ -199,8 +208,13 @@ "UpdateTagTemplateFieldRequest", "UpdateTagTemplateRequest", "EntryType", + "DataplexExternalTable", + "DataplexFilesetSpec", + "DataplexSpec", + "DataplexTableSpec", "GcsFilesetSpec", "GcsFileSpec", + "PhysicalSchema", "CreatePolicyTagRequest", "CreateTaxonomyRequest", "DeletePolicyTagRequest", diff --git a/google/cloud/datacatalog_v1/__init__.py b/google/cloud/datacatalog_v1/__init__.py index f098efc7..b52548f2 100644 --- a/google/cloud/datacatalog_v1/__init__.py +++ b/google/cloud/datacatalog_v1/__init__.py @@ -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 @@ -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 @@ -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 @@ -142,6 +149,10 @@ "DataSource", "DataSourceConnectionSpec", "DatabaseTableSpec", + "DataplexExternalTable", + "DataplexFilesetSpec", + "DataplexSpec", + "DataplexTableSpec", "DeleteEntryGroupRequest", "DeleteEntryRequest", "DeletePolicyTagRequest", @@ -156,6 +167,7 @@ "ExportTaxonomiesRequest", "ExportTaxonomiesResponse", "FieldType", + "FilesetSpec", "GcsFileSpec", "GcsFilesetSpec", "GetEntryGroupRequest", @@ -181,6 +193,7 @@ "ModifyEntryContactsRequest", "ModifyEntryOverviewRequest", "PersonalDetails", + "PhysicalSchema", "PolicyTag", "PolicyTagManagerClient", "PolicyTagManagerSerializationClient", @@ -197,6 +210,7 @@ "SerializedTaxonomy", "StarEntryRequest", "StarEntryResponse", + "StorageProperties", "SystemTimestamps", "TableSourceType", "TableSpec", diff --git a/google/cloud/datacatalog_v1/services/data_catalog/async_client.py b/google/cloud/datacatalog_v1/services/data_catalog/async_client.py index c0b5550d..06e06eae 100644 --- a/google/cloud/datacatalog_v1/services/data_catalog/async_client.py +++ b/google/cloud/datacatalog_v1/services/data_catalog/async_client.py @@ -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( @@ -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( @@ -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": [ @@ -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 - @@ -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. @@ -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": [ @@ -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 - @@ -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. diff --git a/google/cloud/datacatalog_v1/services/data_catalog/client.py b/google/cloud/datacatalog_v1/services/data_catalog/client.py index 97c6cba4..8babe669 100644 --- a/google/cloud/datacatalog_v1/services/data_catalog/client.py +++ b/google/cloud/datacatalog_v1/services/data_catalog/client.py @@ -1325,7 +1325,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( @@ -1465,7 +1465,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( @@ -3947,21 +3947,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": [ @@ -3976,17 +3981,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 - @@ -3997,11 +4002,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. @@ -4120,21 +4126,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": [ @@ -4149,17 +4160,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 - @@ -4170,11 +4181,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. diff --git a/google/cloud/datacatalog_v1/services/policy_tag_manager/async_client.py b/google/cloud/datacatalog_v1/services/policy_tag_manager/async_client.py index d3829ea7..affdc133 100644 --- a/google/cloud/datacatalog_v1/services/policy_tag_manager/async_client.py +++ b/google/cloud/datacatalog_v1/services/policy_tag_manager/async_client.py @@ -1301,21 +1301,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": [ @@ -1330,17 +1335,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 - @@ -1351,11 +1356,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. @@ -1430,21 +1436,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": [ @@ -1459,17 +1470,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 - @@ -1480,11 +1491,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. diff --git a/google/cloud/datacatalog_v1/services/policy_tag_manager/client.py b/google/cloud/datacatalog_v1/services/policy_tag_manager/client.py index 2f5a7be4..9d15ff23 100644 --- a/google/cloud/datacatalog_v1/services/policy_tag_manager/client.py +++ b/google/cloud/datacatalog_v1/services/policy_tag_manager/client.py @@ -1547,21 +1547,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": [ @@ -1576,17 +1581,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 - @@ -1597,11 +1602,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. @@ -1675,21 +1681,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": [ @@ -1704,17 +1715,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 - @@ -1725,11 +1736,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. diff --git a/google/cloud/datacatalog_v1/types/__init__.py b/google/cloud/datacatalog_v1/types/__init__.py index 6306c035..16a0bf3d 100644 --- a/google/cloud/datacatalog_v1/types/__init__.py +++ b/google/cloud/datacatalog_v1/types/__init__.py @@ -22,7 +22,10 @@ PersonalDetails, IntegratedSystem, ) -from .data_source import DataSource +from .data_source import ( + DataSource, + StorageProperties, +) from .datacatalog import ( BusinessContext, Contacts, @@ -41,6 +44,7 @@ Entry, EntryGroup, EntryOverview, + FilesetSpec, GetEntryGroupRequest, GetEntryRequest, GetTagTemplateRequest, @@ -69,10 +73,19 @@ UpdateTagTemplateRequest, EntryType, ) +from .dataplex_spec import ( + DataplexExternalTable, + DataplexFilesetSpec, + DataplexSpec, + DataplexTableSpec, +) from .gcs_fileset_spec import ( GcsFilesetSpec, GcsFileSpec, ) +from .physical_schema import ( + PhysicalSchema, +) from .policytagmanager import ( CreatePolicyTagRequest, CreateTaxonomyRequest, @@ -122,7 +135,9 @@ TagTemplate, TagTemplateField, ) -from .timestamps import SystemTimestamps +from .timestamps import ( + SystemTimestamps, +) from .usage import ( UsageSignal, UsageStats, @@ -135,6 +150,7 @@ "PersonalDetails", "IntegratedSystem", "DataSource", + "StorageProperties", "BusinessContext", "Contacts", "CreateEntryGroupRequest", @@ -152,6 +168,7 @@ "Entry", "EntryGroup", "EntryOverview", + "FilesetSpec", "GetEntryGroupRequest", "GetEntryRequest", "GetTagTemplateRequest", @@ -179,8 +196,13 @@ "UpdateTagTemplateFieldRequest", "UpdateTagTemplateRequest", "EntryType", + "DataplexExternalTable", + "DataplexFilesetSpec", + "DataplexSpec", + "DataplexTableSpec", "GcsFilesetSpec", "GcsFileSpec", + "PhysicalSchema", "CreatePolicyTagRequest", "CreateTaxonomyRequest", "DeletePolicyTagRequest", diff --git a/google/cloud/datacatalog_v1/types/common.py b/google/cloud/datacatalog_v1/types/common.py index 92ec9785..d1633a26 100644 --- a/google/cloud/datacatalog_v1/types/common.py +++ b/google/cloud/datacatalog_v1/types/common.py @@ -35,6 +35,7 @@ class IntegratedSystem(proto.Enum): BIGQUERY = 1 CLOUD_PUBSUB = 2 DATAPROC_METASTORE = 3 + DATAPLEX = 4 class PersonalDetails(proto.Message): diff --git a/google/cloud/datacatalog_v1/types/data_source.py b/google/cloud/datacatalog_v1/types/data_source.py index e5f1db03..7322e8b2 100644 --- a/google/cloud/datacatalog_v1/types/data_source.py +++ b/google/cloud/datacatalog_v1/types/data_source.py @@ -20,6 +20,7 @@ package="google.cloud.datacatalog.v1", manifest={ "DataSource", + "StorageProperties", }, ) @@ -27,6 +28,8 @@ class DataSource(proto.Message): r"""Physical location of an entry. + .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields + Attributes: service (google.cloud.datacatalog_v1.types.DataSource.Service): Service that physically stores the data. @@ -35,6 +38,14 @@ class DataSource(proto.Message): example: ``//bigquery.googleapis.com/projects/{PROJECT_ID}/locations/{LOCATION}/datasets/{DATASET_ID}/tables/{TABLE_ID}`` + source_entry (str): + Output only. Data Catalog entry name, if + applicable. + storage_properties (google.cloud.datacatalog_v1.types.StorageProperties): + Detailed properties of the underlying + storage. + + This field is a member of `oneof`_ ``properties``. """ class Service(proto.Enum): @@ -52,6 +63,58 @@ class Service(proto.Enum): proto.STRING, number=2, ) + source_entry = proto.Field( + proto.STRING, + number=3, + ) + storage_properties = proto.Field( + proto.MESSAGE, + number=4, + oneof="properties", + message="StorageProperties", + ) + + +class StorageProperties(proto.Message): + r"""Details the properties of the underlying storage. + + Attributes: + file_pattern (Sequence[str]): + Patterns to identify a set of files for this fileset. + + Examples of a valid ``file_pattern``: + + - ``gs://bucket_name/dir/*``: matches all files in the + ``bucket_name/dir`` directory + - ``gs://bucket_name/dir/**``: matches all files in the + ``bucket_name/dir`` and all subdirectories recursively + - ``gs://bucket_name/file*``: matches files prefixed by + ``file`` in ``bucket_name`` + - ``gs://bucket_name/??.txt``: matches files with two + characters followed by ``.txt`` in ``bucket_name`` + - ``gs://bucket_name/[aeiou].txt``: matches files that + contain a single vowel character followed by ``.txt`` in + ``bucket_name`` + - ``gs://bucket_name/[a-m].txt``: matches files that + contain ``a``, ``b``, ... or ``m`` followed by ``.txt`` + in ``bucket_name`` + - ``gs://bucket_name/a/*/b``: matches all files in + ``bucket_name`` that match the ``a/*/b`` pattern, such as + ``a/c/b``, ``a/d/b`` + - ``gs://another_bucket/a.txt``: matches + ``gs://another_bucket/a.txt`` + file_type (str): + File type in MIME format, for example, ``text/plain``. + """ + + file_pattern = proto.RepeatedField( + proto.STRING, + number=1, + ) + file_type = proto.Field( + proto.STRING, + number=2, + ) __all__ = tuple(sorted(__protobuf__.manifest)) diff --git a/google/cloud/datacatalog_v1/types/datacatalog.py b/google/cloud/datacatalog_v1/types/datacatalog.py index 97a23bbf..4db9d979 100644 --- a/google/cloud/datacatalog_v1/types/datacatalog.py +++ b/google/cloud/datacatalog_v1/types/datacatalog.py @@ -18,6 +18,7 @@ from google.cloud.datacatalog_v1.types import bigquery from google.cloud.datacatalog_v1.types import common from google.cloud.datacatalog_v1.types import data_source as gcd_data_source +from google.cloud.datacatalog_v1.types import dataplex_spec from google.cloud.datacatalog_v1.types import gcs_fileset_spec as gcd_gcs_fileset_spec from google.cloud.datacatalog_v1.types import schema as gcd_schema from google.cloud.datacatalog_v1.types import search @@ -47,6 +48,7 @@ "LookupEntryRequest", "Entry", "DatabaseTableSpec", + "FilesetSpec", "DataSourceConnectionSpec", "RoutineSpec", "BusinessContext", @@ -92,6 +94,8 @@ class EntryType(proto.Enum): DATABASE = 7 DATA_SOURCE_CONNECTION = 8 ROUTINE = 9 + LAKE = 10 + ZONE = 11 SERVICE = 14 @@ -801,6 +805,11 @@ class Entry(proto.Message): Specification that applies to a user-defined function or procedure. Valid only for entries with the ``ROUTINE`` type. + This field is a member of `oneof`_ ``spec``. + fileset_spec (google.cloud.datacatalog_v1.types.FilesetSpec): + Specification that applies to a fileset resource. Valid only + for entries with the ``FILESET`` type. + This field is a member of `oneof`_ ``spec``. display_name (str): Display name of an entry. @@ -821,7 +830,7 @@ class Entry(proto.Message): UTF-8. Default value is an empty string. business_context (google.cloud.datacatalog_v1.types.BusinessContext): Business Context of the entry. Not supported - for BigQuery datasets. + for BigQuery datasets schema (google.cloud.datacatalog_v1.types.Schema): Schema of the entry. An entry might not have any schema attached to it. @@ -835,7 +844,7 @@ class Entry(proto.Message): to an empty timestamp. usage_signal (google.cloud.datacatalog_v1.types.UsageSignal): Output only. Resource usage statistics. - labels (Sequence[google.cloud.datacatalog_v1.types.Entry.LabelsEntry]): + labels (Mapping[str, str]): Cloud labels attached to the entry. In Data Catalog, you can create and modify labels attached only to custom entries. Synced @@ -918,6 +927,12 @@ class Entry(proto.Message): oneof="spec", message="RoutineSpec", ) + fileset_spec = proto.Field( + proto.MESSAGE, + number=33, + oneof="spec", + message="FilesetSpec", + ) display_name = proto.Field( proto.STRING, number=3, @@ -970,6 +985,9 @@ class DatabaseTableSpec(proto.Message): Attributes: type_ (google.cloud.datacatalog_v1.types.DatabaseTableSpec.TableType): Type of this table. + dataplex_table (google.cloud.datacatalog_v1.types.DataplexTableSpec): + Fields specific to a Dataplex table and + present only in the Dataplex table entries. """ class TableType(proto.Enum): @@ -983,6 +1001,28 @@ class TableType(proto.Enum): number=1, enum=TableType, ) + dataplex_table = proto.Field( + proto.MESSAGE, + number=2, + message=dataplex_spec.DataplexTableSpec, + ) + + +class FilesetSpec(proto.Message): + r"""Specification that applies to a fileset. Valid only for + entries with the 'FILESET' type. + + Attributes: + dataplex_fileset (google.cloud.datacatalog_v1.types.DataplexFilesetSpec): + Fields specific to a Dataplex fileset and + present only in the Dataplex fileset entries. + """ + + dataplex_fileset = proto.Field( + proto.MESSAGE, + number=1, + message=dataplex_spec.DataplexFilesetSpec, + ) class DataSourceConnectionSpec(proto.Message): @@ -1162,9 +1202,8 @@ class Person(proto.Message): Designation of the person, for example, Data Steward. email (str): - Email of the person in the format of - ``john.doe@example.com``, ````, or - ``John Doe``. + Email of the person in the format of ``john.doe@xyz``, + ````, or ``John Doe``. """ designation = proto.Field( diff --git a/google/cloud/datacatalog_v1/types/dataplex_spec.py b/google/cloud/datacatalog_v1/types/dataplex_spec.py new file mode 100644 index 00000000..520bbce1 --- /dev/null +++ b/google/cloud/datacatalog_v1/types/dataplex_spec.py @@ -0,0 +1,165 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +import proto # type: ignore + +from google.cloud.datacatalog_v1.types import common +from google.cloud.datacatalog_v1.types import physical_schema + + +__protobuf__ = proto.module( + package="google.cloud.datacatalog.v1", + manifest={ + "DataplexSpec", + "DataplexFilesetSpec", + "DataplexTableSpec", + "DataplexExternalTable", + }, +) + + +class DataplexSpec(proto.Message): + r"""Common Dataplex fields. + + Attributes: + asset (str): + Fully qualified resource name of an asset in + Dataplex, to which the underlying data source + (Cloud Storage bucket or BigQuery dataset) of + the entity is attached. + data_format (google.cloud.datacatalog_v1.types.PhysicalSchema): + Format of the data. + compression_format (str): + Compression format of the data, e.g., zip, + gzip etc. + project_id (str): + Project ID of the underlying Cloud Storage or + BigQuery data. Note that this may not be the + same project as the correspondingly Dataplex + lake / zone / asset. + """ + + asset = proto.Field( + proto.STRING, + number=1, + ) + data_format = proto.Field( + proto.MESSAGE, + number=2, + message=physical_schema.PhysicalSchema, + ) + compression_format = proto.Field( + proto.STRING, + number=3, + ) + project_id = proto.Field( + proto.STRING, + number=4, + ) + + +class DataplexFilesetSpec(proto.Message): + r"""Entry specyfication for a Dataplex fileset. + + Attributes: + dataplex_spec (google.cloud.datacatalog_v1.types.DataplexSpec): + Common Dataplex fields. + """ + + dataplex_spec = proto.Field( + proto.MESSAGE, + number=1, + message="DataplexSpec", + ) + + +class DataplexTableSpec(proto.Message): + r"""Entry specification for a Dataplex table. + + Attributes: + external_tables (Sequence[google.cloud.datacatalog_v1.types.DataplexExternalTable]): + List of external tables registered by + Dataplex in other systems based on the same + underlying data. + External tables allow to query this data in + those systems. + dataplex_spec (google.cloud.datacatalog_v1.types.DataplexSpec): + Common Dataplex fields. + user_managed (bool): + Indicates if the table schema is managed by + the user or not. + """ + + external_tables = proto.RepeatedField( + proto.MESSAGE, + number=1, + message="DataplexExternalTable", + ) + dataplex_spec = proto.Field( + proto.MESSAGE, + number=2, + message="DataplexSpec", + ) + user_managed = proto.Field( + proto.BOOL, + number=3, + ) + + +class DataplexExternalTable(proto.Message): + r"""External table registered by Dataplex. + Dataplex publishes data discovered from an asset into multiple + other systems (BigQuery, DPMS) in form of tables. We call them + "external tables". External tables are also synced into the Data + Catalog. + This message contains pointers to + those external tables (fully qualified name, resource name et + cetera) within the Data Catalog. + + Attributes: + system (google.cloud.datacatalog_v1.types.IntegratedSystem): + Service in which the external table is + registered. + fully_qualified_name (str): + Fully qualified name (FQN) of the external + table. + google_cloud_resource (str): + Google Cloud resource name of the external + table. + data_catalog_entry (str): + Name of the Data Catalog entry representing + the external table. + """ + + system = proto.Field( + proto.ENUM, + number=1, + enum=common.IntegratedSystem, + ) + fully_qualified_name = proto.Field( + proto.STRING, + number=28, + ) + google_cloud_resource = proto.Field( + proto.STRING, + number=3, + ) + data_catalog_entry = proto.Field( + proto.STRING, + number=4, + ) + + +__all__ = tuple(sorted(__protobuf__.manifest)) diff --git a/google/cloud/datacatalog_v1/types/physical_schema.py b/google/cloud/datacatalog_v1/types/physical_schema.py new file mode 100644 index 00000000..0467787d --- /dev/null +++ b/google/cloud/datacatalog_v1/types/physical_schema.py @@ -0,0 +1,151 @@ +# -*- coding: utf-8 -*- +# Copyright 2022 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +import proto # type: ignore + + +__protobuf__ = proto.module( + package="google.cloud.datacatalog.v1", + manifest={ + "PhysicalSchema", + }, +) + + +class PhysicalSchema(proto.Message): + r"""Native schema used by a resource represented as an entry. + Used by query engines for deserializing and parsing source data. + + This message has `oneof`_ fields (mutually exclusive fields). + For each oneof, at most one member field can be set at the same time. + Setting any member of the oneof automatically clears all other + members. + + .. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields + + Attributes: + avro (google.cloud.datacatalog_v1.types.PhysicalSchema.AvroSchema): + Schema in Avro JSON format. + + This field is a member of `oneof`_ ``schema``. + thrift (google.cloud.datacatalog_v1.types.PhysicalSchema.ThriftSchema): + Schema in Thrift format. + + This field is a member of `oneof`_ ``schema``. + protobuf (google.cloud.datacatalog_v1.types.PhysicalSchema.ProtobufSchema): + Schema in protocol buffer format. + + This field is a member of `oneof`_ ``schema``. + parquet (google.cloud.datacatalog_v1.types.PhysicalSchema.ParquetSchema): + Marks a Parquet-encoded data source. + + This field is a member of `oneof`_ ``schema``. + orc (google.cloud.datacatalog_v1.types.PhysicalSchema.OrcSchema): + Marks an ORC-encoded data source. + + This field is a member of `oneof`_ ``schema``. + csv (google.cloud.datacatalog_v1.types.PhysicalSchema.CsvSchema): + Marks a CSV-encoded data source. + + This field is a member of `oneof`_ ``schema``. + """ + + class AvroSchema(proto.Message): + r"""Schema in Avro JSON format. + + Attributes: + text (str): + JSON source of the Avro schema. + """ + + text = proto.Field( + proto.STRING, + number=1, + ) + + class ThriftSchema(proto.Message): + r"""Schema in Thrift format. + + Attributes: + text (str): + Thrift IDL source of the schema. + """ + + text = proto.Field( + proto.STRING, + number=1, + ) + + class ProtobufSchema(proto.Message): + r"""Schema in protocol buffer format. + + Attributes: + text (str): + Protocol buffer source of the schema. + """ + + text = proto.Field( + proto.STRING, + number=1, + ) + + class ParquetSchema(proto.Message): + r"""Marks a Parquet-encoded data source.""" + + class OrcSchema(proto.Message): + r"""Marks an ORC-encoded data source.""" + + class CsvSchema(proto.Message): + r"""Marks a CSV-encoded data source.""" + + avro = proto.Field( + proto.MESSAGE, + number=1, + oneof="schema", + message=AvroSchema, + ) + thrift = proto.Field( + proto.MESSAGE, + number=2, + oneof="schema", + message=ThriftSchema, + ) + protobuf = proto.Field( + proto.MESSAGE, + number=3, + oneof="schema", + message=ProtobufSchema, + ) + parquet = proto.Field( + proto.MESSAGE, + number=4, + oneof="schema", + message=ParquetSchema, + ) + orc = proto.Field( + proto.MESSAGE, + number=5, + oneof="schema", + message=OrcSchema, + ) + csv = proto.Field( + proto.MESSAGE, + number=6, + oneof="schema", + message=CsvSchema, + ) + + +__all__ = tuple(sorted(__protobuf__.manifest)) diff --git a/google/cloud/datacatalog_v1/types/policytagmanager.py b/google/cloud/datacatalog_v1/types/policytagmanager.py index c9363092..924f532f 100644 --- a/google/cloud/datacatalog_v1/types/policytagmanager.py +++ b/google/cloud/datacatalog_v1/types/policytagmanager.py @@ -78,6 +78,9 @@ class Taxonomy(proto.Message): contain only Unicode letters, numbers, underscores, dashes, and spaces, and be at most 200 bytes long when encoded in UTF-8. + + The taxonomy display name must be unique within + an organization. description (str): Optional. Description of this taxonomy. If not set, defaults to empty. diff --git a/google/cloud/datacatalog_v1/types/tags.py b/google/cloud/datacatalog_v1/types/tags.py index 48249c47..b0a24239 100644 --- a/google/cloud/datacatalog_v1/types/tags.py +++ b/google/cloud/datacatalog_v1/types/tags.py @@ -67,7 +67,7 @@ class Tag(proto.Message): with a dot (``.``). Example: ``column.nested_column``. This field is a member of `oneof`_ ``scope``. - fields (Sequence[google.cloud.datacatalog_v1.types.Tag.FieldsEntry]): + fields (Mapping[str, google.cloud.datacatalog_v1.types.TagField]): Required. Maps the ID of a tag field to its value and additional information about that field. @@ -246,8 +246,9 @@ class TagTemplate(proto.Message): API response. Additionally, you can search for a public tag by value with - a simple search query instead of using a ``tag:`` predicate. - fields (Sequence[google.cloud.datacatalog_v1.types.TagTemplate.FieldsEntry]): + a simple search query in addition to using a ``tag:`` + predicate. + fields (Mapping[str, google.cloud.datacatalog_v1.types.TagTemplateField]): Required. Map of tag template field IDs to the settings for the field. This map is an exhaustive list of the allowed fields. The map must contain at least one field and at most diff --git a/google/cloud/datacatalog_v1/types/usage.py b/google/cloud/datacatalog_v1/types/usage.py index aaac76d8..413cee97 100644 --- a/google/cloud/datacatalog_v1/types/usage.py +++ b/google/cloud/datacatalog_v1/types/usage.py @@ -81,7 +81,7 @@ class UsageSignal(proto.Message): update_time (google.protobuf.timestamp_pb2.Timestamp): The end timestamp of the duration of usage statistics. - usage_within_time_range (Sequence[google.cloud.datacatalog_v1.types.UsageSignal.UsageWithinTimeRangeEntry]): + usage_within_time_range (Mapping[str, google.cloud.datacatalog_v1.types.UsageStats]): Usage statistics over each of the predefined time ranges. Supported time ranges are ``{"24H", "7D", "30D"}``. diff --git a/google/cloud/datacatalog_v1beta1/services/data_catalog/async_client.py b/google/cloud/datacatalog_v1beta1/services/data_catalog/async_client.py index 2f656cfa..ce8a15e3 100644 --- a/google/cloud/datacatalog_v1beta1/services/data_catalog/async_client.py +++ b/google/cloud/datacatalog_v1beta1/services/data_catalog/async_client.py @@ -3171,21 +3171,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": [ @@ -3200,17 +3205,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 - @@ -3221,11 +3226,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. @@ -3344,21 +3350,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": [ @@ -3373,17 +3384,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 - @@ -3394,11 +3405,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. diff --git a/google/cloud/datacatalog_v1beta1/services/data_catalog/client.py b/google/cloud/datacatalog_v1beta1/services/data_catalog/client.py index ad9910b2..cbc66f4a 100644 --- a/google/cloud/datacatalog_v1beta1/services/data_catalog/client.py +++ b/google/cloud/datacatalog_v1beta1/services/data_catalog/client.py @@ -3394,21 +3394,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": [ @@ -3423,17 +3428,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 - @@ -3444,11 +3449,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. @@ -3564,21 +3570,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": [ @@ -3593,17 +3604,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 - @@ -3614,11 +3625,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. diff --git a/google/cloud/datacatalog_v1beta1/services/policy_tag_manager/async_client.py b/google/cloud/datacatalog_v1beta1/services/policy_tag_manager/async_client.py index d8fd9ed6..1638cce8 100644 --- a/google/cloud/datacatalog_v1beta1/services/policy_tag_manager/async_client.py +++ b/google/cloud/datacatalog_v1beta1/services/policy_tag_manager/async_client.py @@ -1261,21 +1261,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": [ @@ -1290,17 +1295,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 - @@ -1311,11 +1316,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. @@ -1390,21 +1396,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": [ @@ -1419,17 +1430,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 - @@ -1440,11 +1451,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. diff --git a/google/cloud/datacatalog_v1beta1/services/policy_tag_manager/client.py b/google/cloud/datacatalog_v1beta1/services/policy_tag_manager/client.py index 6cd6fe83..a5cb2dfb 100644 --- a/google/cloud/datacatalog_v1beta1/services/policy_tag_manager/client.py +++ b/google/cloud/datacatalog_v1beta1/services/policy_tag_manager/client.py @@ -1507,21 +1507,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": [ @@ -1536,17 +1541,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 - @@ -1557,11 +1562,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. @@ -1635,21 +1641,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": [ @@ -1664,17 +1675,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 - @@ -1685,11 +1696,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. diff --git a/google/cloud/datacatalog_v1beta1/types/__init__.py b/google/cloud/datacatalog_v1beta1/types/__init__.py index 9789b516..6a887ed5 100644 --- a/google/cloud/datacatalog_v1beta1/types/__init__.py +++ b/google/cloud/datacatalog_v1beta1/types/__init__.py @@ -97,7 +97,9 @@ TagTemplate, TagTemplateField, ) -from .timestamps import SystemTimestamps +from .timestamps import ( + SystemTimestamps, +) __all__ = ( "IntegratedSystem", diff --git a/google/cloud/datacatalog_v1beta1/types/tags.py b/google/cloud/datacatalog_v1beta1/types/tags.py index 3c017bf3..7c5e1f6f 100644 --- a/google/cloud/datacatalog_v1beta1/types/tags.py +++ b/google/cloud/datacatalog_v1beta1/types/tags.py @@ -71,7 +71,7 @@ class Tag(proto.Message): - ``outer_column.inner_column`` This field is a member of `oneof`_ ``scope``. - fields (Sequence[google.cloud.datacatalog_v1beta1.types.Tag.FieldsEntry]): + fields (Mapping[str, google.cloud.datacatalog_v1beta1.types.TagField]): Required. This maps the ID of a tag field to the value of and additional information about that field. Valid field IDs are defined by the @@ -227,7 +227,7 @@ class TagTemplate(proto.Message): display_name (str): The display name for this template. Defaults to an empty string. - fields (Sequence[google.cloud.datacatalog_v1beta1.types.TagTemplate.FieldsEntry]): + fields (Mapping[str, google.cloud.datacatalog_v1beta1.types.TagTemplateField]): Required. Map of tag template field IDs to the settings for the field. This map is an exhaustive list of the allowed fields. This map must contain at least one field and at most diff --git a/samples/generated_samples/datacatalog_generated_datacatalog_v1_data_catalog_create_entry_async.py b/samples/generated_samples/datacatalog_generated_datacatalog_v1_data_catalog_create_entry_async.py deleted file mode 100644 index ee2112f4..00000000 --- a/samples/generated_samples/datacatalog_generated_datacatalog_v1_data_catalog_create_entry_async.py +++ /dev/null @@ -1,52 +0,0 @@ -# -*- coding: utf-8 -*- -# Copyright 2020 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# -# Generated code. DO NOT EDIT! -# -# Snippet for CreateEntry -# NOTE: This snippet has been automatically generated for illustrative purposes only. -# It may require modifications to work in your environment. - -# To install the latest published package dependency, execute the following: -# python3 -m pip install google-cloud-datacatalog - - -# [START datacatalog_generated_datacatalog_v1_DataCatalog_CreateEntry_async] -from google.cloud import datacatalog_v1 - - -async def sample_create_entry(): - # Create a client - client = datacatalog_v1.DataCatalogAsyncClient() - - # Initialize request argument(s) - entry = datacatalog_v1.Entry() - entry.type_ = "SERVICE" - entry.integrated_system = "DATAPROC_METASTORE" - entry.gcs_fileset_spec.file_patterns = ['file_patterns_value_1', 'file_patterns_value_2'] - - request = datacatalog_v1.CreateEntryRequest( - parent="parent_value", - entry_id="entry_id_value", - entry=entry, - ) - - # Make the request - response = await client.create_entry(request=request) - - # Handle the response - print(response) - -# [END datacatalog_generated_datacatalog_v1_DataCatalog_CreateEntry_async] diff --git a/samples/generated_samples/datacatalog_generated_datacatalog_v1_data_catalog_create_entry_group_async.py b/samples/generated_samples/datacatalog_generated_datacatalog_v1_data_catalog_create_entry_group_async.py deleted file mode 100644 index c22a899d..00000000 --- a/samples/generated_samples/datacatalog_generated_datacatalog_v1_data_catalog_create_entry_group_async.py +++ /dev/null @@ -1,46 +0,0 @@ -# -*- coding: utf-8 -*- -# Copyright 2020 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# -# Generated code. DO NOT EDIT! -# -# Snippet for CreateEntryGroup -# NOTE: This snippet has been automatically generated for illustrative purposes only. -# It may require modifications to work in your environment. - -# To install the latest published package dependency, execute the following: -# python3 -m pip install google-cloud-datacatalog - - -# [START datacatalog_generated_datacatalog_v1_DataCatalog_CreateEntryGroup_async] -from google.cloud import datacatalog_v1 - - -async def sample_create_entry_group(): - # Create a client - client = datacatalog_v1.DataCatalogAsyncClient() - - # Initialize request argument(s) - request = datacatalog_v1.CreateEntryGroupRequest( - parent="parent_value", - entry_group_id="entry_group_id_value", - ) - - # Make the request - response = await client.create_entry_group(request=request) - - # Handle the response - print(response) - -# [END datacatalog_generated_datacatalog_v1_DataCatalog_CreateEntryGroup_async] diff --git a/samples/generated_samples/datacatalog_generated_datacatalog_v1_data_catalog_create_entry_group_sync.py b/samples/generated_samples/datacatalog_generated_datacatalog_v1_data_catalog_create_entry_group_sync.py deleted file mode 100644 index d38f98c5..00000000 --- a/samples/generated_samples/datacatalog_generated_datacatalog_v1_data_catalog_create_entry_group_sync.py +++ /dev/null @@ -1,46 +0,0 @@ -# -*- coding: utf-8 -*- -# Copyright 2020 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# -# Generated code. DO NOT EDIT! -# -# Snippet for CreateEntryGroup -# NOTE: This snippet has been automatically generated for illustrative purposes only. -# It may require modifications to work in your environment. - -# To install the latest published package dependency, execute the following: -# python3 -m pip install google-cloud-datacatalog - - -# [START datacatalog_generated_datacatalog_v1_DataCatalog_CreateEntryGroup_sync] -from google.cloud import datacatalog_v1 - - -def sample_create_entry_group(): - # Create a client - client = datacatalog_v1.DataCatalogClient() - - # Initialize request argument(s) - request = datacatalog_v1.CreateEntryGroupRequest( - parent="parent_value", - entry_group_id="entry_group_id_value", - ) - - # Make the request - response = client.create_entry_group(request=request) - - # Handle the response - print(response) - -# [END datacatalog_generated_datacatalog_v1_DataCatalog_CreateEntryGroup_sync] diff --git a/samples/generated_samples/datacatalog_generated_datacatalog_v1_data_catalog_create_entry_sync.py b/samples/generated_samples/datacatalog_generated_datacatalog_v1_data_catalog_create_entry_sync.py deleted file mode 100644 index 7009eac7..00000000 --- a/samples/generated_samples/datacatalog_generated_datacatalog_v1_data_catalog_create_entry_sync.py +++ /dev/null @@ -1,52 +0,0 @@ -# -*- coding: utf-8 -*- -# Copyright 2020 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# -# Generated code. DO NOT EDIT! -# -# Snippet for CreateEntry -# NOTE: This snippet has been automatically generated for illustrative purposes only. -# It may require modifications to work in your environment. - -# To install the latest published package dependency, execute the following: -# python3 -m pip install google-cloud-datacatalog - - -# [START datacatalog_generated_datacatalog_v1_DataCatalog_CreateEntry_sync] -from google.cloud import datacatalog_v1 - - -def sample_create_entry(): - # Create a client - client = datacatalog_v1.DataCatalogClient() - - # Initialize request argument(s) - entry = datacatalog_v1.Entry() - entry.type_ = "SERVICE" - entry.integrated_system = "DATAPROC_METASTORE" - entry.gcs_fileset_spec.file_patterns = ['file_patterns_value_1', 'file_patterns_value_2'] - - request = datacatalog_v1.CreateEntryRequest( - parent="parent_value", - entry_id="entry_id_value", - entry=entry, - ) - - # Make the request - response = client.create_entry(request=request) - - # Handle the response - print(response) - -# [END datacatalog_generated_datacatalog_v1_DataCatalog_CreateEntry_sync] diff --git a/samples/generated_samples/datacatalog_generated_datacatalog_v1_data_catalog_create_tag_async.py b/samples/generated_samples/datacatalog_generated_datacatalog_v1_data_catalog_create_tag_async.py deleted file mode 100644 index a6999739..00000000 --- a/samples/generated_samples/datacatalog_generated_datacatalog_v1_data_catalog_create_tag_async.py +++ /dev/null @@ -1,50 +0,0 @@ -# -*- coding: utf-8 -*- -# Copyright 2020 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# -# Generated code. DO NOT EDIT! -# -# Snippet for CreateTag -# NOTE: This snippet has been automatically generated for illustrative purposes only. -# It may require modifications to work in your environment. - -# To install the latest published package dependency, execute the following: -# python3 -m pip install google-cloud-datacatalog - - -# [START datacatalog_generated_datacatalog_v1_DataCatalog_CreateTag_async] -from google.cloud import datacatalog_v1 - - -async def sample_create_tag(): - # Create a client - client = datacatalog_v1.DataCatalogAsyncClient() - - # Initialize request argument(s) - tag = datacatalog_v1.Tag() - tag.column = "column_value" - tag.template = "template_value" - - request = datacatalog_v1.CreateTagRequest( - parent="parent_value", - tag=tag, - ) - - # Make the request - response = await client.create_tag(request=request) - - # Handle the response - print(response) - -# [END datacatalog_generated_datacatalog_v1_DataCatalog_CreateTag_async] diff --git a/samples/generated_samples/datacatalog_generated_datacatalog_v1_data_catalog_create_tag_sync.py b/samples/generated_samples/datacatalog_generated_datacatalog_v1_data_catalog_create_tag_sync.py deleted file mode 100644 index 2402fa4d..00000000 --- a/samples/generated_samples/datacatalog_generated_datacatalog_v1_data_catalog_create_tag_sync.py +++ /dev/null @@ -1,50 +0,0 @@ -# -*- coding: utf-8 -*- -# Copyright 2020 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# -# Generated code. DO NOT EDIT! -# -# Snippet for CreateTag -# NOTE: This snippet has been automatically generated for illustrative purposes only. -# It may require modifications to work in your environment. - -# To install the latest published package dependency, execute the following: -# python3 -m pip install google-cloud-datacatalog - - -# [START datacatalog_generated_datacatalog_v1_DataCatalog_CreateTag_sync] -from google.cloud import datacatalog_v1 - - -def sample_create_tag(): - # Create a client - client = datacatalog_v1.DataCatalogClient() - - # Initialize request argument(s) - tag = datacatalog_v1.Tag() - tag.column = "column_value" - tag.template = "template_value" - - request = datacatalog_v1.CreateTagRequest( - parent="parent_value", - tag=tag, - ) - - # Make the request - response = client.create_tag(request=request) - - # Handle the response - print(response) - -# [END datacatalog_generated_datacatalog_v1_DataCatalog_CreateTag_sync] diff --git a/samples/generated_samples/datacatalog_generated_datacatalog_v1_data_catalog_create_tag_template_async.py b/samples/generated_samples/datacatalog_generated_datacatalog_v1_data_catalog_create_tag_template_async.py deleted file mode 100644 index cb8757e3..00000000 --- a/samples/generated_samples/datacatalog_generated_datacatalog_v1_data_catalog_create_tag_template_async.py +++ /dev/null @@ -1,46 +0,0 @@ -# -*- coding: utf-8 -*- -# Copyright 2020 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# -# Generated code. DO NOT EDIT! -# -# Snippet for CreateTagTemplate -# NOTE: This snippet has been automatically generated for illustrative purposes only. -# It may require modifications to work in your environment. - -# To install the latest published package dependency, execute the following: -# python3 -m pip install google-cloud-datacatalog - - -# [START datacatalog_generated_datacatalog_v1_DataCatalog_CreateTagTemplate_async] -from google.cloud import datacatalog_v1 - - -async def sample_create_tag_template(): - # Create a client - client = datacatalog_v1.DataCatalogAsyncClient() - - # Initialize request argument(s) - request = datacatalog_v1.CreateTagTemplateRequest( - parent="parent_value", - tag_template_id="tag_template_id_value", - ) - - # Make the request - response = await client.create_tag_template(request=request) - - # Handle the response - print(response) - -# [END datacatalog_generated_datacatalog_v1_DataCatalog_CreateTagTemplate_async] diff --git a/samples/generated_samples/datacatalog_generated_datacatalog_v1_data_catalog_create_tag_template_field_async.py b/samples/generated_samples/datacatalog_generated_datacatalog_v1_data_catalog_create_tag_template_field_async.py deleted file mode 100644 index 2f7aead9..00000000 --- a/samples/generated_samples/datacatalog_generated_datacatalog_v1_data_catalog_create_tag_template_field_async.py +++ /dev/null @@ -1,50 +0,0 @@ -# -*- coding: utf-8 -*- -# Copyright 2020 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# -# Generated code. DO NOT EDIT! -# -# Snippet for CreateTagTemplateField -# NOTE: This snippet has been automatically generated for illustrative purposes only. -# It may require modifications to work in your environment. - -# To install the latest published package dependency, execute the following: -# python3 -m pip install google-cloud-datacatalog - - -# [START datacatalog_generated_datacatalog_v1_DataCatalog_CreateTagTemplateField_async] -from google.cloud import datacatalog_v1 - - -async def sample_create_tag_template_field(): - # Create a client - client = datacatalog_v1.DataCatalogAsyncClient() - - # Initialize request argument(s) - tag_template_field = datacatalog_v1.TagTemplateField() - tag_template_field.type_.primitive_type = "RICHTEXT" - - request = datacatalog_v1.CreateTagTemplateFieldRequest( - parent="parent_value", - tag_template_field_id="tag_template_field_id_value", - tag_template_field=tag_template_field, - ) - - # Make the request - response = await client.create_tag_template_field(request=request) - - # Handle the response - print(response) - -# [END datacatalog_generated_datacatalog_v1_DataCatalog_CreateTagTemplateField_async] diff --git a/samples/generated_samples/datacatalog_generated_datacatalog_v1_data_catalog_create_tag_template_field_sync.py b/samples/generated_samples/datacatalog_generated_datacatalog_v1_data_catalog_create_tag_template_field_sync.py deleted file mode 100644 index eef6b9f3..00000000 --- a/samples/generated_samples/datacatalog_generated_datacatalog_v1_data_catalog_create_tag_template_field_sync.py +++ /dev/null @@ -1,50 +0,0 @@ -# -*- coding: utf-8 -*- -# Copyright 2020 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# -# Generated code. DO NOT EDIT! -# -# Snippet for CreateTagTemplateField -# NOTE: This snippet has been automatically generated for illustrative purposes only. -# It may require modifications to work in your environment. - -# To install the latest published package dependency, execute the following: -# python3 -m pip install google-cloud-datacatalog - - -# [START datacatalog_generated_datacatalog_v1_DataCatalog_CreateTagTemplateField_sync] -from google.cloud import datacatalog_v1 - - -def sample_create_tag_template_field(): - # Create a client - client = datacatalog_v1.DataCatalogClient() - - # Initialize request argument(s) - tag_template_field = datacatalog_v1.TagTemplateField() - tag_template_field.type_.primitive_type = "RICHTEXT" - - request = datacatalog_v1.CreateTagTemplateFieldRequest( - parent="parent_value", - tag_template_field_id="tag_template_field_id_value", - tag_template_field=tag_template_field, - ) - - # Make the request - response = client.create_tag_template_field(request=request) - - # Handle the response - print(response) - -# [END datacatalog_generated_datacatalog_v1_DataCatalog_CreateTagTemplateField_sync] diff --git a/samples/generated_samples/datacatalog_generated_datacatalog_v1_data_catalog_create_tag_template_sync.py b/samples/generated_samples/datacatalog_generated_datacatalog_v1_data_catalog_create_tag_template_sync.py deleted file mode 100644 index 7f465822..00000000 --- a/samples/generated_samples/datacatalog_generated_datacatalog_v1_data_catalog_create_tag_template_sync.py +++ /dev/null @@ -1,46 +0,0 @@ -# -*- coding: utf-8 -*- -# Copyright 2020 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# -# Generated code. DO NOT EDIT! -# -# Snippet for CreateTagTemplate -# NOTE: This snippet has been automatically generated for illustrative purposes only. -# It may require modifications to work in your environment. - -# To install the latest published package dependency, execute the following: -# python3 -m pip install google-cloud-datacatalog - - -# [START datacatalog_generated_datacatalog_v1_DataCatalog_CreateTagTemplate_sync] -from google.cloud import datacatalog_v1 - - -def sample_create_tag_template(): - # Create a client - client = datacatalog_v1.DataCatalogClient() - - # Initialize request argument(s) - request = datacatalog_v1.CreateTagTemplateRequest( - parent="parent_value", - tag_template_id="tag_template_id_value", - ) - - # Make the request - response = client.create_tag_template(request=request) - - # Handle the response - print(response) - -# [END datacatalog_generated_datacatalog_v1_DataCatalog_CreateTagTemplate_sync] diff --git a/samples/generated_samples/datacatalog_generated_datacatalog_v1_data_catalog_delete_entry_async.py b/samples/generated_samples/datacatalog_generated_datacatalog_v1_data_catalog_delete_entry_async.py deleted file mode 100644 index b6647475..00000000 --- a/samples/generated_samples/datacatalog_generated_datacatalog_v1_data_catalog_delete_entry_async.py +++ /dev/null @@ -1,43 +0,0 @@ -# -*- coding: utf-8 -*- -# Copyright 2020 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# -# Generated code. DO NOT EDIT! -# -# Snippet for DeleteEntry -# NOTE: This snippet has been automatically generated for illustrative purposes only. -# It may require modifications to work in your environment. - -# To install the latest published package dependency, execute the following: -# python3 -m pip install google-cloud-datacatalog - - -# [START datacatalog_generated_datacatalog_v1_DataCatalog_DeleteEntry_async] -from google.cloud import datacatalog_v1 - - -async def sample_delete_entry(): - # Create a client - client = datacatalog_v1.DataCatalogAsyncClient() - - # Initialize request argument(s) - request = datacatalog_v1.DeleteEntryRequest( - name="name_value", - ) - - # Make the request - await client.delete_entry(request=request) - - -# [END datacatalog_generated_datacatalog_v1_DataCatalog_DeleteEntry_async] diff --git a/samples/generated_samples/datacatalog_generated_datacatalog_v1_data_catalog_delete_entry_group_async.py b/samples/generated_samples/datacatalog_generated_datacatalog_v1_data_catalog_delete_entry_group_async.py deleted file mode 100644 index f9084683..00000000 --- a/samples/generated_samples/datacatalog_generated_datacatalog_v1_data_catalog_delete_entry_group_async.py +++ /dev/null @@ -1,43 +0,0 @@ -# -*- coding: utf-8 -*- -# Copyright 2020 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# -# Generated code. DO NOT EDIT! -# -# Snippet for DeleteEntryGroup -# NOTE: This snippet has been automatically generated for illustrative purposes only. -# It may require modifications to work in your environment. - -# To install the latest published package dependency, execute the following: -# python3 -m pip install google-cloud-datacatalog - - -# [START datacatalog_generated_datacatalog_v1_DataCatalog_DeleteEntryGroup_async] -from google.cloud import datacatalog_v1 - - -async def sample_delete_entry_group(): - # Create a client - client = datacatalog_v1.DataCatalogAsyncClient() - - # Initialize request argument(s) - request = datacatalog_v1.DeleteEntryGroupRequest( - name="name_value", - ) - - # Make the request - await client.delete_entry_group(request=request) - - -# [END datacatalog_generated_datacatalog_v1_DataCatalog_DeleteEntryGroup_async] diff --git a/samples/generated_samples/datacatalog_generated_datacatalog_v1_data_catalog_delete_entry_group_sync.py b/samples/generated_samples/datacatalog_generated_datacatalog_v1_data_catalog_delete_entry_group_sync.py deleted file mode 100644 index 206500f3..00000000 --- a/samples/generated_samples/datacatalog_generated_datacatalog_v1_data_catalog_delete_entry_group_sync.py +++ /dev/null @@ -1,43 +0,0 @@ -# -*- coding: utf-8 -*- -# Copyright 2020 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# -# Generated code. DO NOT EDIT! -# -# Snippet for DeleteEntryGroup -# NOTE: This snippet has been automatically generated for illustrative purposes only. -# It may require modifications to work in your environment. - -# To install the latest published package dependency, execute the following: -# python3 -m pip install google-cloud-datacatalog - - -# [START datacatalog_generated_datacatalog_v1_DataCatalog_DeleteEntryGroup_sync] -from google.cloud import datacatalog_v1 - - -def sample_delete_entry_group(): - # Create a client - client = datacatalog_v1.DataCatalogClient() - - # Initialize request argument(s) - request = datacatalog_v1.DeleteEntryGroupRequest( - name="name_value", - ) - - # Make the request - client.delete_entry_group(request=request) - - -# [END datacatalog_generated_datacatalog_v1_DataCatalog_DeleteEntryGroup_sync] diff --git a/samples/generated_samples/datacatalog_generated_datacatalog_v1_data_catalog_delete_entry_sync.py b/samples/generated_samples/datacatalog_generated_datacatalog_v1_data_catalog_delete_entry_sync.py deleted file mode 100644 index 0bbfe70d..00000000 --- a/samples/generated_samples/datacatalog_generated_datacatalog_v1_data_catalog_delete_entry_sync.py +++ /dev/null @@ -1,43 +0,0 @@ -# -*- coding: utf-8 -*- -# Copyright 2020 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# -# Generated code. DO NOT EDIT! -# -# Snippet for DeleteEntry -# NOTE: This snippet has been automatically generated for illustrative purposes only. -# It may require modifications to work in your environment. - -# To install the latest published package dependency, execute the following: -# python3 -m pip install google-cloud-datacatalog - - -# [START datacatalog_generated_datacatalog_v1_DataCatalog_DeleteEntry_sync] -from google.cloud import datacatalog_v1 - - -def sample_delete_entry(): - # Create a client - client = datacatalog_v1.DataCatalogClient() - - # Initialize request argument(s) - request = datacatalog_v1.DeleteEntryRequest( - name="name_value", - ) - - # Make the request - client.delete_entry(request=request) - - -# [END datacatalog_generated_datacatalog_v1_DataCatalog_DeleteEntry_sync] diff --git a/samples/generated_samples/datacatalog_generated_datacatalog_v1_data_catalog_delete_tag_async.py b/samples/generated_samples/datacatalog_generated_datacatalog_v1_data_catalog_delete_tag_async.py deleted file mode 100644 index 0bc0a716..00000000 --- a/samples/generated_samples/datacatalog_generated_datacatalog_v1_data_catalog_delete_tag_async.py +++ /dev/null @@ -1,43 +0,0 @@ -# -*- coding: utf-8 -*- -# Copyright 2020 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# -# Generated code. DO NOT EDIT! -# -# Snippet for DeleteTag -# NOTE: This snippet has been automatically generated for illustrative purposes only. -# It may require modifications to work in your environment. - -# To install the latest published package dependency, execute the following: -# python3 -m pip install google-cloud-datacatalog - - -# [START datacatalog_generated_datacatalog_v1_DataCatalog_DeleteTag_async] -from google.cloud import datacatalog_v1 - - -async def sample_delete_tag(): - # Create a client - client = datacatalog_v1.DataCatalogAsyncClient() - - # Initialize request argument(s) - request = datacatalog_v1.DeleteTagRequest( - name="name_value", - ) - - # Make the request - await client.delete_tag(request=request) - - -# [END datacatalog_generated_datacatalog_v1_DataCatalog_DeleteTag_async] diff --git a/samples/generated_samples/datacatalog_generated_datacatalog_v1_data_catalog_delete_tag_sync.py b/samples/generated_samples/datacatalog_generated_datacatalog_v1_data_catalog_delete_tag_sync.py deleted file mode 100644 index 24992d52..00000000 --- a/samples/generated_samples/datacatalog_generated_datacatalog_v1_data_catalog_delete_tag_sync.py +++ /dev/null @@ -1,43 +0,0 @@ -# -*- coding: utf-8 -*- -# Copyright 2020 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# -# Generated code. DO NOT EDIT! -# -# Snippet for DeleteTag -# NOTE: This snippet has been automatically generated for illustrative purposes only. -# It may require modifications to work in your environment. - -# To install the latest published package dependency, execute the following: -# python3 -m pip install google-cloud-datacatalog - - -# [START datacatalog_generated_datacatalog_v1_DataCatalog_DeleteTag_sync] -from google.cloud import datacatalog_v1 - - -def sample_delete_tag(): - # Create a client - client = datacatalog_v1.DataCatalogClient() - - # Initialize request argument(s) - request = datacatalog_v1.DeleteTagRequest( - name="name_value", - ) - - # Make the request - client.delete_tag(request=request) - - -# [END datacatalog_generated_datacatalog_v1_DataCatalog_DeleteTag_sync] diff --git a/samples/generated_samples/datacatalog_generated_datacatalog_v1_data_catalog_delete_tag_template_async.py b/samples/generated_samples/datacatalog_generated_datacatalog_v1_data_catalog_delete_tag_template_async.py deleted file mode 100644 index b3388bd2..00000000 --- a/samples/generated_samples/datacatalog_generated_datacatalog_v1_data_catalog_delete_tag_template_async.py +++ /dev/null @@ -1,44 +0,0 @@ -# -*- coding: utf-8 -*- -# Copyright 2020 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# -# Generated code. DO NOT EDIT! -# -# Snippet for DeleteTagTemplate -# NOTE: This snippet has been automatically generated for illustrative purposes only. -# It may require modifications to work in your environment. - -# To install the latest published package dependency, execute the following: -# python3 -m pip install google-cloud-datacatalog - - -# [START datacatalog_generated_datacatalog_v1_DataCatalog_DeleteTagTemplate_async] -from google.cloud import datacatalog_v1 - - -async def sample_delete_tag_template(): - # Create a client - client = datacatalog_v1.DataCatalogAsyncClient() - - # Initialize request argument(s) - request = datacatalog_v1.DeleteTagTemplateRequest( - name="name_value", - force=True, - ) - - # Make the request - await client.delete_tag_template(request=request) - - -# [END datacatalog_generated_datacatalog_v1_DataCatalog_DeleteTagTemplate_async] diff --git a/samples/generated_samples/datacatalog_generated_datacatalog_v1_data_catalog_delete_tag_template_field_async.py b/samples/generated_samples/datacatalog_generated_datacatalog_v1_data_catalog_delete_tag_template_field_async.py deleted file mode 100644 index c8a937a8..00000000 --- a/samples/generated_samples/datacatalog_generated_datacatalog_v1_data_catalog_delete_tag_template_field_async.py +++ /dev/null @@ -1,44 +0,0 @@ -# -*- coding: utf-8 -*- -# Copyright 2020 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# -# Generated code. DO NOT EDIT! -# -# Snippet for DeleteTagTemplateField -# NOTE: This snippet has been automatically generated for illustrative purposes only. -# It may require modifications to work in your environment. - -# To install the latest published package dependency, execute the following: -# python3 -m pip install google-cloud-datacatalog - - -# [START datacatalog_generated_datacatalog_v1_DataCatalog_DeleteTagTemplateField_async] -from google.cloud import datacatalog_v1 - - -async def sample_delete_tag_template_field(): - # Create a client - client = datacatalog_v1.DataCatalogAsyncClient() - - # Initialize request argument(s) - request = datacatalog_v1.DeleteTagTemplateFieldRequest( - name="name_value", - force=True, - ) - - # Make the request - await client.delete_tag_template_field(request=request) - - -# [END datacatalog_generated_datacatalog_v1_DataCatalog_DeleteTagTemplateField_async] diff --git a/samples/generated_samples/datacatalog_generated_datacatalog_v1_data_catalog_delete_tag_template_field_sync.py b/samples/generated_samples/datacatalog_generated_datacatalog_v1_data_catalog_delete_tag_template_field_sync.py deleted file mode 100644 index fb6328dd..00000000 --- a/samples/generated_samples/datacatalog_generated_datacatalog_v1_data_catalog_delete_tag_template_field_sync.py +++ /dev/null @@ -1,44 +0,0 @@ -# -*- coding: utf-8 -*- -# Copyright 2020 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# -# Generated code. DO NOT EDIT! -# -# Snippet for DeleteTagTemplateField -# NOTE: This snippet has been automatically generated for illustrative purposes only. -# It may require modifications to work in your environment. - -# To install the latest published package dependency, execute the following: -# python3 -m pip install google-cloud-datacatalog - - -# [START datacatalog_generated_datacatalog_v1_DataCatalog_DeleteTagTemplateField_sync] -from google.cloud import datacatalog_v1 - - -def sample_delete_tag_template_field(): - # Create a client - client = datacatalog_v1.DataCatalogClient() - - # Initialize request argument(s) - request = datacatalog_v1.DeleteTagTemplateFieldRequest( - name="name_value", - force=True, - ) - - # Make the request - client.delete_tag_template_field(request=request) - - -# [END datacatalog_generated_datacatalog_v1_DataCatalog_DeleteTagTemplateField_sync] diff --git a/samples/generated_samples/datacatalog_generated_datacatalog_v1_data_catalog_delete_tag_template_sync.py b/samples/generated_samples/datacatalog_generated_datacatalog_v1_data_catalog_delete_tag_template_sync.py deleted file mode 100644 index eca06b12..00000000 --- a/samples/generated_samples/datacatalog_generated_datacatalog_v1_data_catalog_delete_tag_template_sync.py +++ /dev/null @@ -1,44 +0,0 @@ -# -*- coding: utf-8 -*- -# Copyright 2020 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# -# Generated code. DO NOT EDIT! -# -# Snippet for DeleteTagTemplate -# NOTE: This snippet has been automatically generated for illustrative purposes only. -# It may require modifications to work in your environment. - -# To install the latest published package dependency, execute the following: -# python3 -m pip install google-cloud-datacatalog - - -# [START datacatalog_generated_datacatalog_v1_DataCatalog_DeleteTagTemplate_sync] -from google.cloud import datacatalog_v1 - - -def sample_delete_tag_template(): - # Create a client - client = datacatalog_v1.DataCatalogClient() - - # Initialize request argument(s) - request = datacatalog_v1.DeleteTagTemplateRequest( - name="name_value", - force=True, - ) - - # Make the request - client.delete_tag_template(request=request) - - -# [END datacatalog_generated_datacatalog_v1_DataCatalog_DeleteTagTemplate_sync] diff --git a/samples/generated_samples/datacatalog_generated_datacatalog_v1_data_catalog_get_entry_async.py b/samples/generated_samples/datacatalog_generated_datacatalog_v1_data_catalog_get_entry_async.py deleted file mode 100644 index e62ff663..00000000 --- a/samples/generated_samples/datacatalog_generated_datacatalog_v1_data_catalog_get_entry_async.py +++ /dev/null @@ -1,45 +0,0 @@ -# -*- coding: utf-8 -*- -# Copyright 2020 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# -# Generated code. DO NOT EDIT! -# -# Snippet for GetEntry -# NOTE: This snippet has been automatically generated for illustrative purposes only. -# It may require modifications to work in your environment. - -# To install the latest published package dependency, execute the following: -# python3 -m pip install google-cloud-datacatalog - - -# [START datacatalog_generated_datacatalog_v1_DataCatalog_GetEntry_async] -from google.cloud import datacatalog_v1 - - -async def sample_get_entry(): - # Create a client - client = datacatalog_v1.DataCatalogAsyncClient() - - # Initialize request argument(s) - request = datacatalog_v1.GetEntryRequest( - name="name_value", - ) - - # Make the request - response = await client.get_entry(request=request) - - # Handle the response - print(response) - -# [END datacatalog_generated_datacatalog_v1_DataCatalog_GetEntry_async] diff --git a/samples/generated_samples/datacatalog_generated_datacatalog_v1_data_catalog_get_entry_group_async.py b/samples/generated_samples/datacatalog_generated_datacatalog_v1_data_catalog_get_entry_group_async.py deleted file mode 100644 index 1d217937..00000000 --- a/samples/generated_samples/datacatalog_generated_datacatalog_v1_data_catalog_get_entry_group_async.py +++ /dev/null @@ -1,45 +0,0 @@ -# -*- coding: utf-8 -*- -# Copyright 2020 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# -# Generated code. DO NOT EDIT! -# -# Snippet for GetEntryGroup -# NOTE: This snippet has been automatically generated for illustrative purposes only. -# It may require modifications to work in your environment. - -# To install the latest published package dependency, execute the following: -# python3 -m pip install google-cloud-datacatalog - - -# [START datacatalog_generated_datacatalog_v1_DataCatalog_GetEntryGroup_async] -from google.cloud import datacatalog_v1 - - -async def sample_get_entry_group(): - # Create a client - client = datacatalog_v1.DataCatalogAsyncClient() - - # Initialize request argument(s) - request = datacatalog_v1.GetEntryGroupRequest( - name="name_value", - ) - - # Make the request - response = await client.get_entry_group(request=request) - - # Handle the response - print(response) - -# [END datacatalog_generated_datacatalog_v1_DataCatalog_GetEntryGroup_async] diff --git a/samples/generated_samples/datacatalog_generated_datacatalog_v1_data_catalog_get_entry_group_sync.py b/samples/generated_samples/datacatalog_generated_datacatalog_v1_data_catalog_get_entry_group_sync.py deleted file mode 100644 index 36ea39c1..00000000 --- a/samples/generated_samples/datacatalog_generated_datacatalog_v1_data_catalog_get_entry_group_sync.py +++ /dev/null @@ -1,45 +0,0 @@ -# -*- coding: utf-8 -*- -# Copyright 2020 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# -# Generated code. DO NOT EDIT! -# -# Snippet for GetEntryGroup -# NOTE: This snippet has been automatically generated for illustrative purposes only. -# It may require modifications to work in your environment. - -# To install the latest published package dependency, execute the following: -# python3 -m pip install google-cloud-datacatalog - - -# [START datacatalog_generated_datacatalog_v1_DataCatalog_GetEntryGroup_sync] -from google.cloud import datacatalog_v1 - - -def sample_get_entry_group(): - # Create a client - client = datacatalog_v1.DataCatalogClient() - - # Initialize request argument(s) - request = datacatalog_v1.GetEntryGroupRequest( - name="name_value", - ) - - # Make the request - response = client.get_entry_group(request=request) - - # Handle the response - print(response) - -# [END datacatalog_generated_datacatalog_v1_DataCatalog_GetEntryGroup_sync] diff --git a/samples/generated_samples/datacatalog_generated_datacatalog_v1_data_catalog_get_entry_sync.py b/samples/generated_samples/datacatalog_generated_datacatalog_v1_data_catalog_get_entry_sync.py deleted file mode 100644 index a1c94b2e..00000000 --- a/samples/generated_samples/datacatalog_generated_datacatalog_v1_data_catalog_get_entry_sync.py +++ /dev/null @@ -1,45 +0,0 @@ -# -*- coding: utf-8 -*- -# Copyright 2020 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# -# Generated code. DO NOT EDIT! -# -# Snippet for GetEntry -# NOTE: This snippet has been automatically generated for illustrative purposes only. -# It may require modifications to work in your environment. - -# To install the latest published package dependency, execute the following: -# python3 -m pip install google-cloud-datacatalog - - -# [START datacatalog_generated_datacatalog_v1_DataCatalog_GetEntry_sync] -from google.cloud import datacatalog_v1 - - -def sample_get_entry(): - # Create a client - client = datacatalog_v1.DataCatalogClient() - - # Initialize request argument(s) - request = datacatalog_v1.GetEntryRequest( - name="name_value", - ) - - # Make the request - response = client.get_entry(request=request) - - # Handle the response - print(response) - -# [END datacatalog_generated_datacatalog_v1_DataCatalog_GetEntry_sync] diff --git a/samples/generated_samples/datacatalog_generated_datacatalog_v1_data_catalog_get_iam_policy_async.py b/samples/generated_samples/datacatalog_generated_datacatalog_v1_data_catalog_get_iam_policy_async.py deleted file mode 100644 index 10164076..00000000 --- a/samples/generated_samples/datacatalog_generated_datacatalog_v1_data_catalog_get_iam_policy_async.py +++ /dev/null @@ -1,45 +0,0 @@ -# -*- coding: utf-8 -*- -# Copyright 2020 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# -# Generated code. DO NOT EDIT! -# -# Snippet for GetIamPolicy -# NOTE: This snippet has been automatically generated for illustrative purposes only. -# It may require modifications to work in your environment. - -# To install the latest published package dependency, execute the following: -# python3 -m pip install google-cloud-datacatalog - - -# [START datacatalog_generated_datacatalog_v1_DataCatalog_GetIamPolicy_async] -from google.cloud import datacatalog_v1 - - -async def sample_get_iam_policy(): - # Create a client - client = datacatalog_v1.DataCatalogAsyncClient() - - # Initialize request argument(s) - request = datacatalog_v1.GetIamPolicyRequest( - resource="resource_value", - ) - - # Make the request - response = await client.get_iam_policy(request=request) - - # Handle the response - print(response) - -# [END datacatalog_generated_datacatalog_v1_DataCatalog_GetIamPolicy_async] diff --git a/samples/generated_samples/datacatalog_generated_datacatalog_v1_data_catalog_get_iam_policy_sync.py b/samples/generated_samples/datacatalog_generated_datacatalog_v1_data_catalog_get_iam_policy_sync.py deleted file mode 100644 index 77e0c449..00000000 --- a/samples/generated_samples/datacatalog_generated_datacatalog_v1_data_catalog_get_iam_policy_sync.py +++ /dev/null @@ -1,45 +0,0 @@ -# -*- coding: utf-8 -*- -# Copyright 2020 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# -# Generated code. DO NOT EDIT! -# -# Snippet for GetIamPolicy -# NOTE: This snippet has been automatically generated for illustrative purposes only. -# It may require modifications to work in your environment. - -# To install the latest published package dependency, execute the following: -# python3 -m pip install google-cloud-datacatalog - - -# [START datacatalog_generated_datacatalog_v1_DataCatalog_GetIamPolicy_sync] -from google.cloud import datacatalog_v1 - - -def sample_get_iam_policy(): - # Create a client - client = datacatalog_v1.DataCatalogClient() - - # Initialize request argument(s) - request = datacatalog_v1.GetIamPolicyRequest( - resource="resource_value", - ) - - # Make the request - response = client.get_iam_policy(request=request) - - # Handle the response - print(response) - -# [END datacatalog_generated_datacatalog_v1_DataCatalog_GetIamPolicy_sync] diff --git a/samples/generated_samples/datacatalog_generated_datacatalog_v1_data_catalog_get_tag_template_async.py b/samples/generated_samples/datacatalog_generated_datacatalog_v1_data_catalog_get_tag_template_async.py deleted file mode 100644 index 8d94484e..00000000 --- a/samples/generated_samples/datacatalog_generated_datacatalog_v1_data_catalog_get_tag_template_async.py +++ /dev/null @@ -1,45 +0,0 @@ -# -*- coding: utf-8 -*- -# Copyright 2020 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# -# Generated code. DO NOT EDIT! -# -# Snippet for GetTagTemplate -# NOTE: This snippet has been automatically generated for illustrative purposes only. -# It may require modifications to work in your environment. - -# To install the latest published package dependency, execute the following: -# python3 -m pip install google-cloud-datacatalog - - -# [START datacatalog_generated_datacatalog_v1_DataCatalog_GetTagTemplate_async] -from google.cloud import datacatalog_v1 - - -async def sample_get_tag_template(): - # Create a client - client = datacatalog_v1.DataCatalogAsyncClient() - - # Initialize request argument(s) - request = datacatalog_v1.GetTagTemplateRequest( - name="name_value", - ) - - # Make the request - response = await client.get_tag_template(request=request) - - # Handle the response - print(response) - -# [END datacatalog_generated_datacatalog_v1_DataCatalog_GetTagTemplate_async] diff --git a/samples/generated_samples/datacatalog_generated_datacatalog_v1_data_catalog_get_tag_template_sync.py b/samples/generated_samples/datacatalog_generated_datacatalog_v1_data_catalog_get_tag_template_sync.py deleted file mode 100644 index be62404c..00000000 --- a/samples/generated_samples/datacatalog_generated_datacatalog_v1_data_catalog_get_tag_template_sync.py +++ /dev/null @@ -1,45 +0,0 @@ -# -*- coding: utf-8 -*- -# Copyright 2020 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# -# Generated code. DO NOT EDIT! -# -# Snippet for GetTagTemplate -# NOTE: This snippet has been automatically generated for illustrative purposes only. -# It may require modifications to work in your environment. - -# To install the latest published package dependency, execute the following: -# python3 -m pip install google-cloud-datacatalog - - -# [START datacatalog_generated_datacatalog_v1_DataCatalog_GetTagTemplate_sync] -from google.cloud import datacatalog_v1 - - -def sample_get_tag_template(): - # Create a client - client = datacatalog_v1.DataCatalogClient() - - # Initialize request argument(s) - request = datacatalog_v1.GetTagTemplateRequest( - name="name_value", - ) - - # Make the request - response = client.get_tag_template(request=request) - - # Handle the response - print(response) - -# [END datacatalog_generated_datacatalog_v1_DataCatalog_GetTagTemplate_sync] diff --git a/samples/generated_samples/datacatalog_generated_datacatalog_v1_data_catalog_list_entries_async.py b/samples/generated_samples/datacatalog_generated_datacatalog_v1_data_catalog_list_entries_async.py deleted file mode 100644 index a90afdaa..00000000 --- a/samples/generated_samples/datacatalog_generated_datacatalog_v1_data_catalog_list_entries_async.py +++ /dev/null @@ -1,46 +0,0 @@ -# -*- coding: utf-8 -*- -# Copyright 2020 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# -# Generated code. DO NOT EDIT! -# -# Snippet for ListEntries -# NOTE: This snippet has been automatically generated for illustrative purposes only. -# It may require modifications to work in your environment. - -# To install the latest published package dependency, execute the following: -# python3 -m pip install google-cloud-datacatalog - - -# [START datacatalog_generated_datacatalog_v1_DataCatalog_ListEntries_async] -from google.cloud import datacatalog_v1 - - -async def sample_list_entries(): - # Create a client - client = datacatalog_v1.DataCatalogAsyncClient() - - # Initialize request argument(s) - request = datacatalog_v1.ListEntriesRequest( - parent="parent_value", - ) - - # Make the request - page_result = client.list_entries(request=request) - - # Handle the response - async for response in page_result: - print(response) - -# [END datacatalog_generated_datacatalog_v1_DataCatalog_ListEntries_async] diff --git a/samples/generated_samples/datacatalog_generated_datacatalog_v1_data_catalog_list_entries_sync.py b/samples/generated_samples/datacatalog_generated_datacatalog_v1_data_catalog_list_entries_sync.py deleted file mode 100644 index fb2b4b87..00000000 --- a/samples/generated_samples/datacatalog_generated_datacatalog_v1_data_catalog_list_entries_sync.py +++ /dev/null @@ -1,46 +0,0 @@ -# -*- coding: utf-8 -*- -# Copyright 2020 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# -# Generated code. DO NOT EDIT! -# -# Snippet for ListEntries -# NOTE: This snippet has been automatically generated for illustrative purposes only. -# It may require modifications to work in your environment. - -# To install the latest published package dependency, execute the following: -# python3 -m pip install google-cloud-datacatalog - - -# [START datacatalog_generated_datacatalog_v1_DataCatalog_ListEntries_sync] -from google.cloud import datacatalog_v1 - - -def sample_list_entries(): - # Create a client - client = datacatalog_v1.DataCatalogClient() - - # Initialize request argument(s) - request = datacatalog_v1.ListEntriesRequest( - parent="parent_value", - ) - - # Make the request - page_result = client.list_entries(request=request) - - # Handle the response - for response in page_result: - print(response) - -# [END datacatalog_generated_datacatalog_v1_DataCatalog_ListEntries_sync] diff --git a/samples/generated_samples/datacatalog_generated_datacatalog_v1_data_catalog_list_entry_groups_async.py b/samples/generated_samples/datacatalog_generated_datacatalog_v1_data_catalog_list_entry_groups_async.py deleted file mode 100644 index 24b9953b..00000000 --- a/samples/generated_samples/datacatalog_generated_datacatalog_v1_data_catalog_list_entry_groups_async.py +++ /dev/null @@ -1,46 +0,0 @@ -# -*- coding: utf-8 -*- -# Copyright 2020 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# -# Generated code. DO NOT EDIT! -# -# Snippet for ListEntryGroups -# NOTE: This snippet has been automatically generated for illustrative purposes only. -# It may require modifications to work in your environment. - -# To install the latest published package dependency, execute the following: -# python3 -m pip install google-cloud-datacatalog - - -# [START datacatalog_generated_datacatalog_v1_DataCatalog_ListEntryGroups_async] -from google.cloud import datacatalog_v1 - - -async def sample_list_entry_groups(): - # Create a client - client = datacatalog_v1.DataCatalogAsyncClient() - - # Initialize request argument(s) - request = datacatalog_v1.ListEntryGroupsRequest( - parent="parent_value", - ) - - # Make the request - page_result = client.list_entry_groups(request=request) - - # Handle the response - async for response in page_result: - print(response) - -# [END datacatalog_generated_datacatalog_v1_DataCatalog_ListEntryGroups_async] diff --git a/samples/generated_samples/datacatalog_generated_datacatalog_v1_data_catalog_list_entry_groups_sync.py b/samples/generated_samples/datacatalog_generated_datacatalog_v1_data_catalog_list_entry_groups_sync.py deleted file mode 100644 index 3b117439..00000000 --- a/samples/generated_samples/datacatalog_generated_datacatalog_v1_data_catalog_list_entry_groups_sync.py +++ /dev/null @@ -1,46 +0,0 @@ -# -*- coding: utf-8 -*- -# Copyright 2020 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# -# Generated code. DO NOT EDIT! -# -# Snippet for ListEntryGroups -# NOTE: This snippet has been automatically generated for illustrative purposes only. -# It may require modifications to work in your environment. - -# To install the latest published package dependency, execute the following: -# python3 -m pip install google-cloud-datacatalog - - -# [START datacatalog_generated_datacatalog_v1_DataCatalog_ListEntryGroups_sync] -from google.cloud import datacatalog_v1 - - -def sample_list_entry_groups(): - # Create a client - client = datacatalog_v1.DataCatalogClient() - - # Initialize request argument(s) - request = datacatalog_v1.ListEntryGroupsRequest( - parent="parent_value", - ) - - # Make the request - page_result = client.list_entry_groups(request=request) - - # Handle the response - for response in page_result: - print(response) - -# [END datacatalog_generated_datacatalog_v1_DataCatalog_ListEntryGroups_sync] diff --git a/samples/generated_samples/datacatalog_generated_datacatalog_v1_data_catalog_list_tags_async.py b/samples/generated_samples/datacatalog_generated_datacatalog_v1_data_catalog_list_tags_async.py deleted file mode 100644 index b3848ded..00000000 --- a/samples/generated_samples/datacatalog_generated_datacatalog_v1_data_catalog_list_tags_async.py +++ /dev/null @@ -1,46 +0,0 @@ -# -*- coding: utf-8 -*- -# Copyright 2020 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# -# Generated code. DO NOT EDIT! -# -# Snippet for ListTags -# NOTE: This snippet has been automatically generated for illustrative purposes only. -# It may require modifications to work in your environment. - -# To install the latest published package dependency, execute the following: -# python3 -m pip install google-cloud-datacatalog - - -# [START datacatalog_generated_datacatalog_v1_DataCatalog_ListTags_async] -from google.cloud import datacatalog_v1 - - -async def sample_list_tags(): - # Create a client - client = datacatalog_v1.DataCatalogAsyncClient() - - # Initialize request argument(s) - request = datacatalog_v1.ListTagsRequest( - parent="parent_value", - ) - - # Make the request - page_result = client.list_tags(request=request) - - # Handle the response - async for response in page_result: - print(response) - -# [END datacatalog_generated_datacatalog_v1_DataCatalog_ListTags_async] diff --git a/samples/generated_samples/datacatalog_generated_datacatalog_v1_data_catalog_list_tags_sync.py b/samples/generated_samples/datacatalog_generated_datacatalog_v1_data_catalog_list_tags_sync.py deleted file mode 100644 index 3e058892..00000000 --- a/samples/generated_samples/datacatalog_generated_datacatalog_v1_data_catalog_list_tags_sync.py +++ /dev/null @@ -1,46 +0,0 @@ -# -*- coding: utf-8 -*- -# Copyright 2020 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# -# Generated code. DO NOT EDIT! -# -# Snippet for ListTags -# NOTE: This snippet has been automatically generated for illustrative purposes only. -# It may require modifications to work in your environment. - -# To install the latest published package dependency, execute the following: -# python3 -m pip install google-cloud-datacatalog - - -# [START datacatalog_generated_datacatalog_v1_DataCatalog_ListTags_sync] -from google.cloud import datacatalog_v1 - - -def sample_list_tags(): - # Create a client - client = datacatalog_v1.DataCatalogClient() - - # Initialize request argument(s) - request = datacatalog_v1.ListTagsRequest( - parent="parent_value", - ) - - # Make the request - page_result = client.list_tags(request=request) - - # Handle the response - for response in page_result: - print(response) - -# [END datacatalog_generated_datacatalog_v1_DataCatalog_ListTags_sync] diff --git a/samples/generated_samples/datacatalog_generated_datacatalog_v1_data_catalog_lookup_entry_async.py b/samples/generated_samples/datacatalog_generated_datacatalog_v1_data_catalog_lookup_entry_async.py deleted file mode 100644 index 73fa27c5..00000000 --- a/samples/generated_samples/datacatalog_generated_datacatalog_v1_data_catalog_lookup_entry_async.py +++ /dev/null @@ -1,45 +0,0 @@ -# -*- coding: utf-8 -*- -# Copyright 2020 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# -# Generated code. DO NOT EDIT! -# -# Snippet for LookupEntry -# NOTE: This snippet has been automatically generated for illustrative purposes only. -# It may require modifications to work in your environment. - -# To install the latest published package dependency, execute the following: -# python3 -m pip install google-cloud-datacatalog - - -# [START datacatalog_generated_datacatalog_v1_DataCatalog_LookupEntry_async] -from google.cloud import datacatalog_v1 - - -async def sample_lookup_entry(): - # Create a client - client = datacatalog_v1.DataCatalogAsyncClient() - - # Initialize request argument(s) - request = datacatalog_v1.LookupEntryRequest( - linked_resource="linked_resource_value", - ) - - # Make the request - response = await client.lookup_entry(request=request) - - # Handle the response - print(response) - -# [END datacatalog_generated_datacatalog_v1_DataCatalog_LookupEntry_async] diff --git a/samples/generated_samples/datacatalog_generated_datacatalog_v1_data_catalog_lookup_entry_sync.py b/samples/generated_samples/datacatalog_generated_datacatalog_v1_data_catalog_lookup_entry_sync.py deleted file mode 100644 index d6477762..00000000 --- a/samples/generated_samples/datacatalog_generated_datacatalog_v1_data_catalog_lookup_entry_sync.py +++ /dev/null @@ -1,45 +0,0 @@ -# -*- coding: utf-8 -*- -# Copyright 2020 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# -# Generated code. DO NOT EDIT! -# -# Snippet for LookupEntry -# NOTE: This snippet has been automatically generated for illustrative purposes only. -# It may require modifications to work in your environment. - -# To install the latest published package dependency, execute the following: -# python3 -m pip install google-cloud-datacatalog - - -# [START datacatalog_generated_datacatalog_v1_DataCatalog_LookupEntry_sync] -from google.cloud import datacatalog_v1 - - -def sample_lookup_entry(): - # Create a client - client = datacatalog_v1.DataCatalogClient() - - # Initialize request argument(s) - request = datacatalog_v1.LookupEntryRequest( - linked_resource="linked_resource_value", - ) - - # Make the request - response = client.lookup_entry(request=request) - - # Handle the response - print(response) - -# [END datacatalog_generated_datacatalog_v1_DataCatalog_LookupEntry_sync] diff --git a/samples/generated_samples/datacatalog_generated_datacatalog_v1_data_catalog_modify_entry_contacts_async.py b/samples/generated_samples/datacatalog_generated_datacatalog_v1_data_catalog_modify_entry_contacts_async.py deleted file mode 100644 index 817d7657..00000000 --- a/samples/generated_samples/datacatalog_generated_datacatalog_v1_data_catalog_modify_entry_contacts_async.py +++ /dev/null @@ -1,45 +0,0 @@ -# -*- coding: utf-8 -*- -# Copyright 2020 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# -# Generated code. DO NOT EDIT! -# -# Snippet for ModifyEntryContacts -# NOTE: This snippet has been automatically generated for illustrative purposes only. -# It may require modifications to work in your environment. - -# To install the latest published package dependency, execute the following: -# python3 -m pip install google-cloud-datacatalog - - -# [START datacatalog_generated_datacatalog_v1_DataCatalog_ModifyEntryContacts_async] -from google.cloud import datacatalog_v1 - - -async def sample_modify_entry_contacts(): - # Create a client - client = datacatalog_v1.DataCatalogAsyncClient() - - # Initialize request argument(s) - request = datacatalog_v1.ModifyEntryContactsRequest( - name="name_value", - ) - - # Make the request - response = await client.modify_entry_contacts(request=request) - - # Handle the response - print(response) - -# [END datacatalog_generated_datacatalog_v1_DataCatalog_ModifyEntryContacts_async] diff --git a/samples/generated_samples/datacatalog_generated_datacatalog_v1_data_catalog_modify_entry_contacts_sync.py b/samples/generated_samples/datacatalog_generated_datacatalog_v1_data_catalog_modify_entry_contacts_sync.py deleted file mode 100644 index 042e8f52..00000000 --- a/samples/generated_samples/datacatalog_generated_datacatalog_v1_data_catalog_modify_entry_contacts_sync.py +++ /dev/null @@ -1,45 +0,0 @@ -# -*- coding: utf-8 -*- -# Copyright 2020 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# -# Generated code. DO NOT EDIT! -# -# Snippet for ModifyEntryContacts -# NOTE: This snippet has been automatically generated for illustrative purposes only. -# It may require modifications to work in your environment. - -# To install the latest published package dependency, execute the following: -# python3 -m pip install google-cloud-datacatalog - - -# [START datacatalog_generated_datacatalog_v1_DataCatalog_ModifyEntryContacts_sync] -from google.cloud import datacatalog_v1 - - -def sample_modify_entry_contacts(): - # Create a client - client = datacatalog_v1.DataCatalogClient() - - # Initialize request argument(s) - request = datacatalog_v1.ModifyEntryContactsRequest( - name="name_value", - ) - - # Make the request - response = client.modify_entry_contacts(request=request) - - # Handle the response - print(response) - -# [END datacatalog_generated_datacatalog_v1_DataCatalog_ModifyEntryContacts_sync] diff --git a/samples/generated_samples/datacatalog_generated_datacatalog_v1_data_catalog_modify_entry_overview_async.py b/samples/generated_samples/datacatalog_generated_datacatalog_v1_data_catalog_modify_entry_overview_async.py deleted file mode 100644 index 9e349a84..00000000 --- a/samples/generated_samples/datacatalog_generated_datacatalog_v1_data_catalog_modify_entry_overview_async.py +++ /dev/null @@ -1,45 +0,0 @@ -# -*- coding: utf-8 -*- -# Copyright 2020 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# -# Generated code. DO NOT EDIT! -# -# Snippet for ModifyEntryOverview -# NOTE: This snippet has been automatically generated for illustrative purposes only. -# It may require modifications to work in your environment. - -# To install the latest published package dependency, execute the following: -# python3 -m pip install google-cloud-datacatalog - - -# [START datacatalog_generated_datacatalog_v1_DataCatalog_ModifyEntryOverview_async] -from google.cloud import datacatalog_v1 - - -async def sample_modify_entry_overview(): - # Create a client - client = datacatalog_v1.DataCatalogAsyncClient() - - # Initialize request argument(s) - request = datacatalog_v1.ModifyEntryOverviewRequest( - name="name_value", - ) - - # Make the request - response = await client.modify_entry_overview(request=request) - - # Handle the response - print(response) - -# [END datacatalog_generated_datacatalog_v1_DataCatalog_ModifyEntryOverview_async] diff --git a/samples/generated_samples/datacatalog_generated_datacatalog_v1_data_catalog_modify_entry_overview_sync.py b/samples/generated_samples/datacatalog_generated_datacatalog_v1_data_catalog_modify_entry_overview_sync.py deleted file mode 100644 index 8b02e02c..00000000 --- a/samples/generated_samples/datacatalog_generated_datacatalog_v1_data_catalog_modify_entry_overview_sync.py +++ /dev/null @@ -1,45 +0,0 @@ -# -*- coding: utf-8 -*- -# Copyright 2020 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# -# Generated code. DO NOT EDIT! -# -# Snippet for ModifyEntryOverview -# NOTE: This snippet has been automatically generated for illustrative purposes only. -# It may require modifications to work in your environment. - -# To install the latest published package dependency, execute the following: -# python3 -m pip install google-cloud-datacatalog - - -# [START datacatalog_generated_datacatalog_v1_DataCatalog_ModifyEntryOverview_sync] -from google.cloud import datacatalog_v1 - - -def sample_modify_entry_overview(): - # Create a client - client = datacatalog_v1.DataCatalogClient() - - # Initialize request argument(s) - request = datacatalog_v1.ModifyEntryOverviewRequest( - name="name_value", - ) - - # Make the request - response = client.modify_entry_overview(request=request) - - # Handle the response - print(response) - -# [END datacatalog_generated_datacatalog_v1_DataCatalog_ModifyEntryOverview_sync] diff --git a/samples/generated_samples/datacatalog_generated_datacatalog_v1_data_catalog_rename_tag_template_field_async.py b/samples/generated_samples/datacatalog_generated_datacatalog_v1_data_catalog_rename_tag_template_field_async.py deleted file mode 100644 index 8b0b3d84..00000000 --- a/samples/generated_samples/datacatalog_generated_datacatalog_v1_data_catalog_rename_tag_template_field_async.py +++ /dev/null @@ -1,46 +0,0 @@ -# -*- coding: utf-8 -*- -# Copyright 2020 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# -# Generated code. DO NOT EDIT! -# -# Snippet for RenameTagTemplateField -# NOTE: This snippet has been automatically generated for illustrative purposes only. -# It may require modifications to work in your environment. - -# To install the latest published package dependency, execute the following: -# python3 -m pip install google-cloud-datacatalog - - -# [START datacatalog_generated_datacatalog_v1_DataCatalog_RenameTagTemplateField_async] -from google.cloud import datacatalog_v1 - - -async def sample_rename_tag_template_field(): - # Create a client - client = datacatalog_v1.DataCatalogAsyncClient() - - # Initialize request argument(s) - request = datacatalog_v1.RenameTagTemplateFieldRequest( - name="name_value", - new_tag_template_field_id="new_tag_template_field_id_value", - ) - - # Make the request - response = await client.rename_tag_template_field(request=request) - - # Handle the response - print(response) - -# [END datacatalog_generated_datacatalog_v1_DataCatalog_RenameTagTemplateField_async] diff --git a/samples/generated_samples/datacatalog_generated_datacatalog_v1_data_catalog_rename_tag_template_field_enum_value_async.py b/samples/generated_samples/datacatalog_generated_datacatalog_v1_data_catalog_rename_tag_template_field_enum_value_async.py deleted file mode 100644 index cfc75555..00000000 --- a/samples/generated_samples/datacatalog_generated_datacatalog_v1_data_catalog_rename_tag_template_field_enum_value_async.py +++ /dev/null @@ -1,46 +0,0 @@ -# -*- coding: utf-8 -*- -# Copyright 2020 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# -# Generated code. DO NOT EDIT! -# -# Snippet for RenameTagTemplateFieldEnumValue -# NOTE: This snippet has been automatically generated for illustrative purposes only. -# It may require modifications to work in your environment. - -# To install the latest published package dependency, execute the following: -# python3 -m pip install google-cloud-datacatalog - - -# [START datacatalog_generated_datacatalog_v1_DataCatalog_RenameTagTemplateFieldEnumValue_async] -from google.cloud import datacatalog_v1 - - -async def sample_rename_tag_template_field_enum_value(): - # Create a client - client = datacatalog_v1.DataCatalogAsyncClient() - - # Initialize request argument(s) - request = datacatalog_v1.RenameTagTemplateFieldEnumValueRequest( - name="name_value", - new_enum_value_display_name="new_enum_value_display_name_value", - ) - - # Make the request - response = await client.rename_tag_template_field_enum_value(request=request) - - # Handle the response - print(response) - -# [END datacatalog_generated_datacatalog_v1_DataCatalog_RenameTagTemplateFieldEnumValue_async] diff --git a/samples/generated_samples/datacatalog_generated_datacatalog_v1_data_catalog_rename_tag_template_field_enum_value_sync.py b/samples/generated_samples/datacatalog_generated_datacatalog_v1_data_catalog_rename_tag_template_field_enum_value_sync.py deleted file mode 100644 index 5892dd33..00000000 --- a/samples/generated_samples/datacatalog_generated_datacatalog_v1_data_catalog_rename_tag_template_field_enum_value_sync.py +++ /dev/null @@ -1,46 +0,0 @@ -# -*- coding: utf-8 -*- -# Copyright 2020 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# -# Generated code. DO NOT EDIT! -# -# Snippet for RenameTagTemplateFieldEnumValue -# NOTE: This snippet has been automatically generated for illustrative purposes only. -# It may require modifications to work in your environment. - -# To install the latest published package dependency, execute the following: -# python3 -m pip install google-cloud-datacatalog - - -# [START datacatalog_generated_datacatalog_v1_DataCatalog_RenameTagTemplateFieldEnumValue_sync] -from google.cloud import datacatalog_v1 - - -def sample_rename_tag_template_field_enum_value(): - # Create a client - client = datacatalog_v1.DataCatalogClient() - - # Initialize request argument(s) - request = datacatalog_v1.RenameTagTemplateFieldEnumValueRequest( - name="name_value", - new_enum_value_display_name="new_enum_value_display_name_value", - ) - - # Make the request - response = client.rename_tag_template_field_enum_value(request=request) - - # Handle the response - print(response) - -# [END datacatalog_generated_datacatalog_v1_DataCatalog_RenameTagTemplateFieldEnumValue_sync] diff --git a/samples/generated_samples/datacatalog_generated_datacatalog_v1_data_catalog_rename_tag_template_field_sync.py b/samples/generated_samples/datacatalog_generated_datacatalog_v1_data_catalog_rename_tag_template_field_sync.py deleted file mode 100644 index 10be5279..00000000 --- a/samples/generated_samples/datacatalog_generated_datacatalog_v1_data_catalog_rename_tag_template_field_sync.py +++ /dev/null @@ -1,46 +0,0 @@ -# -*- coding: utf-8 -*- -# Copyright 2020 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# -# Generated code. DO NOT EDIT! -# -# Snippet for RenameTagTemplateField -# NOTE: This snippet has been automatically generated for illustrative purposes only. -# It may require modifications to work in your environment. - -# To install the latest published package dependency, execute the following: -# python3 -m pip install google-cloud-datacatalog - - -# [START datacatalog_generated_datacatalog_v1_DataCatalog_RenameTagTemplateField_sync] -from google.cloud import datacatalog_v1 - - -def sample_rename_tag_template_field(): - # Create a client - client = datacatalog_v1.DataCatalogClient() - - # Initialize request argument(s) - request = datacatalog_v1.RenameTagTemplateFieldRequest( - name="name_value", - new_tag_template_field_id="new_tag_template_field_id_value", - ) - - # Make the request - response = client.rename_tag_template_field(request=request) - - # Handle the response - print(response) - -# [END datacatalog_generated_datacatalog_v1_DataCatalog_RenameTagTemplateField_sync] diff --git a/samples/generated_samples/datacatalog_generated_datacatalog_v1_data_catalog_search_catalog_async.py b/samples/generated_samples/datacatalog_generated_datacatalog_v1_data_catalog_search_catalog_async.py deleted file mode 100644 index da60e6fb..00000000 --- a/samples/generated_samples/datacatalog_generated_datacatalog_v1_data_catalog_search_catalog_async.py +++ /dev/null @@ -1,45 +0,0 @@ -# -*- coding: utf-8 -*- -# Copyright 2020 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# -# Generated code. DO NOT EDIT! -# -# Snippet for SearchCatalog -# NOTE: This snippet has been automatically generated for illustrative purposes only. -# It may require modifications to work in your environment. - -# To install the latest published package dependency, execute the following: -# python3 -m pip install google-cloud-datacatalog - - -# [START datacatalog_generated_datacatalog_v1_DataCatalog_SearchCatalog_async] -from google.cloud import datacatalog_v1 - - -async def sample_search_catalog(): - # Create a client - client = datacatalog_v1.DataCatalogAsyncClient() - - # Initialize request argument(s) - request = datacatalog_v1.SearchCatalogRequest( - ) - - # Make the request - page_result = client.search_catalog(request=request) - - # Handle the response - async for response in page_result: - print(response) - -# [END datacatalog_generated_datacatalog_v1_DataCatalog_SearchCatalog_async] diff --git a/samples/generated_samples/datacatalog_generated_datacatalog_v1_data_catalog_search_catalog_sync.py b/samples/generated_samples/datacatalog_generated_datacatalog_v1_data_catalog_search_catalog_sync.py deleted file mode 100644 index 78908181..00000000 --- a/samples/generated_samples/datacatalog_generated_datacatalog_v1_data_catalog_search_catalog_sync.py +++ /dev/null @@ -1,45 +0,0 @@ -# -*- coding: utf-8 -*- -# Copyright 2020 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# -# Generated code. DO NOT EDIT! -# -# Snippet for SearchCatalog -# NOTE: This snippet has been automatically generated for illustrative purposes only. -# It may require modifications to work in your environment. - -# To install the latest published package dependency, execute the following: -# python3 -m pip install google-cloud-datacatalog - - -# [START datacatalog_generated_datacatalog_v1_DataCatalog_SearchCatalog_sync] -from google.cloud import datacatalog_v1 - - -def sample_search_catalog(): - # Create a client - client = datacatalog_v1.DataCatalogClient() - - # Initialize request argument(s) - request = datacatalog_v1.SearchCatalogRequest( - ) - - # Make the request - page_result = client.search_catalog(request=request) - - # Handle the response - for response in page_result: - print(response) - -# [END datacatalog_generated_datacatalog_v1_DataCatalog_SearchCatalog_sync] diff --git a/samples/generated_samples/datacatalog_generated_datacatalog_v1_data_catalog_set_iam_policy_async.py b/samples/generated_samples/datacatalog_generated_datacatalog_v1_data_catalog_set_iam_policy_async.py deleted file mode 100644 index 616677d5..00000000 --- a/samples/generated_samples/datacatalog_generated_datacatalog_v1_data_catalog_set_iam_policy_async.py +++ /dev/null @@ -1,45 +0,0 @@ -# -*- coding: utf-8 -*- -# Copyright 2020 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# -# Generated code. DO NOT EDIT! -# -# Snippet for SetIamPolicy -# NOTE: This snippet has been automatically generated for illustrative purposes only. -# It may require modifications to work in your environment. - -# To install the latest published package dependency, execute the following: -# python3 -m pip install google-cloud-datacatalog - - -# [START datacatalog_generated_datacatalog_v1_DataCatalog_SetIamPolicy_async] -from google.cloud import datacatalog_v1 - - -async def sample_set_iam_policy(): - # Create a client - client = datacatalog_v1.DataCatalogAsyncClient() - - # Initialize request argument(s) - request = datacatalog_v1.SetIamPolicyRequest( - resource="resource_value", - ) - - # Make the request - response = await client.set_iam_policy(request=request) - - # Handle the response - print(response) - -# [END datacatalog_generated_datacatalog_v1_DataCatalog_SetIamPolicy_async] diff --git a/samples/generated_samples/datacatalog_generated_datacatalog_v1_data_catalog_set_iam_policy_sync.py b/samples/generated_samples/datacatalog_generated_datacatalog_v1_data_catalog_set_iam_policy_sync.py deleted file mode 100644 index 77c26f64..00000000 --- a/samples/generated_samples/datacatalog_generated_datacatalog_v1_data_catalog_set_iam_policy_sync.py +++ /dev/null @@ -1,45 +0,0 @@ -# -*- coding: utf-8 -*- -# Copyright 2020 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# -# Generated code. DO NOT EDIT! -# -# Snippet for SetIamPolicy -# NOTE: This snippet has been automatically generated for illustrative purposes only. -# It may require modifications to work in your environment. - -# To install the latest published package dependency, execute the following: -# python3 -m pip install google-cloud-datacatalog - - -# [START datacatalog_generated_datacatalog_v1_DataCatalog_SetIamPolicy_sync] -from google.cloud import datacatalog_v1 - - -def sample_set_iam_policy(): - # Create a client - client = datacatalog_v1.DataCatalogClient() - - # Initialize request argument(s) - request = datacatalog_v1.SetIamPolicyRequest( - resource="resource_value", - ) - - # Make the request - response = client.set_iam_policy(request=request) - - # Handle the response - print(response) - -# [END datacatalog_generated_datacatalog_v1_DataCatalog_SetIamPolicy_sync] diff --git a/samples/generated_samples/datacatalog_generated_datacatalog_v1_data_catalog_star_entry_async.py b/samples/generated_samples/datacatalog_generated_datacatalog_v1_data_catalog_star_entry_async.py deleted file mode 100644 index c5b4b4c1..00000000 --- a/samples/generated_samples/datacatalog_generated_datacatalog_v1_data_catalog_star_entry_async.py +++ /dev/null @@ -1,45 +0,0 @@ -# -*- coding: utf-8 -*- -# Copyright 2020 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# -# Generated code. DO NOT EDIT! -# -# Snippet for StarEntry -# NOTE: This snippet has been automatically generated for illustrative purposes only. -# It may require modifications to work in your environment. - -# To install the latest published package dependency, execute the following: -# python3 -m pip install google-cloud-datacatalog - - -# [START datacatalog_generated_datacatalog_v1_DataCatalog_StarEntry_async] -from google.cloud import datacatalog_v1 - - -async def sample_star_entry(): - # Create a client - client = datacatalog_v1.DataCatalogAsyncClient() - - # Initialize request argument(s) - request = datacatalog_v1.StarEntryRequest( - name="name_value", - ) - - # Make the request - response = await client.star_entry(request=request) - - # Handle the response - print(response) - -# [END datacatalog_generated_datacatalog_v1_DataCatalog_StarEntry_async] diff --git a/samples/generated_samples/datacatalog_generated_datacatalog_v1_data_catalog_star_entry_sync.py b/samples/generated_samples/datacatalog_generated_datacatalog_v1_data_catalog_star_entry_sync.py deleted file mode 100644 index 3c4c9e03..00000000 --- a/samples/generated_samples/datacatalog_generated_datacatalog_v1_data_catalog_star_entry_sync.py +++ /dev/null @@ -1,45 +0,0 @@ -# -*- coding: utf-8 -*- -# Copyright 2020 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# -# Generated code. DO NOT EDIT! -# -# Snippet for StarEntry -# NOTE: This snippet has been automatically generated for illustrative purposes only. -# It may require modifications to work in your environment. - -# To install the latest published package dependency, execute the following: -# python3 -m pip install google-cloud-datacatalog - - -# [START datacatalog_generated_datacatalog_v1_DataCatalog_StarEntry_sync] -from google.cloud import datacatalog_v1 - - -def sample_star_entry(): - # Create a client - client = datacatalog_v1.DataCatalogClient() - - # Initialize request argument(s) - request = datacatalog_v1.StarEntryRequest( - name="name_value", - ) - - # Make the request - response = client.star_entry(request=request) - - # Handle the response - print(response) - -# [END datacatalog_generated_datacatalog_v1_DataCatalog_StarEntry_sync] diff --git a/samples/generated_samples/datacatalog_generated_datacatalog_v1_data_catalog_test_iam_permissions_async.py b/samples/generated_samples/datacatalog_generated_datacatalog_v1_data_catalog_test_iam_permissions_async.py deleted file mode 100644 index 7d31bc0d..00000000 --- a/samples/generated_samples/datacatalog_generated_datacatalog_v1_data_catalog_test_iam_permissions_async.py +++ /dev/null @@ -1,46 +0,0 @@ -# -*- coding: utf-8 -*- -# Copyright 2020 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# -# Generated code. DO NOT EDIT! -# -# Snippet for TestIamPermissions -# NOTE: This snippet has been automatically generated for illustrative purposes only. -# It may require modifications to work in your environment. - -# To install the latest published package dependency, execute the following: -# python3 -m pip install google-cloud-datacatalog - - -# [START datacatalog_generated_datacatalog_v1_DataCatalog_TestIamPermissions_async] -from google.cloud import datacatalog_v1 - - -async def sample_test_iam_permissions(): - # Create a client - client = datacatalog_v1.DataCatalogAsyncClient() - - # Initialize request argument(s) - request = datacatalog_v1.TestIamPermissionsRequest( - resource="resource_value", - permissions=['permissions_value_1', 'permissions_value_2'], - ) - - # Make the request - response = await client.test_iam_permissions(request=request) - - # Handle the response - print(response) - -# [END datacatalog_generated_datacatalog_v1_DataCatalog_TestIamPermissions_async] diff --git a/samples/generated_samples/datacatalog_generated_datacatalog_v1_data_catalog_test_iam_permissions_sync.py b/samples/generated_samples/datacatalog_generated_datacatalog_v1_data_catalog_test_iam_permissions_sync.py deleted file mode 100644 index f85ac8f9..00000000 --- a/samples/generated_samples/datacatalog_generated_datacatalog_v1_data_catalog_test_iam_permissions_sync.py +++ /dev/null @@ -1,46 +0,0 @@ -# -*- coding: utf-8 -*- -# Copyright 2020 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# -# Generated code. DO NOT EDIT! -# -# Snippet for TestIamPermissions -# NOTE: This snippet has been automatically generated for illustrative purposes only. -# It may require modifications to work in your environment. - -# To install the latest published package dependency, execute the following: -# python3 -m pip install google-cloud-datacatalog - - -# [START datacatalog_generated_datacatalog_v1_DataCatalog_TestIamPermissions_sync] -from google.cloud import datacatalog_v1 - - -def sample_test_iam_permissions(): - # Create a client - client = datacatalog_v1.DataCatalogClient() - - # Initialize request argument(s) - request = datacatalog_v1.TestIamPermissionsRequest( - resource="resource_value", - permissions=['permissions_value_1', 'permissions_value_2'], - ) - - # Make the request - response = client.test_iam_permissions(request=request) - - # Handle the response - print(response) - -# [END datacatalog_generated_datacatalog_v1_DataCatalog_TestIamPermissions_sync] diff --git a/samples/generated_samples/datacatalog_generated_datacatalog_v1_data_catalog_unstar_entry_async.py b/samples/generated_samples/datacatalog_generated_datacatalog_v1_data_catalog_unstar_entry_async.py deleted file mode 100644 index 535e9b0c..00000000 --- a/samples/generated_samples/datacatalog_generated_datacatalog_v1_data_catalog_unstar_entry_async.py +++ /dev/null @@ -1,45 +0,0 @@ -# -*- coding: utf-8 -*- -# Copyright 2020 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# -# Generated code. DO NOT EDIT! -# -# Snippet for UnstarEntry -# NOTE: This snippet has been automatically generated for illustrative purposes only. -# It may require modifications to work in your environment. - -# To install the latest published package dependency, execute the following: -# python3 -m pip install google-cloud-datacatalog - - -# [START datacatalog_generated_datacatalog_v1_DataCatalog_UnstarEntry_async] -from google.cloud import datacatalog_v1 - - -async def sample_unstar_entry(): - # Create a client - client = datacatalog_v1.DataCatalogAsyncClient() - - # Initialize request argument(s) - request = datacatalog_v1.UnstarEntryRequest( - name="name_value", - ) - - # Make the request - response = await client.unstar_entry(request=request) - - # Handle the response - print(response) - -# [END datacatalog_generated_datacatalog_v1_DataCatalog_UnstarEntry_async] diff --git a/samples/generated_samples/datacatalog_generated_datacatalog_v1_data_catalog_unstar_entry_sync.py b/samples/generated_samples/datacatalog_generated_datacatalog_v1_data_catalog_unstar_entry_sync.py deleted file mode 100644 index 6ffc920f..00000000 --- a/samples/generated_samples/datacatalog_generated_datacatalog_v1_data_catalog_unstar_entry_sync.py +++ /dev/null @@ -1,45 +0,0 @@ -# -*- coding: utf-8 -*- -# Copyright 2020 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# -# Generated code. DO NOT EDIT! -# -# Snippet for UnstarEntry -# NOTE: This snippet has been automatically generated for illustrative purposes only. -# It may require modifications to work in your environment. - -# To install the latest published package dependency, execute the following: -# python3 -m pip install google-cloud-datacatalog - - -# [START datacatalog_generated_datacatalog_v1_DataCatalog_UnstarEntry_sync] -from google.cloud import datacatalog_v1 - - -def sample_unstar_entry(): - # Create a client - client = datacatalog_v1.DataCatalogClient() - - # Initialize request argument(s) - request = datacatalog_v1.UnstarEntryRequest( - name="name_value", - ) - - # Make the request - response = client.unstar_entry(request=request) - - # Handle the response - print(response) - -# [END datacatalog_generated_datacatalog_v1_DataCatalog_UnstarEntry_sync] diff --git a/samples/generated_samples/datacatalog_generated_datacatalog_v1_data_catalog_update_entry_async.py b/samples/generated_samples/datacatalog_generated_datacatalog_v1_data_catalog_update_entry_async.py deleted file mode 100644 index 5b950464..00000000 --- a/samples/generated_samples/datacatalog_generated_datacatalog_v1_data_catalog_update_entry_async.py +++ /dev/null @@ -1,50 +0,0 @@ -# -*- coding: utf-8 -*- -# Copyright 2020 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# -# Generated code. DO NOT EDIT! -# -# Snippet for UpdateEntry -# NOTE: This snippet has been automatically generated for illustrative purposes only. -# It may require modifications to work in your environment. - -# To install the latest published package dependency, execute the following: -# python3 -m pip install google-cloud-datacatalog - - -# [START datacatalog_generated_datacatalog_v1_DataCatalog_UpdateEntry_async] -from google.cloud import datacatalog_v1 - - -async def sample_update_entry(): - # Create a client - client = datacatalog_v1.DataCatalogAsyncClient() - - # Initialize request argument(s) - entry = datacatalog_v1.Entry() - entry.type_ = "SERVICE" - entry.integrated_system = "DATAPROC_METASTORE" - entry.gcs_fileset_spec.file_patterns = ['file_patterns_value_1', 'file_patterns_value_2'] - - request = datacatalog_v1.UpdateEntryRequest( - entry=entry, - ) - - # Make the request - response = await client.update_entry(request=request) - - # Handle the response - print(response) - -# [END datacatalog_generated_datacatalog_v1_DataCatalog_UpdateEntry_async] diff --git a/samples/generated_samples/datacatalog_generated_datacatalog_v1_data_catalog_update_entry_group_async.py b/samples/generated_samples/datacatalog_generated_datacatalog_v1_data_catalog_update_entry_group_async.py deleted file mode 100644 index 05680014..00000000 --- a/samples/generated_samples/datacatalog_generated_datacatalog_v1_data_catalog_update_entry_group_async.py +++ /dev/null @@ -1,44 +0,0 @@ -# -*- coding: utf-8 -*- -# Copyright 2020 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# -# Generated code. DO NOT EDIT! -# -# Snippet for UpdateEntryGroup -# NOTE: This snippet has been automatically generated for illustrative purposes only. -# It may require modifications to work in your environment. - -# To install the latest published package dependency, execute the following: -# python3 -m pip install google-cloud-datacatalog - - -# [START datacatalog_generated_datacatalog_v1_DataCatalog_UpdateEntryGroup_async] -from google.cloud import datacatalog_v1 - - -async def sample_update_entry_group(): - # Create a client - client = datacatalog_v1.DataCatalogAsyncClient() - - # Initialize request argument(s) - request = datacatalog_v1.UpdateEntryGroupRequest( - ) - - # Make the request - response = await client.update_entry_group(request=request) - - # Handle the response - print(response) - -# [END datacatalog_generated_datacatalog_v1_DataCatalog_UpdateEntryGroup_async] diff --git a/samples/generated_samples/datacatalog_generated_datacatalog_v1_data_catalog_update_entry_group_sync.py b/samples/generated_samples/datacatalog_generated_datacatalog_v1_data_catalog_update_entry_group_sync.py deleted file mode 100644 index 28c0b992..00000000 --- a/samples/generated_samples/datacatalog_generated_datacatalog_v1_data_catalog_update_entry_group_sync.py +++ /dev/null @@ -1,44 +0,0 @@ -# -*- coding: utf-8 -*- -# Copyright 2020 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# -# Generated code. DO NOT EDIT! -# -# Snippet for UpdateEntryGroup -# NOTE: This snippet has been automatically generated for illustrative purposes only. -# It may require modifications to work in your environment. - -# To install the latest published package dependency, execute the following: -# python3 -m pip install google-cloud-datacatalog - - -# [START datacatalog_generated_datacatalog_v1_DataCatalog_UpdateEntryGroup_sync] -from google.cloud import datacatalog_v1 - - -def sample_update_entry_group(): - # Create a client - client = datacatalog_v1.DataCatalogClient() - - # Initialize request argument(s) - request = datacatalog_v1.UpdateEntryGroupRequest( - ) - - # Make the request - response = client.update_entry_group(request=request) - - # Handle the response - print(response) - -# [END datacatalog_generated_datacatalog_v1_DataCatalog_UpdateEntryGroup_sync] diff --git a/samples/generated_samples/datacatalog_generated_datacatalog_v1_data_catalog_update_entry_sync.py b/samples/generated_samples/datacatalog_generated_datacatalog_v1_data_catalog_update_entry_sync.py deleted file mode 100644 index bd63a1cd..00000000 --- a/samples/generated_samples/datacatalog_generated_datacatalog_v1_data_catalog_update_entry_sync.py +++ /dev/null @@ -1,50 +0,0 @@ -# -*- coding: utf-8 -*- -# Copyright 2020 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# -# Generated code. DO NOT EDIT! -# -# Snippet for UpdateEntry -# NOTE: This snippet has been automatically generated for illustrative purposes only. -# It may require modifications to work in your environment. - -# To install the latest published package dependency, execute the following: -# python3 -m pip install google-cloud-datacatalog - - -# [START datacatalog_generated_datacatalog_v1_DataCatalog_UpdateEntry_sync] -from google.cloud import datacatalog_v1 - - -def sample_update_entry(): - # Create a client - client = datacatalog_v1.DataCatalogClient() - - # Initialize request argument(s) - entry = datacatalog_v1.Entry() - entry.type_ = "SERVICE" - entry.integrated_system = "DATAPROC_METASTORE" - entry.gcs_fileset_spec.file_patterns = ['file_patterns_value_1', 'file_patterns_value_2'] - - request = datacatalog_v1.UpdateEntryRequest( - entry=entry, - ) - - # Make the request - response = client.update_entry(request=request) - - # Handle the response - print(response) - -# [END datacatalog_generated_datacatalog_v1_DataCatalog_UpdateEntry_sync] diff --git a/samples/generated_samples/datacatalog_generated_datacatalog_v1_data_catalog_update_tag_async.py b/samples/generated_samples/datacatalog_generated_datacatalog_v1_data_catalog_update_tag_async.py deleted file mode 100644 index efb88e8e..00000000 --- a/samples/generated_samples/datacatalog_generated_datacatalog_v1_data_catalog_update_tag_async.py +++ /dev/null @@ -1,49 +0,0 @@ -# -*- coding: utf-8 -*- -# Copyright 2020 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# -# Generated code. DO NOT EDIT! -# -# Snippet for UpdateTag -# NOTE: This snippet has been automatically generated for illustrative purposes only. -# It may require modifications to work in your environment. - -# To install the latest published package dependency, execute the following: -# python3 -m pip install google-cloud-datacatalog - - -# [START datacatalog_generated_datacatalog_v1_DataCatalog_UpdateTag_async] -from google.cloud import datacatalog_v1 - - -async def sample_update_tag(): - # Create a client - client = datacatalog_v1.DataCatalogAsyncClient() - - # Initialize request argument(s) - tag = datacatalog_v1.Tag() - tag.column = "column_value" - tag.template = "template_value" - - request = datacatalog_v1.UpdateTagRequest( - tag=tag, - ) - - # Make the request - response = await client.update_tag(request=request) - - # Handle the response - print(response) - -# [END datacatalog_generated_datacatalog_v1_DataCatalog_UpdateTag_async] diff --git a/samples/generated_samples/datacatalog_generated_datacatalog_v1_data_catalog_update_tag_sync.py b/samples/generated_samples/datacatalog_generated_datacatalog_v1_data_catalog_update_tag_sync.py deleted file mode 100644 index e41f4cc4..00000000 --- a/samples/generated_samples/datacatalog_generated_datacatalog_v1_data_catalog_update_tag_sync.py +++ /dev/null @@ -1,49 +0,0 @@ -# -*- coding: utf-8 -*- -# Copyright 2020 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# -# Generated code. DO NOT EDIT! -# -# Snippet for UpdateTag -# NOTE: This snippet has been automatically generated for illustrative purposes only. -# It may require modifications to work in your environment. - -# To install the latest published package dependency, execute the following: -# python3 -m pip install google-cloud-datacatalog - - -# [START datacatalog_generated_datacatalog_v1_DataCatalog_UpdateTag_sync] -from google.cloud import datacatalog_v1 - - -def sample_update_tag(): - # Create a client - client = datacatalog_v1.DataCatalogClient() - - # Initialize request argument(s) - tag = datacatalog_v1.Tag() - tag.column = "column_value" - tag.template = "template_value" - - request = datacatalog_v1.UpdateTagRequest( - tag=tag, - ) - - # Make the request - response = client.update_tag(request=request) - - # Handle the response - print(response) - -# [END datacatalog_generated_datacatalog_v1_DataCatalog_UpdateTag_sync] diff --git a/samples/generated_samples/datacatalog_generated_datacatalog_v1_data_catalog_update_tag_template_async.py b/samples/generated_samples/datacatalog_generated_datacatalog_v1_data_catalog_update_tag_template_async.py deleted file mode 100644 index 0896c79a..00000000 --- a/samples/generated_samples/datacatalog_generated_datacatalog_v1_data_catalog_update_tag_template_async.py +++ /dev/null @@ -1,44 +0,0 @@ -# -*- coding: utf-8 -*- -# Copyright 2020 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# -# Generated code. DO NOT EDIT! -# -# Snippet for UpdateTagTemplate -# NOTE: This snippet has been automatically generated for illustrative purposes only. -# It may require modifications to work in your environment. - -# To install the latest published package dependency, execute the following: -# python3 -m pip install google-cloud-datacatalog - - -# [START datacatalog_generated_datacatalog_v1_DataCatalog_UpdateTagTemplate_async] -from google.cloud import datacatalog_v1 - - -async def sample_update_tag_template(): - # Create a client - client = datacatalog_v1.DataCatalogAsyncClient() - - # Initialize request argument(s) - request = datacatalog_v1.UpdateTagTemplateRequest( - ) - - # Make the request - response = await client.update_tag_template(request=request) - - # Handle the response - print(response) - -# [END datacatalog_generated_datacatalog_v1_DataCatalog_UpdateTagTemplate_async] diff --git a/samples/generated_samples/datacatalog_generated_datacatalog_v1_data_catalog_update_tag_template_field_async.py b/samples/generated_samples/datacatalog_generated_datacatalog_v1_data_catalog_update_tag_template_field_async.py deleted file mode 100644 index 89f85d7b..00000000 --- a/samples/generated_samples/datacatalog_generated_datacatalog_v1_data_catalog_update_tag_template_field_async.py +++ /dev/null @@ -1,49 +0,0 @@ -# -*- coding: utf-8 -*- -# Copyright 2020 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# -# Generated code. DO NOT EDIT! -# -# Snippet for UpdateTagTemplateField -# NOTE: This snippet has been automatically generated for illustrative purposes only. -# It may require modifications to work in your environment. - -# To install the latest published package dependency, execute the following: -# python3 -m pip install google-cloud-datacatalog - - -# [START datacatalog_generated_datacatalog_v1_DataCatalog_UpdateTagTemplateField_async] -from google.cloud import datacatalog_v1 - - -async def sample_update_tag_template_field(): - # Create a client - client = datacatalog_v1.DataCatalogAsyncClient() - - # Initialize request argument(s) - tag_template_field = datacatalog_v1.TagTemplateField() - tag_template_field.type_.primitive_type = "RICHTEXT" - - request = datacatalog_v1.UpdateTagTemplateFieldRequest( - name="name_value", - tag_template_field=tag_template_field, - ) - - # Make the request - response = await client.update_tag_template_field(request=request) - - # Handle the response - print(response) - -# [END datacatalog_generated_datacatalog_v1_DataCatalog_UpdateTagTemplateField_async] diff --git a/samples/generated_samples/datacatalog_generated_datacatalog_v1_data_catalog_update_tag_template_field_sync.py b/samples/generated_samples/datacatalog_generated_datacatalog_v1_data_catalog_update_tag_template_field_sync.py deleted file mode 100644 index ee69815b..00000000 --- a/samples/generated_samples/datacatalog_generated_datacatalog_v1_data_catalog_update_tag_template_field_sync.py +++ /dev/null @@ -1,49 +0,0 @@ -# -*- coding: utf-8 -*- -# Copyright 2020 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# -# Generated code. DO NOT EDIT! -# -# Snippet for UpdateTagTemplateField -# NOTE: This snippet has been automatically generated for illustrative purposes only. -# It may require modifications to work in your environment. - -# To install the latest published package dependency, execute the following: -# python3 -m pip install google-cloud-datacatalog - - -# [START datacatalog_generated_datacatalog_v1_DataCatalog_UpdateTagTemplateField_sync] -from google.cloud import datacatalog_v1 - - -def sample_update_tag_template_field(): - # Create a client - client = datacatalog_v1.DataCatalogClient() - - # Initialize request argument(s) - tag_template_field = datacatalog_v1.TagTemplateField() - tag_template_field.type_.primitive_type = "RICHTEXT" - - request = datacatalog_v1.UpdateTagTemplateFieldRequest( - name="name_value", - tag_template_field=tag_template_field, - ) - - # Make the request - response = client.update_tag_template_field(request=request) - - # Handle the response - print(response) - -# [END datacatalog_generated_datacatalog_v1_DataCatalog_UpdateTagTemplateField_sync] diff --git a/samples/generated_samples/datacatalog_generated_datacatalog_v1_data_catalog_update_tag_template_sync.py b/samples/generated_samples/datacatalog_generated_datacatalog_v1_data_catalog_update_tag_template_sync.py deleted file mode 100644 index 8c9ac9c9..00000000 --- a/samples/generated_samples/datacatalog_generated_datacatalog_v1_data_catalog_update_tag_template_sync.py +++ /dev/null @@ -1,44 +0,0 @@ -# -*- coding: utf-8 -*- -# Copyright 2020 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# -# Generated code. DO NOT EDIT! -# -# Snippet for UpdateTagTemplate -# NOTE: This snippet has been automatically generated for illustrative purposes only. -# It may require modifications to work in your environment. - -# To install the latest published package dependency, execute the following: -# python3 -m pip install google-cloud-datacatalog - - -# [START datacatalog_generated_datacatalog_v1_DataCatalog_UpdateTagTemplate_sync] -from google.cloud import datacatalog_v1 - - -def sample_update_tag_template(): - # Create a client - client = datacatalog_v1.DataCatalogClient() - - # Initialize request argument(s) - request = datacatalog_v1.UpdateTagTemplateRequest( - ) - - # Make the request - response = client.update_tag_template(request=request) - - # Handle the response - print(response) - -# [END datacatalog_generated_datacatalog_v1_DataCatalog_UpdateTagTemplate_sync] diff --git a/samples/generated_samples/datacatalog_generated_datacatalog_v1_policy_tag_manager_create_policy_tag_async.py b/samples/generated_samples/datacatalog_generated_datacatalog_v1_policy_tag_manager_create_policy_tag_async.py deleted file mode 100644 index a874a352..00000000 --- a/samples/generated_samples/datacatalog_generated_datacatalog_v1_policy_tag_manager_create_policy_tag_async.py +++ /dev/null @@ -1,45 +0,0 @@ -# -*- coding: utf-8 -*- -# Copyright 2020 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# -# Generated code. DO NOT EDIT! -# -# Snippet for CreatePolicyTag -# NOTE: This snippet has been automatically generated for illustrative purposes only. -# It may require modifications to work in your environment. - -# To install the latest published package dependency, execute the following: -# python3 -m pip install google-cloud-datacatalog - - -# [START datacatalog_generated_datacatalog_v1_PolicyTagManager_CreatePolicyTag_async] -from google.cloud import datacatalog_v1 - - -async def sample_create_policy_tag(): - # Create a client - client = datacatalog_v1.PolicyTagManagerAsyncClient() - - # Initialize request argument(s) - request = datacatalog_v1.CreatePolicyTagRequest( - parent="parent_value", - ) - - # Make the request - response = await client.create_policy_tag(request=request) - - # Handle the response - print(response) - -# [END datacatalog_generated_datacatalog_v1_PolicyTagManager_CreatePolicyTag_async] diff --git a/samples/generated_samples/datacatalog_generated_datacatalog_v1_policy_tag_manager_create_policy_tag_sync.py b/samples/generated_samples/datacatalog_generated_datacatalog_v1_policy_tag_manager_create_policy_tag_sync.py deleted file mode 100644 index 17dfd304..00000000 --- a/samples/generated_samples/datacatalog_generated_datacatalog_v1_policy_tag_manager_create_policy_tag_sync.py +++ /dev/null @@ -1,45 +0,0 @@ -# -*- coding: utf-8 -*- -# Copyright 2020 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# -# Generated code. DO NOT EDIT! -# -# Snippet for CreatePolicyTag -# NOTE: This snippet has been automatically generated for illustrative purposes only. -# It may require modifications to work in your environment. - -# To install the latest published package dependency, execute the following: -# python3 -m pip install google-cloud-datacatalog - - -# [START datacatalog_generated_datacatalog_v1_PolicyTagManager_CreatePolicyTag_sync] -from google.cloud import datacatalog_v1 - - -def sample_create_policy_tag(): - # Create a client - client = datacatalog_v1.PolicyTagManagerClient() - - # Initialize request argument(s) - request = datacatalog_v1.CreatePolicyTagRequest( - parent="parent_value", - ) - - # Make the request - response = client.create_policy_tag(request=request) - - # Handle the response - print(response) - -# [END datacatalog_generated_datacatalog_v1_PolicyTagManager_CreatePolicyTag_sync] diff --git a/samples/generated_samples/datacatalog_generated_datacatalog_v1_policy_tag_manager_create_taxonomy_async.py b/samples/generated_samples/datacatalog_generated_datacatalog_v1_policy_tag_manager_create_taxonomy_async.py deleted file mode 100644 index e90f0802..00000000 --- a/samples/generated_samples/datacatalog_generated_datacatalog_v1_policy_tag_manager_create_taxonomy_async.py +++ /dev/null @@ -1,45 +0,0 @@ -# -*- coding: utf-8 -*- -# Copyright 2020 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# -# Generated code. DO NOT EDIT! -# -# Snippet for CreateTaxonomy -# NOTE: This snippet has been automatically generated for illustrative purposes only. -# It may require modifications to work in your environment. - -# To install the latest published package dependency, execute the following: -# python3 -m pip install google-cloud-datacatalog - - -# [START datacatalog_generated_datacatalog_v1_PolicyTagManager_CreateTaxonomy_async] -from google.cloud import datacatalog_v1 - - -async def sample_create_taxonomy(): - # Create a client - client = datacatalog_v1.PolicyTagManagerAsyncClient() - - # Initialize request argument(s) - request = datacatalog_v1.CreateTaxonomyRequest( - parent="parent_value", - ) - - # Make the request - response = await client.create_taxonomy(request=request) - - # Handle the response - print(response) - -# [END datacatalog_generated_datacatalog_v1_PolicyTagManager_CreateTaxonomy_async] diff --git a/samples/generated_samples/datacatalog_generated_datacatalog_v1_policy_tag_manager_create_taxonomy_sync.py b/samples/generated_samples/datacatalog_generated_datacatalog_v1_policy_tag_manager_create_taxonomy_sync.py deleted file mode 100644 index 246a06e0..00000000 --- a/samples/generated_samples/datacatalog_generated_datacatalog_v1_policy_tag_manager_create_taxonomy_sync.py +++ /dev/null @@ -1,45 +0,0 @@ -# -*- coding: utf-8 -*- -# Copyright 2020 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# -# Generated code. DO NOT EDIT! -# -# Snippet for CreateTaxonomy -# NOTE: This snippet has been automatically generated for illustrative purposes only. -# It may require modifications to work in your environment. - -# To install the latest published package dependency, execute the following: -# python3 -m pip install google-cloud-datacatalog - - -# [START datacatalog_generated_datacatalog_v1_PolicyTagManager_CreateTaxonomy_sync] -from google.cloud import datacatalog_v1 - - -def sample_create_taxonomy(): - # Create a client - client = datacatalog_v1.PolicyTagManagerClient() - - # Initialize request argument(s) - request = datacatalog_v1.CreateTaxonomyRequest( - parent="parent_value", - ) - - # Make the request - response = client.create_taxonomy(request=request) - - # Handle the response - print(response) - -# [END datacatalog_generated_datacatalog_v1_PolicyTagManager_CreateTaxonomy_sync] diff --git a/samples/generated_samples/datacatalog_generated_datacatalog_v1_policy_tag_manager_delete_policy_tag_async.py b/samples/generated_samples/datacatalog_generated_datacatalog_v1_policy_tag_manager_delete_policy_tag_async.py deleted file mode 100644 index 27e80fc1..00000000 --- a/samples/generated_samples/datacatalog_generated_datacatalog_v1_policy_tag_manager_delete_policy_tag_async.py +++ /dev/null @@ -1,43 +0,0 @@ -# -*- coding: utf-8 -*- -# Copyright 2020 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# -# Generated code. DO NOT EDIT! -# -# Snippet for DeletePolicyTag -# NOTE: This snippet has been automatically generated for illustrative purposes only. -# It may require modifications to work in your environment. - -# To install the latest published package dependency, execute the following: -# python3 -m pip install google-cloud-datacatalog - - -# [START datacatalog_generated_datacatalog_v1_PolicyTagManager_DeletePolicyTag_async] -from google.cloud import datacatalog_v1 - - -async def sample_delete_policy_tag(): - # Create a client - client = datacatalog_v1.PolicyTagManagerAsyncClient() - - # Initialize request argument(s) - request = datacatalog_v1.DeletePolicyTagRequest( - name="name_value", - ) - - # Make the request - await client.delete_policy_tag(request=request) - - -# [END datacatalog_generated_datacatalog_v1_PolicyTagManager_DeletePolicyTag_async] diff --git a/samples/generated_samples/datacatalog_generated_datacatalog_v1_policy_tag_manager_delete_policy_tag_sync.py b/samples/generated_samples/datacatalog_generated_datacatalog_v1_policy_tag_manager_delete_policy_tag_sync.py deleted file mode 100644 index 9cbefe84..00000000 --- a/samples/generated_samples/datacatalog_generated_datacatalog_v1_policy_tag_manager_delete_policy_tag_sync.py +++ /dev/null @@ -1,43 +0,0 @@ -# -*- coding: utf-8 -*- -# Copyright 2020 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# -# Generated code. DO NOT EDIT! -# -# Snippet for DeletePolicyTag -# NOTE: This snippet has been automatically generated for illustrative purposes only. -# It may require modifications to work in your environment. - -# To install the latest published package dependency, execute the following: -# python3 -m pip install google-cloud-datacatalog - - -# [START datacatalog_generated_datacatalog_v1_PolicyTagManager_DeletePolicyTag_sync] -from google.cloud import datacatalog_v1 - - -def sample_delete_policy_tag(): - # Create a client - client = datacatalog_v1.PolicyTagManagerClient() - - # Initialize request argument(s) - request = datacatalog_v1.DeletePolicyTagRequest( - name="name_value", - ) - - # Make the request - client.delete_policy_tag(request=request) - - -# [END datacatalog_generated_datacatalog_v1_PolicyTagManager_DeletePolicyTag_sync] diff --git a/samples/generated_samples/datacatalog_generated_datacatalog_v1_policy_tag_manager_delete_taxonomy_async.py b/samples/generated_samples/datacatalog_generated_datacatalog_v1_policy_tag_manager_delete_taxonomy_async.py deleted file mode 100644 index fb8d8bd1..00000000 --- a/samples/generated_samples/datacatalog_generated_datacatalog_v1_policy_tag_manager_delete_taxonomy_async.py +++ /dev/null @@ -1,43 +0,0 @@ -# -*- coding: utf-8 -*- -# Copyright 2020 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# -# Generated code. DO NOT EDIT! -# -# Snippet for DeleteTaxonomy -# NOTE: This snippet has been automatically generated for illustrative purposes only. -# It may require modifications to work in your environment. - -# To install the latest published package dependency, execute the following: -# python3 -m pip install google-cloud-datacatalog - - -# [START datacatalog_generated_datacatalog_v1_PolicyTagManager_DeleteTaxonomy_async] -from google.cloud import datacatalog_v1 - - -async def sample_delete_taxonomy(): - # Create a client - client = datacatalog_v1.PolicyTagManagerAsyncClient() - - # Initialize request argument(s) - request = datacatalog_v1.DeleteTaxonomyRequest( - name="name_value", - ) - - # Make the request - await client.delete_taxonomy(request=request) - - -# [END datacatalog_generated_datacatalog_v1_PolicyTagManager_DeleteTaxonomy_async] diff --git a/samples/generated_samples/datacatalog_generated_datacatalog_v1_policy_tag_manager_delete_taxonomy_sync.py b/samples/generated_samples/datacatalog_generated_datacatalog_v1_policy_tag_manager_delete_taxonomy_sync.py deleted file mode 100644 index 06155328..00000000 --- a/samples/generated_samples/datacatalog_generated_datacatalog_v1_policy_tag_manager_delete_taxonomy_sync.py +++ /dev/null @@ -1,43 +0,0 @@ -# -*- coding: utf-8 -*- -# Copyright 2020 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# -# Generated code. DO NOT EDIT! -# -# Snippet for DeleteTaxonomy -# NOTE: This snippet has been automatically generated for illustrative purposes only. -# It may require modifications to work in your environment. - -# To install the latest published package dependency, execute the following: -# python3 -m pip install google-cloud-datacatalog - - -# [START datacatalog_generated_datacatalog_v1_PolicyTagManager_DeleteTaxonomy_sync] -from google.cloud import datacatalog_v1 - - -def sample_delete_taxonomy(): - # Create a client - client = datacatalog_v1.PolicyTagManagerClient() - - # Initialize request argument(s) - request = datacatalog_v1.DeleteTaxonomyRequest( - name="name_value", - ) - - # Make the request - client.delete_taxonomy(request=request) - - -# [END datacatalog_generated_datacatalog_v1_PolicyTagManager_DeleteTaxonomy_sync] diff --git a/samples/generated_samples/datacatalog_generated_datacatalog_v1_policy_tag_manager_get_iam_policy_async.py b/samples/generated_samples/datacatalog_generated_datacatalog_v1_policy_tag_manager_get_iam_policy_async.py deleted file mode 100644 index 876d59d6..00000000 --- a/samples/generated_samples/datacatalog_generated_datacatalog_v1_policy_tag_manager_get_iam_policy_async.py +++ /dev/null @@ -1,45 +0,0 @@ -# -*- coding: utf-8 -*- -# Copyright 2020 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# -# Generated code. DO NOT EDIT! -# -# Snippet for GetIamPolicy -# NOTE: This snippet has been automatically generated for illustrative purposes only. -# It may require modifications to work in your environment. - -# To install the latest published package dependency, execute the following: -# python3 -m pip install google-cloud-datacatalog - - -# [START datacatalog_generated_datacatalog_v1_PolicyTagManager_GetIamPolicy_async] -from google.cloud import datacatalog_v1 - - -async def sample_get_iam_policy(): - # Create a client - client = datacatalog_v1.PolicyTagManagerAsyncClient() - - # Initialize request argument(s) - request = datacatalog_v1.GetIamPolicyRequest( - resource="resource_value", - ) - - # Make the request - response = await client.get_iam_policy(request=request) - - # Handle the response - print(response) - -# [END datacatalog_generated_datacatalog_v1_PolicyTagManager_GetIamPolicy_async] diff --git a/samples/generated_samples/datacatalog_generated_datacatalog_v1_policy_tag_manager_get_iam_policy_sync.py b/samples/generated_samples/datacatalog_generated_datacatalog_v1_policy_tag_manager_get_iam_policy_sync.py deleted file mode 100644 index dd0c0763..00000000 --- a/samples/generated_samples/datacatalog_generated_datacatalog_v1_policy_tag_manager_get_iam_policy_sync.py +++ /dev/null @@ -1,45 +0,0 @@ -# -*- coding: utf-8 -*- -# Copyright 2020 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# -# Generated code. DO NOT EDIT! -# -# Snippet for GetIamPolicy -# NOTE: This snippet has been automatically generated for illustrative purposes only. -# It may require modifications to work in your environment. - -# To install the latest published package dependency, execute the following: -# python3 -m pip install google-cloud-datacatalog - - -# [START datacatalog_generated_datacatalog_v1_PolicyTagManager_GetIamPolicy_sync] -from google.cloud import datacatalog_v1 - - -def sample_get_iam_policy(): - # Create a client - client = datacatalog_v1.PolicyTagManagerClient() - - # Initialize request argument(s) - request = datacatalog_v1.GetIamPolicyRequest( - resource="resource_value", - ) - - # Make the request - response = client.get_iam_policy(request=request) - - # Handle the response - print(response) - -# [END datacatalog_generated_datacatalog_v1_PolicyTagManager_GetIamPolicy_sync] diff --git a/samples/generated_samples/datacatalog_generated_datacatalog_v1_policy_tag_manager_get_policy_tag_async.py b/samples/generated_samples/datacatalog_generated_datacatalog_v1_policy_tag_manager_get_policy_tag_async.py deleted file mode 100644 index 775cce7d..00000000 --- a/samples/generated_samples/datacatalog_generated_datacatalog_v1_policy_tag_manager_get_policy_tag_async.py +++ /dev/null @@ -1,45 +0,0 @@ -# -*- coding: utf-8 -*- -# Copyright 2020 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# -# Generated code. DO NOT EDIT! -# -# Snippet for GetPolicyTag -# NOTE: This snippet has been automatically generated for illustrative purposes only. -# It may require modifications to work in your environment. - -# To install the latest published package dependency, execute the following: -# python3 -m pip install google-cloud-datacatalog - - -# [START datacatalog_generated_datacatalog_v1_PolicyTagManager_GetPolicyTag_async] -from google.cloud import datacatalog_v1 - - -async def sample_get_policy_tag(): - # Create a client - client = datacatalog_v1.PolicyTagManagerAsyncClient() - - # Initialize request argument(s) - request = datacatalog_v1.GetPolicyTagRequest( - name="name_value", - ) - - # Make the request - response = await client.get_policy_tag(request=request) - - # Handle the response - print(response) - -# [END datacatalog_generated_datacatalog_v1_PolicyTagManager_GetPolicyTag_async] diff --git a/samples/generated_samples/datacatalog_generated_datacatalog_v1_policy_tag_manager_get_policy_tag_sync.py b/samples/generated_samples/datacatalog_generated_datacatalog_v1_policy_tag_manager_get_policy_tag_sync.py deleted file mode 100644 index 715dc030..00000000 --- a/samples/generated_samples/datacatalog_generated_datacatalog_v1_policy_tag_manager_get_policy_tag_sync.py +++ /dev/null @@ -1,45 +0,0 @@ -# -*- coding: utf-8 -*- -# Copyright 2020 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# -# Generated code. DO NOT EDIT! -# -# Snippet for GetPolicyTag -# NOTE: This snippet has been automatically generated for illustrative purposes only. -# It may require modifications to work in your environment. - -# To install the latest published package dependency, execute the following: -# python3 -m pip install google-cloud-datacatalog - - -# [START datacatalog_generated_datacatalog_v1_PolicyTagManager_GetPolicyTag_sync] -from google.cloud import datacatalog_v1 - - -def sample_get_policy_tag(): - # Create a client - client = datacatalog_v1.PolicyTagManagerClient() - - # Initialize request argument(s) - request = datacatalog_v1.GetPolicyTagRequest( - name="name_value", - ) - - # Make the request - response = client.get_policy_tag(request=request) - - # Handle the response - print(response) - -# [END datacatalog_generated_datacatalog_v1_PolicyTagManager_GetPolicyTag_sync] diff --git a/samples/generated_samples/datacatalog_generated_datacatalog_v1_policy_tag_manager_get_taxonomy_async.py b/samples/generated_samples/datacatalog_generated_datacatalog_v1_policy_tag_manager_get_taxonomy_async.py deleted file mode 100644 index cfa98bae..00000000 --- a/samples/generated_samples/datacatalog_generated_datacatalog_v1_policy_tag_manager_get_taxonomy_async.py +++ /dev/null @@ -1,45 +0,0 @@ -# -*- coding: utf-8 -*- -# Copyright 2020 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# -# Generated code. DO NOT EDIT! -# -# Snippet for GetTaxonomy -# NOTE: This snippet has been automatically generated for illustrative purposes only. -# It may require modifications to work in your environment. - -# To install the latest published package dependency, execute the following: -# python3 -m pip install google-cloud-datacatalog - - -# [START datacatalog_generated_datacatalog_v1_PolicyTagManager_GetTaxonomy_async] -from google.cloud import datacatalog_v1 - - -async def sample_get_taxonomy(): - # Create a client - client = datacatalog_v1.PolicyTagManagerAsyncClient() - - # Initialize request argument(s) - request = datacatalog_v1.GetTaxonomyRequest( - name="name_value", - ) - - # Make the request - response = await client.get_taxonomy(request=request) - - # Handle the response - print(response) - -# [END datacatalog_generated_datacatalog_v1_PolicyTagManager_GetTaxonomy_async] diff --git a/samples/generated_samples/datacatalog_generated_datacatalog_v1_policy_tag_manager_get_taxonomy_sync.py b/samples/generated_samples/datacatalog_generated_datacatalog_v1_policy_tag_manager_get_taxonomy_sync.py deleted file mode 100644 index c221b412..00000000 --- a/samples/generated_samples/datacatalog_generated_datacatalog_v1_policy_tag_manager_get_taxonomy_sync.py +++ /dev/null @@ -1,45 +0,0 @@ -# -*- coding: utf-8 -*- -# Copyright 2020 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# -# Generated code. DO NOT EDIT! -# -# Snippet for GetTaxonomy -# NOTE: This snippet has been automatically generated for illustrative purposes only. -# It may require modifications to work in your environment. - -# To install the latest published package dependency, execute the following: -# python3 -m pip install google-cloud-datacatalog - - -# [START datacatalog_generated_datacatalog_v1_PolicyTagManager_GetTaxonomy_sync] -from google.cloud import datacatalog_v1 - - -def sample_get_taxonomy(): - # Create a client - client = datacatalog_v1.PolicyTagManagerClient() - - # Initialize request argument(s) - request = datacatalog_v1.GetTaxonomyRequest( - name="name_value", - ) - - # Make the request - response = client.get_taxonomy(request=request) - - # Handle the response - print(response) - -# [END datacatalog_generated_datacatalog_v1_PolicyTagManager_GetTaxonomy_sync] diff --git a/samples/generated_samples/datacatalog_generated_datacatalog_v1_policy_tag_manager_list_policy_tags_async.py b/samples/generated_samples/datacatalog_generated_datacatalog_v1_policy_tag_manager_list_policy_tags_async.py deleted file mode 100644 index bc787318..00000000 --- a/samples/generated_samples/datacatalog_generated_datacatalog_v1_policy_tag_manager_list_policy_tags_async.py +++ /dev/null @@ -1,46 +0,0 @@ -# -*- coding: utf-8 -*- -# Copyright 2020 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# -# Generated code. DO NOT EDIT! -# -# Snippet for ListPolicyTags -# NOTE: This snippet has been automatically generated for illustrative purposes only. -# It may require modifications to work in your environment. - -# To install the latest published package dependency, execute the following: -# python3 -m pip install google-cloud-datacatalog - - -# [START datacatalog_generated_datacatalog_v1_PolicyTagManager_ListPolicyTags_async] -from google.cloud import datacatalog_v1 - - -async def sample_list_policy_tags(): - # Create a client - client = datacatalog_v1.PolicyTagManagerAsyncClient() - - # Initialize request argument(s) - request = datacatalog_v1.ListPolicyTagsRequest( - parent="parent_value", - ) - - # Make the request - page_result = client.list_policy_tags(request=request) - - # Handle the response - async for response in page_result: - print(response) - -# [END datacatalog_generated_datacatalog_v1_PolicyTagManager_ListPolicyTags_async] diff --git a/samples/generated_samples/datacatalog_generated_datacatalog_v1_policy_tag_manager_list_policy_tags_sync.py b/samples/generated_samples/datacatalog_generated_datacatalog_v1_policy_tag_manager_list_policy_tags_sync.py deleted file mode 100644 index 75d915df..00000000 --- a/samples/generated_samples/datacatalog_generated_datacatalog_v1_policy_tag_manager_list_policy_tags_sync.py +++ /dev/null @@ -1,46 +0,0 @@ -# -*- coding: utf-8 -*- -# Copyright 2020 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# -# Generated code. DO NOT EDIT! -# -# Snippet for ListPolicyTags -# NOTE: This snippet has been automatically generated for illustrative purposes only. -# It may require modifications to work in your environment. - -# To install the latest published package dependency, execute the following: -# python3 -m pip install google-cloud-datacatalog - - -# [START datacatalog_generated_datacatalog_v1_PolicyTagManager_ListPolicyTags_sync] -from google.cloud import datacatalog_v1 - - -def sample_list_policy_tags(): - # Create a client - client = datacatalog_v1.PolicyTagManagerClient() - - # Initialize request argument(s) - request = datacatalog_v1.ListPolicyTagsRequest( - parent="parent_value", - ) - - # Make the request - page_result = client.list_policy_tags(request=request) - - # Handle the response - for response in page_result: - print(response) - -# [END datacatalog_generated_datacatalog_v1_PolicyTagManager_ListPolicyTags_sync] diff --git a/samples/generated_samples/datacatalog_generated_datacatalog_v1_policy_tag_manager_list_taxonomies_async.py b/samples/generated_samples/datacatalog_generated_datacatalog_v1_policy_tag_manager_list_taxonomies_async.py deleted file mode 100644 index 33c9930d..00000000 --- a/samples/generated_samples/datacatalog_generated_datacatalog_v1_policy_tag_manager_list_taxonomies_async.py +++ /dev/null @@ -1,46 +0,0 @@ -# -*- coding: utf-8 -*- -# Copyright 2020 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# -# Generated code. DO NOT EDIT! -# -# Snippet for ListTaxonomies -# NOTE: This snippet has been automatically generated for illustrative purposes only. -# It may require modifications to work in your environment. - -# To install the latest published package dependency, execute the following: -# python3 -m pip install google-cloud-datacatalog - - -# [START datacatalog_generated_datacatalog_v1_PolicyTagManager_ListTaxonomies_async] -from google.cloud import datacatalog_v1 - - -async def sample_list_taxonomies(): - # Create a client - client = datacatalog_v1.PolicyTagManagerAsyncClient() - - # Initialize request argument(s) - request = datacatalog_v1.ListTaxonomiesRequest( - parent="parent_value", - ) - - # Make the request - page_result = client.list_taxonomies(request=request) - - # Handle the response - async for response in page_result: - print(response) - -# [END datacatalog_generated_datacatalog_v1_PolicyTagManager_ListTaxonomies_async] diff --git a/samples/generated_samples/datacatalog_generated_datacatalog_v1_policy_tag_manager_list_taxonomies_sync.py b/samples/generated_samples/datacatalog_generated_datacatalog_v1_policy_tag_manager_list_taxonomies_sync.py deleted file mode 100644 index a99ee774..00000000 --- a/samples/generated_samples/datacatalog_generated_datacatalog_v1_policy_tag_manager_list_taxonomies_sync.py +++ /dev/null @@ -1,46 +0,0 @@ -# -*- coding: utf-8 -*- -# Copyright 2020 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# -# Generated code. DO NOT EDIT! -# -# Snippet for ListTaxonomies -# NOTE: This snippet has been automatically generated for illustrative purposes only. -# It may require modifications to work in your environment. - -# To install the latest published package dependency, execute the following: -# python3 -m pip install google-cloud-datacatalog - - -# [START datacatalog_generated_datacatalog_v1_PolicyTagManager_ListTaxonomies_sync] -from google.cloud import datacatalog_v1 - - -def sample_list_taxonomies(): - # Create a client - client = datacatalog_v1.PolicyTagManagerClient() - - # Initialize request argument(s) - request = datacatalog_v1.ListTaxonomiesRequest( - parent="parent_value", - ) - - # Make the request - page_result = client.list_taxonomies(request=request) - - # Handle the response - for response in page_result: - print(response) - -# [END datacatalog_generated_datacatalog_v1_PolicyTagManager_ListTaxonomies_sync] diff --git a/samples/generated_samples/datacatalog_generated_datacatalog_v1_policy_tag_manager_serialization_export_taxonomies_async.py b/samples/generated_samples/datacatalog_generated_datacatalog_v1_policy_tag_manager_serialization_export_taxonomies_async.py deleted file mode 100644 index 5d6a7c6c..00000000 --- a/samples/generated_samples/datacatalog_generated_datacatalog_v1_policy_tag_manager_serialization_export_taxonomies_async.py +++ /dev/null @@ -1,47 +0,0 @@ -# -*- coding: utf-8 -*- -# Copyright 2020 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# -# Generated code. DO NOT EDIT! -# -# Snippet for ExportTaxonomies -# NOTE: This snippet has been automatically generated for illustrative purposes only. -# It may require modifications to work in your environment. - -# To install the latest published package dependency, execute the following: -# python3 -m pip install google-cloud-datacatalog - - -# [START datacatalog_generated_datacatalog_v1_PolicyTagManagerSerialization_ExportTaxonomies_async] -from google.cloud import datacatalog_v1 - - -async def sample_export_taxonomies(): - # Create a client - client = datacatalog_v1.PolicyTagManagerSerializationAsyncClient() - - # Initialize request argument(s) - request = datacatalog_v1.ExportTaxonomiesRequest( - serialized_taxonomies=True, - parent="parent_value", - taxonomies=['taxonomies_value_1', 'taxonomies_value_2'], - ) - - # Make the request - response = await client.export_taxonomies(request=request) - - # Handle the response - print(response) - -# [END datacatalog_generated_datacatalog_v1_PolicyTagManagerSerialization_ExportTaxonomies_async] diff --git a/samples/generated_samples/datacatalog_generated_datacatalog_v1_policy_tag_manager_serialization_export_taxonomies_sync.py b/samples/generated_samples/datacatalog_generated_datacatalog_v1_policy_tag_manager_serialization_export_taxonomies_sync.py deleted file mode 100644 index f3fbeca4..00000000 --- a/samples/generated_samples/datacatalog_generated_datacatalog_v1_policy_tag_manager_serialization_export_taxonomies_sync.py +++ /dev/null @@ -1,47 +0,0 @@ -# -*- coding: utf-8 -*- -# Copyright 2020 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# -# Generated code. DO NOT EDIT! -# -# Snippet for ExportTaxonomies -# NOTE: This snippet has been automatically generated for illustrative purposes only. -# It may require modifications to work in your environment. - -# To install the latest published package dependency, execute the following: -# python3 -m pip install google-cloud-datacatalog - - -# [START datacatalog_generated_datacatalog_v1_PolicyTagManagerSerialization_ExportTaxonomies_sync] -from google.cloud import datacatalog_v1 - - -def sample_export_taxonomies(): - # Create a client - client = datacatalog_v1.PolicyTagManagerSerializationClient() - - # Initialize request argument(s) - request = datacatalog_v1.ExportTaxonomiesRequest( - serialized_taxonomies=True, - parent="parent_value", - taxonomies=['taxonomies_value_1', 'taxonomies_value_2'], - ) - - # Make the request - response = client.export_taxonomies(request=request) - - # Handle the response - print(response) - -# [END datacatalog_generated_datacatalog_v1_PolicyTagManagerSerialization_ExportTaxonomies_sync] diff --git a/samples/generated_samples/datacatalog_generated_datacatalog_v1_policy_tag_manager_serialization_import_taxonomies_async.py b/samples/generated_samples/datacatalog_generated_datacatalog_v1_policy_tag_manager_serialization_import_taxonomies_async.py deleted file mode 100644 index 1569a40c..00000000 --- a/samples/generated_samples/datacatalog_generated_datacatalog_v1_policy_tag_manager_serialization_import_taxonomies_async.py +++ /dev/null @@ -1,49 +0,0 @@ -# -*- coding: utf-8 -*- -# Copyright 2020 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# -# Generated code. DO NOT EDIT! -# -# Snippet for ImportTaxonomies -# NOTE: This snippet has been automatically generated for illustrative purposes only. -# It may require modifications to work in your environment. - -# To install the latest published package dependency, execute the following: -# python3 -m pip install google-cloud-datacatalog - - -# [START datacatalog_generated_datacatalog_v1_PolicyTagManagerSerialization_ImportTaxonomies_async] -from google.cloud import datacatalog_v1 - - -async def sample_import_taxonomies(): - # Create a client - client = datacatalog_v1.PolicyTagManagerSerializationAsyncClient() - - # Initialize request argument(s) - inline_source = datacatalog_v1.InlineSource() - inline_source.taxonomies.display_name = "display_name_value" - - request = datacatalog_v1.ImportTaxonomiesRequest( - inline_source=inline_source, - parent="parent_value", - ) - - # Make the request - response = await client.import_taxonomies(request=request) - - # Handle the response - print(response) - -# [END datacatalog_generated_datacatalog_v1_PolicyTagManagerSerialization_ImportTaxonomies_async] diff --git a/samples/generated_samples/datacatalog_generated_datacatalog_v1_policy_tag_manager_serialization_import_taxonomies_sync.py b/samples/generated_samples/datacatalog_generated_datacatalog_v1_policy_tag_manager_serialization_import_taxonomies_sync.py deleted file mode 100644 index 7fbf89c1..00000000 --- a/samples/generated_samples/datacatalog_generated_datacatalog_v1_policy_tag_manager_serialization_import_taxonomies_sync.py +++ /dev/null @@ -1,49 +0,0 @@ -# -*- coding: utf-8 -*- -# Copyright 2020 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# -# Generated code. DO NOT EDIT! -# -# Snippet for ImportTaxonomies -# NOTE: This snippet has been automatically generated for illustrative purposes only. -# It may require modifications to work in your environment. - -# To install the latest published package dependency, execute the following: -# python3 -m pip install google-cloud-datacatalog - - -# [START datacatalog_generated_datacatalog_v1_PolicyTagManagerSerialization_ImportTaxonomies_sync] -from google.cloud import datacatalog_v1 - - -def sample_import_taxonomies(): - # Create a client - client = datacatalog_v1.PolicyTagManagerSerializationClient() - - # Initialize request argument(s) - inline_source = datacatalog_v1.InlineSource() - inline_source.taxonomies.display_name = "display_name_value" - - request = datacatalog_v1.ImportTaxonomiesRequest( - inline_source=inline_source, - parent="parent_value", - ) - - # Make the request - response = client.import_taxonomies(request=request) - - # Handle the response - print(response) - -# [END datacatalog_generated_datacatalog_v1_PolicyTagManagerSerialization_ImportTaxonomies_sync] diff --git a/samples/generated_samples/datacatalog_generated_datacatalog_v1_policy_tag_manager_serialization_replace_taxonomy_async.py b/samples/generated_samples/datacatalog_generated_datacatalog_v1_policy_tag_manager_serialization_replace_taxonomy_async.py deleted file mode 100644 index 176dbb5d..00000000 --- a/samples/generated_samples/datacatalog_generated_datacatalog_v1_policy_tag_manager_serialization_replace_taxonomy_async.py +++ /dev/null @@ -1,49 +0,0 @@ -# -*- coding: utf-8 -*- -# Copyright 2020 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# -# Generated code. DO NOT EDIT! -# -# Snippet for ReplaceTaxonomy -# NOTE: This snippet has been automatically generated for illustrative purposes only. -# It may require modifications to work in your environment. - -# To install the latest published package dependency, execute the following: -# python3 -m pip install google-cloud-datacatalog - - -# [START datacatalog_generated_datacatalog_v1_PolicyTagManagerSerialization_ReplaceTaxonomy_async] -from google.cloud import datacatalog_v1 - - -async def sample_replace_taxonomy(): - # Create a client - client = datacatalog_v1.PolicyTagManagerSerializationAsyncClient() - - # Initialize request argument(s) - serialized_taxonomy = datacatalog_v1.SerializedTaxonomy() - serialized_taxonomy.display_name = "display_name_value" - - request = datacatalog_v1.ReplaceTaxonomyRequest( - name="name_value", - serialized_taxonomy=serialized_taxonomy, - ) - - # Make the request - response = await client.replace_taxonomy(request=request) - - # Handle the response - print(response) - -# [END datacatalog_generated_datacatalog_v1_PolicyTagManagerSerialization_ReplaceTaxonomy_async] diff --git a/samples/generated_samples/datacatalog_generated_datacatalog_v1_policy_tag_manager_serialization_replace_taxonomy_sync.py b/samples/generated_samples/datacatalog_generated_datacatalog_v1_policy_tag_manager_serialization_replace_taxonomy_sync.py deleted file mode 100644 index 1c3d09a3..00000000 --- a/samples/generated_samples/datacatalog_generated_datacatalog_v1_policy_tag_manager_serialization_replace_taxonomy_sync.py +++ /dev/null @@ -1,49 +0,0 @@ -# -*- coding: utf-8 -*- -# Copyright 2020 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# -# Generated code. DO NOT EDIT! -# -# Snippet for ReplaceTaxonomy -# NOTE: This snippet has been automatically generated for illustrative purposes only. -# It may require modifications to work in your environment. - -# To install the latest published package dependency, execute the following: -# python3 -m pip install google-cloud-datacatalog - - -# [START datacatalog_generated_datacatalog_v1_PolicyTagManagerSerialization_ReplaceTaxonomy_sync] -from google.cloud import datacatalog_v1 - - -def sample_replace_taxonomy(): - # Create a client - client = datacatalog_v1.PolicyTagManagerSerializationClient() - - # Initialize request argument(s) - serialized_taxonomy = datacatalog_v1.SerializedTaxonomy() - serialized_taxonomy.display_name = "display_name_value" - - request = datacatalog_v1.ReplaceTaxonomyRequest( - name="name_value", - serialized_taxonomy=serialized_taxonomy, - ) - - # Make the request - response = client.replace_taxonomy(request=request) - - # Handle the response - print(response) - -# [END datacatalog_generated_datacatalog_v1_PolicyTagManagerSerialization_ReplaceTaxonomy_sync] diff --git a/samples/generated_samples/datacatalog_generated_datacatalog_v1_policy_tag_manager_set_iam_policy_async.py b/samples/generated_samples/datacatalog_generated_datacatalog_v1_policy_tag_manager_set_iam_policy_async.py deleted file mode 100644 index 3e56f357..00000000 --- a/samples/generated_samples/datacatalog_generated_datacatalog_v1_policy_tag_manager_set_iam_policy_async.py +++ /dev/null @@ -1,45 +0,0 @@ -# -*- coding: utf-8 -*- -# Copyright 2020 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# -# Generated code. DO NOT EDIT! -# -# Snippet for SetIamPolicy -# NOTE: This snippet has been automatically generated for illustrative purposes only. -# It may require modifications to work in your environment. - -# To install the latest published package dependency, execute the following: -# python3 -m pip install google-cloud-datacatalog - - -# [START datacatalog_generated_datacatalog_v1_PolicyTagManager_SetIamPolicy_async] -from google.cloud import datacatalog_v1 - - -async def sample_set_iam_policy(): - # Create a client - client = datacatalog_v1.PolicyTagManagerAsyncClient() - - # Initialize request argument(s) - request = datacatalog_v1.SetIamPolicyRequest( - resource="resource_value", - ) - - # Make the request - response = await client.set_iam_policy(request=request) - - # Handle the response - print(response) - -# [END datacatalog_generated_datacatalog_v1_PolicyTagManager_SetIamPolicy_async] diff --git a/samples/generated_samples/datacatalog_generated_datacatalog_v1_policy_tag_manager_set_iam_policy_sync.py b/samples/generated_samples/datacatalog_generated_datacatalog_v1_policy_tag_manager_set_iam_policy_sync.py deleted file mode 100644 index 381804fb..00000000 --- a/samples/generated_samples/datacatalog_generated_datacatalog_v1_policy_tag_manager_set_iam_policy_sync.py +++ /dev/null @@ -1,45 +0,0 @@ -# -*- coding: utf-8 -*- -# Copyright 2020 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# -# Generated code. DO NOT EDIT! -# -# Snippet for SetIamPolicy -# NOTE: This snippet has been automatically generated for illustrative purposes only. -# It may require modifications to work in your environment. - -# To install the latest published package dependency, execute the following: -# python3 -m pip install google-cloud-datacatalog - - -# [START datacatalog_generated_datacatalog_v1_PolicyTagManager_SetIamPolicy_sync] -from google.cloud import datacatalog_v1 - - -def sample_set_iam_policy(): - # Create a client - client = datacatalog_v1.PolicyTagManagerClient() - - # Initialize request argument(s) - request = datacatalog_v1.SetIamPolicyRequest( - resource="resource_value", - ) - - # Make the request - response = client.set_iam_policy(request=request) - - # Handle the response - print(response) - -# [END datacatalog_generated_datacatalog_v1_PolicyTagManager_SetIamPolicy_sync] diff --git a/samples/generated_samples/datacatalog_generated_datacatalog_v1_policy_tag_manager_test_iam_permissions_async.py b/samples/generated_samples/datacatalog_generated_datacatalog_v1_policy_tag_manager_test_iam_permissions_async.py deleted file mode 100644 index b9a6b373..00000000 --- a/samples/generated_samples/datacatalog_generated_datacatalog_v1_policy_tag_manager_test_iam_permissions_async.py +++ /dev/null @@ -1,46 +0,0 @@ -# -*- coding: utf-8 -*- -# Copyright 2020 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# -# Generated code. DO NOT EDIT! -# -# Snippet for TestIamPermissions -# NOTE: This snippet has been automatically generated for illustrative purposes only. -# It may require modifications to work in your environment. - -# To install the latest published package dependency, execute the following: -# python3 -m pip install google-cloud-datacatalog - - -# [START datacatalog_generated_datacatalog_v1_PolicyTagManager_TestIamPermissions_async] -from google.cloud import datacatalog_v1 - - -async def sample_test_iam_permissions(): - # Create a client - client = datacatalog_v1.PolicyTagManagerAsyncClient() - - # Initialize request argument(s) - request = datacatalog_v1.TestIamPermissionsRequest( - resource="resource_value", - permissions=['permissions_value_1', 'permissions_value_2'], - ) - - # Make the request - response = await client.test_iam_permissions(request=request) - - # Handle the response - print(response) - -# [END datacatalog_generated_datacatalog_v1_PolicyTagManager_TestIamPermissions_async] diff --git a/samples/generated_samples/datacatalog_generated_datacatalog_v1_policy_tag_manager_test_iam_permissions_sync.py b/samples/generated_samples/datacatalog_generated_datacatalog_v1_policy_tag_manager_test_iam_permissions_sync.py deleted file mode 100644 index a12003bb..00000000 --- a/samples/generated_samples/datacatalog_generated_datacatalog_v1_policy_tag_manager_test_iam_permissions_sync.py +++ /dev/null @@ -1,46 +0,0 @@ -# -*- coding: utf-8 -*- -# Copyright 2020 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# -# Generated code. DO NOT EDIT! -# -# Snippet for TestIamPermissions -# NOTE: This snippet has been automatically generated for illustrative purposes only. -# It may require modifications to work in your environment. - -# To install the latest published package dependency, execute the following: -# python3 -m pip install google-cloud-datacatalog - - -# [START datacatalog_generated_datacatalog_v1_PolicyTagManager_TestIamPermissions_sync] -from google.cloud import datacatalog_v1 - - -def sample_test_iam_permissions(): - # Create a client - client = datacatalog_v1.PolicyTagManagerClient() - - # Initialize request argument(s) - request = datacatalog_v1.TestIamPermissionsRequest( - resource="resource_value", - permissions=['permissions_value_1', 'permissions_value_2'], - ) - - # Make the request - response = client.test_iam_permissions(request=request) - - # Handle the response - print(response) - -# [END datacatalog_generated_datacatalog_v1_PolicyTagManager_TestIamPermissions_sync] diff --git a/samples/generated_samples/datacatalog_generated_datacatalog_v1_policy_tag_manager_update_policy_tag_async.py b/samples/generated_samples/datacatalog_generated_datacatalog_v1_policy_tag_manager_update_policy_tag_async.py deleted file mode 100644 index 24d4c508..00000000 --- a/samples/generated_samples/datacatalog_generated_datacatalog_v1_policy_tag_manager_update_policy_tag_async.py +++ /dev/null @@ -1,44 +0,0 @@ -# -*- coding: utf-8 -*- -# Copyright 2020 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# -# Generated code. DO NOT EDIT! -# -# Snippet for UpdatePolicyTag -# NOTE: This snippet has been automatically generated for illustrative purposes only. -# It may require modifications to work in your environment. - -# To install the latest published package dependency, execute the following: -# python3 -m pip install google-cloud-datacatalog - - -# [START datacatalog_generated_datacatalog_v1_PolicyTagManager_UpdatePolicyTag_async] -from google.cloud import datacatalog_v1 - - -async def sample_update_policy_tag(): - # Create a client - client = datacatalog_v1.PolicyTagManagerAsyncClient() - - # Initialize request argument(s) - request = datacatalog_v1.UpdatePolicyTagRequest( - ) - - # Make the request - response = await client.update_policy_tag(request=request) - - # Handle the response - print(response) - -# [END datacatalog_generated_datacatalog_v1_PolicyTagManager_UpdatePolicyTag_async] diff --git a/samples/generated_samples/datacatalog_generated_datacatalog_v1_policy_tag_manager_update_policy_tag_sync.py b/samples/generated_samples/datacatalog_generated_datacatalog_v1_policy_tag_manager_update_policy_tag_sync.py deleted file mode 100644 index 5340ea8c..00000000 --- a/samples/generated_samples/datacatalog_generated_datacatalog_v1_policy_tag_manager_update_policy_tag_sync.py +++ /dev/null @@ -1,44 +0,0 @@ -# -*- coding: utf-8 -*- -# Copyright 2020 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# -# Generated code. DO NOT EDIT! -# -# Snippet for UpdatePolicyTag -# NOTE: This snippet has been automatically generated for illustrative purposes only. -# It may require modifications to work in your environment. - -# To install the latest published package dependency, execute the following: -# python3 -m pip install google-cloud-datacatalog - - -# [START datacatalog_generated_datacatalog_v1_PolicyTagManager_UpdatePolicyTag_sync] -from google.cloud import datacatalog_v1 - - -def sample_update_policy_tag(): - # Create a client - client = datacatalog_v1.PolicyTagManagerClient() - - # Initialize request argument(s) - request = datacatalog_v1.UpdatePolicyTagRequest( - ) - - # Make the request - response = client.update_policy_tag(request=request) - - # Handle the response - print(response) - -# [END datacatalog_generated_datacatalog_v1_PolicyTagManager_UpdatePolicyTag_sync] diff --git a/samples/generated_samples/datacatalog_generated_datacatalog_v1_policy_tag_manager_update_taxonomy_async.py b/samples/generated_samples/datacatalog_generated_datacatalog_v1_policy_tag_manager_update_taxonomy_async.py deleted file mode 100644 index 5ca81c46..00000000 --- a/samples/generated_samples/datacatalog_generated_datacatalog_v1_policy_tag_manager_update_taxonomy_async.py +++ /dev/null @@ -1,44 +0,0 @@ -# -*- coding: utf-8 -*- -# Copyright 2020 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# -# Generated code. DO NOT EDIT! -# -# Snippet for UpdateTaxonomy -# NOTE: This snippet has been automatically generated for illustrative purposes only. -# It may require modifications to work in your environment. - -# To install the latest published package dependency, execute the following: -# python3 -m pip install google-cloud-datacatalog - - -# [START datacatalog_generated_datacatalog_v1_PolicyTagManager_UpdateTaxonomy_async] -from google.cloud import datacatalog_v1 - - -async def sample_update_taxonomy(): - # Create a client - client = datacatalog_v1.PolicyTagManagerAsyncClient() - - # Initialize request argument(s) - request = datacatalog_v1.UpdateTaxonomyRequest( - ) - - # Make the request - response = await client.update_taxonomy(request=request) - - # Handle the response - print(response) - -# [END datacatalog_generated_datacatalog_v1_PolicyTagManager_UpdateTaxonomy_async] diff --git a/samples/generated_samples/datacatalog_generated_datacatalog_v1_policy_tag_manager_update_taxonomy_sync.py b/samples/generated_samples/datacatalog_generated_datacatalog_v1_policy_tag_manager_update_taxonomy_sync.py deleted file mode 100644 index 93bf13fb..00000000 --- a/samples/generated_samples/datacatalog_generated_datacatalog_v1_policy_tag_manager_update_taxonomy_sync.py +++ /dev/null @@ -1,44 +0,0 @@ -# -*- coding: utf-8 -*- -# Copyright 2020 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# -# Generated code. DO NOT EDIT! -# -# Snippet for UpdateTaxonomy -# NOTE: This snippet has been automatically generated for illustrative purposes only. -# It may require modifications to work in your environment. - -# To install the latest published package dependency, execute the following: -# python3 -m pip install google-cloud-datacatalog - - -# [START datacatalog_generated_datacatalog_v1_PolicyTagManager_UpdateTaxonomy_sync] -from google.cloud import datacatalog_v1 - - -def sample_update_taxonomy(): - # Create a client - client = datacatalog_v1.PolicyTagManagerClient() - - # Initialize request argument(s) - request = datacatalog_v1.UpdateTaxonomyRequest( - ) - - # Make the request - response = client.update_taxonomy(request=request) - - # Handle the response - print(response) - -# [END datacatalog_generated_datacatalog_v1_PolicyTagManager_UpdateTaxonomy_sync] diff --git a/samples/generated_samples/datacatalog_generated_datacatalog_v1beta1_data_catalog_create_entry_async.py b/samples/generated_samples/datacatalog_generated_datacatalog_v1beta1_data_catalog_create_entry_async.py deleted file mode 100644 index e23bd4df..00000000 --- a/samples/generated_samples/datacatalog_generated_datacatalog_v1beta1_data_catalog_create_entry_async.py +++ /dev/null @@ -1,52 +0,0 @@ -# -*- coding: utf-8 -*- -# Copyright 2020 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# -# Generated code. DO NOT EDIT! -# -# Snippet for CreateEntry -# NOTE: This snippet has been automatically generated for illustrative purposes only. -# It may require modifications to work in your environment. - -# To install the latest published package dependency, execute the following: -# python3 -m pip install google-cloud-datacatalog - - -# [START datacatalog_generated_datacatalog_v1beta1_DataCatalog_CreateEntry_async] -from google.cloud import datacatalog_v1beta1 - - -async def sample_create_entry(): - # Create a client - client = datacatalog_v1beta1.DataCatalogAsyncClient() - - # Initialize request argument(s) - entry = datacatalog_v1beta1.Entry() - entry.type_ = "FILESET" - entry.integrated_system = "CLOUD_PUBSUB" - entry.gcs_fileset_spec.file_patterns = ['file_patterns_value_1', 'file_patterns_value_2'] - - request = datacatalog_v1beta1.CreateEntryRequest( - parent="parent_value", - entry_id="entry_id_value", - entry=entry, - ) - - # Make the request - response = await client.create_entry(request=request) - - # Handle the response - print(response) - -# [END datacatalog_generated_datacatalog_v1beta1_DataCatalog_CreateEntry_async] diff --git a/samples/generated_samples/datacatalog_generated_datacatalog_v1beta1_data_catalog_create_entry_group_async.py b/samples/generated_samples/datacatalog_generated_datacatalog_v1beta1_data_catalog_create_entry_group_async.py deleted file mode 100644 index 8e83df19..00000000 --- a/samples/generated_samples/datacatalog_generated_datacatalog_v1beta1_data_catalog_create_entry_group_async.py +++ /dev/null @@ -1,46 +0,0 @@ -# -*- coding: utf-8 -*- -# Copyright 2020 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# -# Generated code. DO NOT EDIT! -# -# Snippet for CreateEntryGroup -# NOTE: This snippet has been automatically generated for illustrative purposes only. -# It may require modifications to work in your environment. - -# To install the latest published package dependency, execute the following: -# python3 -m pip install google-cloud-datacatalog - - -# [START datacatalog_generated_datacatalog_v1beta1_DataCatalog_CreateEntryGroup_async] -from google.cloud import datacatalog_v1beta1 - - -async def sample_create_entry_group(): - # Create a client - client = datacatalog_v1beta1.DataCatalogAsyncClient() - - # Initialize request argument(s) - request = datacatalog_v1beta1.CreateEntryGroupRequest( - parent="parent_value", - entry_group_id="entry_group_id_value", - ) - - # Make the request - response = await client.create_entry_group(request=request) - - # Handle the response - print(response) - -# [END datacatalog_generated_datacatalog_v1beta1_DataCatalog_CreateEntryGroup_async] diff --git a/samples/generated_samples/datacatalog_generated_datacatalog_v1beta1_data_catalog_create_entry_group_sync.py b/samples/generated_samples/datacatalog_generated_datacatalog_v1beta1_data_catalog_create_entry_group_sync.py deleted file mode 100644 index b8f44903..00000000 --- a/samples/generated_samples/datacatalog_generated_datacatalog_v1beta1_data_catalog_create_entry_group_sync.py +++ /dev/null @@ -1,46 +0,0 @@ -# -*- coding: utf-8 -*- -# Copyright 2020 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# -# Generated code. DO NOT EDIT! -# -# Snippet for CreateEntryGroup -# NOTE: This snippet has been automatically generated for illustrative purposes only. -# It may require modifications to work in your environment. - -# To install the latest published package dependency, execute the following: -# python3 -m pip install google-cloud-datacatalog - - -# [START datacatalog_generated_datacatalog_v1beta1_DataCatalog_CreateEntryGroup_sync] -from google.cloud import datacatalog_v1beta1 - - -def sample_create_entry_group(): - # Create a client - client = datacatalog_v1beta1.DataCatalogClient() - - # Initialize request argument(s) - request = datacatalog_v1beta1.CreateEntryGroupRequest( - parent="parent_value", - entry_group_id="entry_group_id_value", - ) - - # Make the request - response = client.create_entry_group(request=request) - - # Handle the response - print(response) - -# [END datacatalog_generated_datacatalog_v1beta1_DataCatalog_CreateEntryGroup_sync] diff --git a/samples/generated_samples/datacatalog_generated_datacatalog_v1beta1_data_catalog_create_entry_sync.py b/samples/generated_samples/datacatalog_generated_datacatalog_v1beta1_data_catalog_create_entry_sync.py deleted file mode 100644 index 90550e40..00000000 --- a/samples/generated_samples/datacatalog_generated_datacatalog_v1beta1_data_catalog_create_entry_sync.py +++ /dev/null @@ -1,52 +0,0 @@ -# -*- coding: utf-8 -*- -# Copyright 2020 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# -# Generated code. DO NOT EDIT! -# -# Snippet for CreateEntry -# NOTE: This snippet has been automatically generated for illustrative purposes only. -# It may require modifications to work in your environment. - -# To install the latest published package dependency, execute the following: -# python3 -m pip install google-cloud-datacatalog - - -# [START datacatalog_generated_datacatalog_v1beta1_DataCatalog_CreateEntry_sync] -from google.cloud import datacatalog_v1beta1 - - -def sample_create_entry(): - # Create a client - client = datacatalog_v1beta1.DataCatalogClient() - - # Initialize request argument(s) - entry = datacatalog_v1beta1.Entry() - entry.type_ = "FILESET" - entry.integrated_system = "CLOUD_PUBSUB" - entry.gcs_fileset_spec.file_patterns = ['file_patterns_value_1', 'file_patterns_value_2'] - - request = datacatalog_v1beta1.CreateEntryRequest( - parent="parent_value", - entry_id="entry_id_value", - entry=entry, - ) - - # Make the request - response = client.create_entry(request=request) - - # Handle the response - print(response) - -# [END datacatalog_generated_datacatalog_v1beta1_DataCatalog_CreateEntry_sync] diff --git a/samples/generated_samples/datacatalog_generated_datacatalog_v1beta1_data_catalog_create_tag_async.py b/samples/generated_samples/datacatalog_generated_datacatalog_v1beta1_data_catalog_create_tag_async.py deleted file mode 100644 index b5fe5f3f..00000000 --- a/samples/generated_samples/datacatalog_generated_datacatalog_v1beta1_data_catalog_create_tag_async.py +++ /dev/null @@ -1,50 +0,0 @@ -# -*- coding: utf-8 -*- -# Copyright 2020 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# -# Generated code. DO NOT EDIT! -# -# Snippet for CreateTag -# NOTE: This snippet has been automatically generated for illustrative purposes only. -# It may require modifications to work in your environment. - -# To install the latest published package dependency, execute the following: -# python3 -m pip install google-cloud-datacatalog - - -# [START datacatalog_generated_datacatalog_v1beta1_DataCatalog_CreateTag_async] -from google.cloud import datacatalog_v1beta1 - - -async def sample_create_tag(): - # Create a client - client = datacatalog_v1beta1.DataCatalogAsyncClient() - - # Initialize request argument(s) - tag = datacatalog_v1beta1.Tag() - tag.column = "column_value" - tag.template = "template_value" - - request = datacatalog_v1beta1.CreateTagRequest( - parent="parent_value", - tag=tag, - ) - - # Make the request - response = await client.create_tag(request=request) - - # Handle the response - print(response) - -# [END datacatalog_generated_datacatalog_v1beta1_DataCatalog_CreateTag_async] diff --git a/samples/generated_samples/datacatalog_generated_datacatalog_v1beta1_data_catalog_create_tag_sync.py b/samples/generated_samples/datacatalog_generated_datacatalog_v1beta1_data_catalog_create_tag_sync.py deleted file mode 100644 index dea14dea..00000000 --- a/samples/generated_samples/datacatalog_generated_datacatalog_v1beta1_data_catalog_create_tag_sync.py +++ /dev/null @@ -1,50 +0,0 @@ -# -*- coding: utf-8 -*- -# Copyright 2020 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# -# Generated code. DO NOT EDIT! -# -# Snippet for CreateTag -# NOTE: This snippet has been automatically generated for illustrative purposes only. -# It may require modifications to work in your environment. - -# To install the latest published package dependency, execute the following: -# python3 -m pip install google-cloud-datacatalog - - -# [START datacatalog_generated_datacatalog_v1beta1_DataCatalog_CreateTag_sync] -from google.cloud import datacatalog_v1beta1 - - -def sample_create_tag(): - # Create a client - client = datacatalog_v1beta1.DataCatalogClient() - - # Initialize request argument(s) - tag = datacatalog_v1beta1.Tag() - tag.column = "column_value" - tag.template = "template_value" - - request = datacatalog_v1beta1.CreateTagRequest( - parent="parent_value", - tag=tag, - ) - - # Make the request - response = client.create_tag(request=request) - - # Handle the response - print(response) - -# [END datacatalog_generated_datacatalog_v1beta1_DataCatalog_CreateTag_sync] diff --git a/samples/generated_samples/datacatalog_generated_datacatalog_v1beta1_data_catalog_create_tag_template_async.py b/samples/generated_samples/datacatalog_generated_datacatalog_v1beta1_data_catalog_create_tag_template_async.py deleted file mode 100644 index ee4c9e5a..00000000 --- a/samples/generated_samples/datacatalog_generated_datacatalog_v1beta1_data_catalog_create_tag_template_async.py +++ /dev/null @@ -1,46 +0,0 @@ -# -*- coding: utf-8 -*- -# Copyright 2020 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# -# Generated code. DO NOT EDIT! -# -# Snippet for CreateTagTemplate -# NOTE: This snippet has been automatically generated for illustrative purposes only. -# It may require modifications to work in your environment. - -# To install the latest published package dependency, execute the following: -# python3 -m pip install google-cloud-datacatalog - - -# [START datacatalog_generated_datacatalog_v1beta1_DataCatalog_CreateTagTemplate_async] -from google.cloud import datacatalog_v1beta1 - - -async def sample_create_tag_template(): - # Create a client - client = datacatalog_v1beta1.DataCatalogAsyncClient() - - # Initialize request argument(s) - request = datacatalog_v1beta1.CreateTagTemplateRequest( - parent="parent_value", - tag_template_id="tag_template_id_value", - ) - - # Make the request - response = await client.create_tag_template(request=request) - - # Handle the response - print(response) - -# [END datacatalog_generated_datacatalog_v1beta1_DataCatalog_CreateTagTemplate_async] diff --git a/samples/generated_samples/datacatalog_generated_datacatalog_v1beta1_data_catalog_create_tag_template_field_async.py b/samples/generated_samples/datacatalog_generated_datacatalog_v1beta1_data_catalog_create_tag_template_field_async.py deleted file mode 100644 index ccfe208c..00000000 --- a/samples/generated_samples/datacatalog_generated_datacatalog_v1beta1_data_catalog_create_tag_template_field_async.py +++ /dev/null @@ -1,50 +0,0 @@ -# -*- coding: utf-8 -*- -# Copyright 2020 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# -# Generated code. DO NOT EDIT! -# -# Snippet for CreateTagTemplateField -# NOTE: This snippet has been automatically generated for illustrative purposes only. -# It may require modifications to work in your environment. - -# To install the latest published package dependency, execute the following: -# python3 -m pip install google-cloud-datacatalog - - -# [START datacatalog_generated_datacatalog_v1beta1_DataCatalog_CreateTagTemplateField_async] -from google.cloud import datacatalog_v1beta1 - - -async def sample_create_tag_template_field(): - # Create a client - client = datacatalog_v1beta1.DataCatalogAsyncClient() - - # Initialize request argument(s) - tag_template_field = datacatalog_v1beta1.TagTemplateField() - tag_template_field.type_.primitive_type = "TIMESTAMP" - - request = datacatalog_v1beta1.CreateTagTemplateFieldRequest( - parent="parent_value", - tag_template_field_id="tag_template_field_id_value", - tag_template_field=tag_template_field, - ) - - # Make the request - response = await client.create_tag_template_field(request=request) - - # Handle the response - print(response) - -# [END datacatalog_generated_datacatalog_v1beta1_DataCatalog_CreateTagTemplateField_async] diff --git a/samples/generated_samples/datacatalog_generated_datacatalog_v1beta1_data_catalog_create_tag_template_field_sync.py b/samples/generated_samples/datacatalog_generated_datacatalog_v1beta1_data_catalog_create_tag_template_field_sync.py deleted file mode 100644 index 47ea8f96..00000000 --- a/samples/generated_samples/datacatalog_generated_datacatalog_v1beta1_data_catalog_create_tag_template_field_sync.py +++ /dev/null @@ -1,50 +0,0 @@ -# -*- coding: utf-8 -*- -# Copyright 2020 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# -# Generated code. DO NOT EDIT! -# -# Snippet for CreateTagTemplateField -# NOTE: This snippet has been automatically generated for illustrative purposes only. -# It may require modifications to work in your environment. - -# To install the latest published package dependency, execute the following: -# python3 -m pip install google-cloud-datacatalog - - -# [START datacatalog_generated_datacatalog_v1beta1_DataCatalog_CreateTagTemplateField_sync] -from google.cloud import datacatalog_v1beta1 - - -def sample_create_tag_template_field(): - # Create a client - client = datacatalog_v1beta1.DataCatalogClient() - - # Initialize request argument(s) - tag_template_field = datacatalog_v1beta1.TagTemplateField() - tag_template_field.type_.primitive_type = "TIMESTAMP" - - request = datacatalog_v1beta1.CreateTagTemplateFieldRequest( - parent="parent_value", - tag_template_field_id="tag_template_field_id_value", - tag_template_field=tag_template_field, - ) - - # Make the request - response = client.create_tag_template_field(request=request) - - # Handle the response - print(response) - -# [END datacatalog_generated_datacatalog_v1beta1_DataCatalog_CreateTagTemplateField_sync] diff --git a/samples/generated_samples/datacatalog_generated_datacatalog_v1beta1_data_catalog_create_tag_template_sync.py b/samples/generated_samples/datacatalog_generated_datacatalog_v1beta1_data_catalog_create_tag_template_sync.py deleted file mode 100644 index 69dae47a..00000000 --- a/samples/generated_samples/datacatalog_generated_datacatalog_v1beta1_data_catalog_create_tag_template_sync.py +++ /dev/null @@ -1,46 +0,0 @@ -# -*- coding: utf-8 -*- -# Copyright 2020 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# -# Generated code. DO NOT EDIT! -# -# Snippet for CreateTagTemplate -# NOTE: This snippet has been automatically generated for illustrative purposes only. -# It may require modifications to work in your environment. - -# To install the latest published package dependency, execute the following: -# python3 -m pip install google-cloud-datacatalog - - -# [START datacatalog_generated_datacatalog_v1beta1_DataCatalog_CreateTagTemplate_sync] -from google.cloud import datacatalog_v1beta1 - - -def sample_create_tag_template(): - # Create a client - client = datacatalog_v1beta1.DataCatalogClient() - - # Initialize request argument(s) - request = datacatalog_v1beta1.CreateTagTemplateRequest( - parent="parent_value", - tag_template_id="tag_template_id_value", - ) - - # Make the request - response = client.create_tag_template(request=request) - - # Handle the response - print(response) - -# [END datacatalog_generated_datacatalog_v1beta1_DataCatalog_CreateTagTemplate_sync] diff --git a/samples/generated_samples/datacatalog_generated_datacatalog_v1beta1_data_catalog_delete_entry_async.py b/samples/generated_samples/datacatalog_generated_datacatalog_v1beta1_data_catalog_delete_entry_async.py deleted file mode 100644 index c4324e66..00000000 --- a/samples/generated_samples/datacatalog_generated_datacatalog_v1beta1_data_catalog_delete_entry_async.py +++ /dev/null @@ -1,43 +0,0 @@ -# -*- coding: utf-8 -*- -# Copyright 2020 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# -# Generated code. DO NOT EDIT! -# -# Snippet for DeleteEntry -# NOTE: This snippet has been automatically generated for illustrative purposes only. -# It may require modifications to work in your environment. - -# To install the latest published package dependency, execute the following: -# python3 -m pip install google-cloud-datacatalog - - -# [START datacatalog_generated_datacatalog_v1beta1_DataCatalog_DeleteEntry_async] -from google.cloud import datacatalog_v1beta1 - - -async def sample_delete_entry(): - # Create a client - client = datacatalog_v1beta1.DataCatalogAsyncClient() - - # Initialize request argument(s) - request = datacatalog_v1beta1.DeleteEntryRequest( - name="name_value", - ) - - # Make the request - await client.delete_entry(request=request) - - -# [END datacatalog_generated_datacatalog_v1beta1_DataCatalog_DeleteEntry_async] diff --git a/samples/generated_samples/datacatalog_generated_datacatalog_v1beta1_data_catalog_delete_entry_group_async.py b/samples/generated_samples/datacatalog_generated_datacatalog_v1beta1_data_catalog_delete_entry_group_async.py deleted file mode 100644 index 4e52d98c..00000000 --- a/samples/generated_samples/datacatalog_generated_datacatalog_v1beta1_data_catalog_delete_entry_group_async.py +++ /dev/null @@ -1,43 +0,0 @@ -# -*- coding: utf-8 -*- -# Copyright 2020 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# -# Generated code. DO NOT EDIT! -# -# Snippet for DeleteEntryGroup -# NOTE: This snippet has been automatically generated for illustrative purposes only. -# It may require modifications to work in your environment. - -# To install the latest published package dependency, execute the following: -# python3 -m pip install google-cloud-datacatalog - - -# [START datacatalog_generated_datacatalog_v1beta1_DataCatalog_DeleteEntryGroup_async] -from google.cloud import datacatalog_v1beta1 - - -async def sample_delete_entry_group(): - # Create a client - client = datacatalog_v1beta1.DataCatalogAsyncClient() - - # Initialize request argument(s) - request = datacatalog_v1beta1.DeleteEntryGroupRequest( - name="name_value", - ) - - # Make the request - await client.delete_entry_group(request=request) - - -# [END datacatalog_generated_datacatalog_v1beta1_DataCatalog_DeleteEntryGroup_async] diff --git a/samples/generated_samples/datacatalog_generated_datacatalog_v1beta1_data_catalog_delete_entry_group_sync.py b/samples/generated_samples/datacatalog_generated_datacatalog_v1beta1_data_catalog_delete_entry_group_sync.py deleted file mode 100644 index ce28fee2..00000000 --- a/samples/generated_samples/datacatalog_generated_datacatalog_v1beta1_data_catalog_delete_entry_group_sync.py +++ /dev/null @@ -1,43 +0,0 @@ -# -*- coding: utf-8 -*- -# Copyright 2020 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# -# Generated code. DO NOT EDIT! -# -# Snippet for DeleteEntryGroup -# NOTE: This snippet has been automatically generated for illustrative purposes only. -# It may require modifications to work in your environment. - -# To install the latest published package dependency, execute the following: -# python3 -m pip install google-cloud-datacatalog - - -# [START datacatalog_generated_datacatalog_v1beta1_DataCatalog_DeleteEntryGroup_sync] -from google.cloud import datacatalog_v1beta1 - - -def sample_delete_entry_group(): - # Create a client - client = datacatalog_v1beta1.DataCatalogClient() - - # Initialize request argument(s) - request = datacatalog_v1beta1.DeleteEntryGroupRequest( - name="name_value", - ) - - # Make the request - client.delete_entry_group(request=request) - - -# [END datacatalog_generated_datacatalog_v1beta1_DataCatalog_DeleteEntryGroup_sync] diff --git a/samples/generated_samples/datacatalog_generated_datacatalog_v1beta1_data_catalog_delete_entry_sync.py b/samples/generated_samples/datacatalog_generated_datacatalog_v1beta1_data_catalog_delete_entry_sync.py deleted file mode 100644 index 07aa133d..00000000 --- a/samples/generated_samples/datacatalog_generated_datacatalog_v1beta1_data_catalog_delete_entry_sync.py +++ /dev/null @@ -1,43 +0,0 @@ -# -*- coding: utf-8 -*- -# Copyright 2020 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# -# Generated code. DO NOT EDIT! -# -# Snippet for DeleteEntry -# NOTE: This snippet has been automatically generated for illustrative purposes only. -# It may require modifications to work in your environment. - -# To install the latest published package dependency, execute the following: -# python3 -m pip install google-cloud-datacatalog - - -# [START datacatalog_generated_datacatalog_v1beta1_DataCatalog_DeleteEntry_sync] -from google.cloud import datacatalog_v1beta1 - - -def sample_delete_entry(): - # Create a client - client = datacatalog_v1beta1.DataCatalogClient() - - # Initialize request argument(s) - request = datacatalog_v1beta1.DeleteEntryRequest( - name="name_value", - ) - - # Make the request - client.delete_entry(request=request) - - -# [END datacatalog_generated_datacatalog_v1beta1_DataCatalog_DeleteEntry_sync] diff --git a/samples/generated_samples/datacatalog_generated_datacatalog_v1beta1_data_catalog_delete_tag_async.py b/samples/generated_samples/datacatalog_generated_datacatalog_v1beta1_data_catalog_delete_tag_async.py deleted file mode 100644 index 9c5af4e1..00000000 --- a/samples/generated_samples/datacatalog_generated_datacatalog_v1beta1_data_catalog_delete_tag_async.py +++ /dev/null @@ -1,43 +0,0 @@ -# -*- coding: utf-8 -*- -# Copyright 2020 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# -# Generated code. DO NOT EDIT! -# -# Snippet for DeleteTag -# NOTE: This snippet has been automatically generated for illustrative purposes only. -# It may require modifications to work in your environment. - -# To install the latest published package dependency, execute the following: -# python3 -m pip install google-cloud-datacatalog - - -# [START datacatalog_generated_datacatalog_v1beta1_DataCatalog_DeleteTag_async] -from google.cloud import datacatalog_v1beta1 - - -async def sample_delete_tag(): - # Create a client - client = datacatalog_v1beta1.DataCatalogAsyncClient() - - # Initialize request argument(s) - request = datacatalog_v1beta1.DeleteTagRequest( - name="name_value", - ) - - # Make the request - await client.delete_tag(request=request) - - -# [END datacatalog_generated_datacatalog_v1beta1_DataCatalog_DeleteTag_async] diff --git a/samples/generated_samples/datacatalog_generated_datacatalog_v1beta1_data_catalog_delete_tag_sync.py b/samples/generated_samples/datacatalog_generated_datacatalog_v1beta1_data_catalog_delete_tag_sync.py deleted file mode 100644 index 9c527c4e..00000000 --- a/samples/generated_samples/datacatalog_generated_datacatalog_v1beta1_data_catalog_delete_tag_sync.py +++ /dev/null @@ -1,43 +0,0 @@ -# -*- coding: utf-8 -*- -# Copyright 2020 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# -# Generated code. DO NOT EDIT! -# -# Snippet for DeleteTag -# NOTE: This snippet has been automatically generated for illustrative purposes only. -# It may require modifications to work in your environment. - -# To install the latest published package dependency, execute the following: -# python3 -m pip install google-cloud-datacatalog - - -# [START datacatalog_generated_datacatalog_v1beta1_DataCatalog_DeleteTag_sync] -from google.cloud import datacatalog_v1beta1 - - -def sample_delete_tag(): - # Create a client - client = datacatalog_v1beta1.DataCatalogClient() - - # Initialize request argument(s) - request = datacatalog_v1beta1.DeleteTagRequest( - name="name_value", - ) - - # Make the request - client.delete_tag(request=request) - - -# [END datacatalog_generated_datacatalog_v1beta1_DataCatalog_DeleteTag_sync] diff --git a/samples/generated_samples/datacatalog_generated_datacatalog_v1beta1_data_catalog_delete_tag_template_async.py b/samples/generated_samples/datacatalog_generated_datacatalog_v1beta1_data_catalog_delete_tag_template_async.py deleted file mode 100644 index 7a8e1d75..00000000 --- a/samples/generated_samples/datacatalog_generated_datacatalog_v1beta1_data_catalog_delete_tag_template_async.py +++ /dev/null @@ -1,44 +0,0 @@ -# -*- coding: utf-8 -*- -# Copyright 2020 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# -# Generated code. DO NOT EDIT! -# -# Snippet for DeleteTagTemplate -# NOTE: This snippet has been automatically generated for illustrative purposes only. -# It may require modifications to work in your environment. - -# To install the latest published package dependency, execute the following: -# python3 -m pip install google-cloud-datacatalog - - -# [START datacatalog_generated_datacatalog_v1beta1_DataCatalog_DeleteTagTemplate_async] -from google.cloud import datacatalog_v1beta1 - - -async def sample_delete_tag_template(): - # Create a client - client = datacatalog_v1beta1.DataCatalogAsyncClient() - - # Initialize request argument(s) - request = datacatalog_v1beta1.DeleteTagTemplateRequest( - name="name_value", - force=True, - ) - - # Make the request - await client.delete_tag_template(request=request) - - -# [END datacatalog_generated_datacatalog_v1beta1_DataCatalog_DeleteTagTemplate_async] diff --git a/samples/generated_samples/datacatalog_generated_datacatalog_v1beta1_data_catalog_delete_tag_template_field_async.py b/samples/generated_samples/datacatalog_generated_datacatalog_v1beta1_data_catalog_delete_tag_template_field_async.py deleted file mode 100644 index b3b6a8e0..00000000 --- a/samples/generated_samples/datacatalog_generated_datacatalog_v1beta1_data_catalog_delete_tag_template_field_async.py +++ /dev/null @@ -1,44 +0,0 @@ -# -*- coding: utf-8 -*- -# Copyright 2020 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# -# Generated code. DO NOT EDIT! -# -# Snippet for DeleteTagTemplateField -# NOTE: This snippet has been automatically generated for illustrative purposes only. -# It may require modifications to work in your environment. - -# To install the latest published package dependency, execute the following: -# python3 -m pip install google-cloud-datacatalog - - -# [START datacatalog_generated_datacatalog_v1beta1_DataCatalog_DeleteTagTemplateField_async] -from google.cloud import datacatalog_v1beta1 - - -async def sample_delete_tag_template_field(): - # Create a client - client = datacatalog_v1beta1.DataCatalogAsyncClient() - - # Initialize request argument(s) - request = datacatalog_v1beta1.DeleteTagTemplateFieldRequest( - name="name_value", - force=True, - ) - - # Make the request - await client.delete_tag_template_field(request=request) - - -# [END datacatalog_generated_datacatalog_v1beta1_DataCatalog_DeleteTagTemplateField_async] diff --git a/samples/generated_samples/datacatalog_generated_datacatalog_v1beta1_data_catalog_delete_tag_template_field_sync.py b/samples/generated_samples/datacatalog_generated_datacatalog_v1beta1_data_catalog_delete_tag_template_field_sync.py deleted file mode 100644 index 55aa727e..00000000 --- a/samples/generated_samples/datacatalog_generated_datacatalog_v1beta1_data_catalog_delete_tag_template_field_sync.py +++ /dev/null @@ -1,44 +0,0 @@ -# -*- coding: utf-8 -*- -# Copyright 2020 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# -# Generated code. DO NOT EDIT! -# -# Snippet for DeleteTagTemplateField -# NOTE: This snippet has been automatically generated for illustrative purposes only. -# It may require modifications to work in your environment. - -# To install the latest published package dependency, execute the following: -# python3 -m pip install google-cloud-datacatalog - - -# [START datacatalog_generated_datacatalog_v1beta1_DataCatalog_DeleteTagTemplateField_sync] -from google.cloud import datacatalog_v1beta1 - - -def sample_delete_tag_template_field(): - # Create a client - client = datacatalog_v1beta1.DataCatalogClient() - - # Initialize request argument(s) - request = datacatalog_v1beta1.DeleteTagTemplateFieldRequest( - name="name_value", - force=True, - ) - - # Make the request - client.delete_tag_template_field(request=request) - - -# [END datacatalog_generated_datacatalog_v1beta1_DataCatalog_DeleteTagTemplateField_sync] diff --git a/samples/generated_samples/datacatalog_generated_datacatalog_v1beta1_data_catalog_delete_tag_template_sync.py b/samples/generated_samples/datacatalog_generated_datacatalog_v1beta1_data_catalog_delete_tag_template_sync.py deleted file mode 100644 index 75d82e5e..00000000 --- a/samples/generated_samples/datacatalog_generated_datacatalog_v1beta1_data_catalog_delete_tag_template_sync.py +++ /dev/null @@ -1,44 +0,0 @@ -# -*- coding: utf-8 -*- -# Copyright 2020 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# -# Generated code. DO NOT EDIT! -# -# Snippet for DeleteTagTemplate -# NOTE: This snippet has been automatically generated for illustrative purposes only. -# It may require modifications to work in your environment. - -# To install the latest published package dependency, execute the following: -# python3 -m pip install google-cloud-datacatalog - - -# [START datacatalog_generated_datacatalog_v1beta1_DataCatalog_DeleteTagTemplate_sync] -from google.cloud import datacatalog_v1beta1 - - -def sample_delete_tag_template(): - # Create a client - client = datacatalog_v1beta1.DataCatalogClient() - - # Initialize request argument(s) - request = datacatalog_v1beta1.DeleteTagTemplateRequest( - name="name_value", - force=True, - ) - - # Make the request - client.delete_tag_template(request=request) - - -# [END datacatalog_generated_datacatalog_v1beta1_DataCatalog_DeleteTagTemplate_sync] diff --git a/samples/generated_samples/datacatalog_generated_datacatalog_v1beta1_data_catalog_get_entry_async.py b/samples/generated_samples/datacatalog_generated_datacatalog_v1beta1_data_catalog_get_entry_async.py deleted file mode 100644 index 6f91a6c7..00000000 --- a/samples/generated_samples/datacatalog_generated_datacatalog_v1beta1_data_catalog_get_entry_async.py +++ /dev/null @@ -1,45 +0,0 @@ -# -*- coding: utf-8 -*- -# Copyright 2020 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# -# Generated code. DO NOT EDIT! -# -# Snippet for GetEntry -# NOTE: This snippet has been automatically generated for illustrative purposes only. -# It may require modifications to work in your environment. - -# To install the latest published package dependency, execute the following: -# python3 -m pip install google-cloud-datacatalog - - -# [START datacatalog_generated_datacatalog_v1beta1_DataCatalog_GetEntry_async] -from google.cloud import datacatalog_v1beta1 - - -async def sample_get_entry(): - # Create a client - client = datacatalog_v1beta1.DataCatalogAsyncClient() - - # Initialize request argument(s) - request = datacatalog_v1beta1.GetEntryRequest( - name="name_value", - ) - - # Make the request - response = await client.get_entry(request=request) - - # Handle the response - print(response) - -# [END datacatalog_generated_datacatalog_v1beta1_DataCatalog_GetEntry_async] diff --git a/samples/generated_samples/datacatalog_generated_datacatalog_v1beta1_data_catalog_get_entry_group_async.py b/samples/generated_samples/datacatalog_generated_datacatalog_v1beta1_data_catalog_get_entry_group_async.py deleted file mode 100644 index 69946d97..00000000 --- a/samples/generated_samples/datacatalog_generated_datacatalog_v1beta1_data_catalog_get_entry_group_async.py +++ /dev/null @@ -1,45 +0,0 @@ -# -*- coding: utf-8 -*- -# Copyright 2020 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# -# Generated code. DO NOT EDIT! -# -# Snippet for GetEntryGroup -# NOTE: This snippet has been automatically generated for illustrative purposes only. -# It may require modifications to work in your environment. - -# To install the latest published package dependency, execute the following: -# python3 -m pip install google-cloud-datacatalog - - -# [START datacatalog_generated_datacatalog_v1beta1_DataCatalog_GetEntryGroup_async] -from google.cloud import datacatalog_v1beta1 - - -async def sample_get_entry_group(): - # Create a client - client = datacatalog_v1beta1.DataCatalogAsyncClient() - - # Initialize request argument(s) - request = datacatalog_v1beta1.GetEntryGroupRequest( - name="name_value", - ) - - # Make the request - response = await client.get_entry_group(request=request) - - # Handle the response - print(response) - -# [END datacatalog_generated_datacatalog_v1beta1_DataCatalog_GetEntryGroup_async] diff --git a/samples/generated_samples/datacatalog_generated_datacatalog_v1beta1_data_catalog_get_entry_group_sync.py b/samples/generated_samples/datacatalog_generated_datacatalog_v1beta1_data_catalog_get_entry_group_sync.py deleted file mode 100644 index c41d6816..00000000 --- a/samples/generated_samples/datacatalog_generated_datacatalog_v1beta1_data_catalog_get_entry_group_sync.py +++ /dev/null @@ -1,45 +0,0 @@ -# -*- coding: utf-8 -*- -# Copyright 2020 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# -# Generated code. DO NOT EDIT! -# -# Snippet for GetEntryGroup -# NOTE: This snippet has been automatically generated for illustrative purposes only. -# It may require modifications to work in your environment. - -# To install the latest published package dependency, execute the following: -# python3 -m pip install google-cloud-datacatalog - - -# [START datacatalog_generated_datacatalog_v1beta1_DataCatalog_GetEntryGroup_sync] -from google.cloud import datacatalog_v1beta1 - - -def sample_get_entry_group(): - # Create a client - client = datacatalog_v1beta1.DataCatalogClient() - - # Initialize request argument(s) - request = datacatalog_v1beta1.GetEntryGroupRequest( - name="name_value", - ) - - # Make the request - response = client.get_entry_group(request=request) - - # Handle the response - print(response) - -# [END datacatalog_generated_datacatalog_v1beta1_DataCatalog_GetEntryGroup_sync] diff --git a/samples/generated_samples/datacatalog_generated_datacatalog_v1beta1_data_catalog_get_entry_sync.py b/samples/generated_samples/datacatalog_generated_datacatalog_v1beta1_data_catalog_get_entry_sync.py deleted file mode 100644 index 0692a429..00000000 --- a/samples/generated_samples/datacatalog_generated_datacatalog_v1beta1_data_catalog_get_entry_sync.py +++ /dev/null @@ -1,45 +0,0 @@ -# -*- coding: utf-8 -*- -# Copyright 2020 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# -# Generated code. DO NOT EDIT! -# -# Snippet for GetEntry -# NOTE: This snippet has been automatically generated for illustrative purposes only. -# It may require modifications to work in your environment. - -# To install the latest published package dependency, execute the following: -# python3 -m pip install google-cloud-datacatalog - - -# [START datacatalog_generated_datacatalog_v1beta1_DataCatalog_GetEntry_sync] -from google.cloud import datacatalog_v1beta1 - - -def sample_get_entry(): - # Create a client - client = datacatalog_v1beta1.DataCatalogClient() - - # Initialize request argument(s) - request = datacatalog_v1beta1.GetEntryRequest( - name="name_value", - ) - - # Make the request - response = client.get_entry(request=request) - - # Handle the response - print(response) - -# [END datacatalog_generated_datacatalog_v1beta1_DataCatalog_GetEntry_sync] diff --git a/samples/generated_samples/datacatalog_generated_datacatalog_v1beta1_data_catalog_get_iam_policy_async.py b/samples/generated_samples/datacatalog_generated_datacatalog_v1beta1_data_catalog_get_iam_policy_async.py deleted file mode 100644 index 8659d27a..00000000 --- a/samples/generated_samples/datacatalog_generated_datacatalog_v1beta1_data_catalog_get_iam_policy_async.py +++ /dev/null @@ -1,45 +0,0 @@ -# -*- coding: utf-8 -*- -# Copyright 2020 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# -# Generated code. DO NOT EDIT! -# -# Snippet for GetIamPolicy -# NOTE: This snippet has been automatically generated for illustrative purposes only. -# It may require modifications to work in your environment. - -# To install the latest published package dependency, execute the following: -# python3 -m pip install google-cloud-datacatalog - - -# [START datacatalog_generated_datacatalog_v1beta1_DataCatalog_GetIamPolicy_async] -from google.cloud import datacatalog_v1beta1 - - -async def sample_get_iam_policy(): - # Create a client - client = datacatalog_v1beta1.DataCatalogAsyncClient() - - # Initialize request argument(s) - request = datacatalog_v1beta1.GetIamPolicyRequest( - resource="resource_value", - ) - - # Make the request - response = await client.get_iam_policy(request=request) - - # Handle the response - print(response) - -# [END datacatalog_generated_datacatalog_v1beta1_DataCatalog_GetIamPolicy_async] diff --git a/samples/generated_samples/datacatalog_generated_datacatalog_v1beta1_data_catalog_get_iam_policy_sync.py b/samples/generated_samples/datacatalog_generated_datacatalog_v1beta1_data_catalog_get_iam_policy_sync.py deleted file mode 100644 index d74fd4c1..00000000 --- a/samples/generated_samples/datacatalog_generated_datacatalog_v1beta1_data_catalog_get_iam_policy_sync.py +++ /dev/null @@ -1,45 +0,0 @@ -# -*- coding: utf-8 -*- -# Copyright 2020 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# -# Generated code. DO NOT EDIT! -# -# Snippet for GetIamPolicy -# NOTE: This snippet has been automatically generated for illustrative purposes only. -# It may require modifications to work in your environment. - -# To install the latest published package dependency, execute the following: -# python3 -m pip install google-cloud-datacatalog - - -# [START datacatalog_generated_datacatalog_v1beta1_DataCatalog_GetIamPolicy_sync] -from google.cloud import datacatalog_v1beta1 - - -def sample_get_iam_policy(): - # Create a client - client = datacatalog_v1beta1.DataCatalogClient() - - # Initialize request argument(s) - request = datacatalog_v1beta1.GetIamPolicyRequest( - resource="resource_value", - ) - - # Make the request - response = client.get_iam_policy(request=request) - - # Handle the response - print(response) - -# [END datacatalog_generated_datacatalog_v1beta1_DataCatalog_GetIamPolicy_sync] diff --git a/samples/generated_samples/datacatalog_generated_datacatalog_v1beta1_data_catalog_get_tag_template_async.py b/samples/generated_samples/datacatalog_generated_datacatalog_v1beta1_data_catalog_get_tag_template_async.py deleted file mode 100644 index 21ac18a2..00000000 --- a/samples/generated_samples/datacatalog_generated_datacatalog_v1beta1_data_catalog_get_tag_template_async.py +++ /dev/null @@ -1,45 +0,0 @@ -# -*- coding: utf-8 -*- -# Copyright 2020 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# -# Generated code. DO NOT EDIT! -# -# Snippet for GetTagTemplate -# NOTE: This snippet has been automatically generated for illustrative purposes only. -# It may require modifications to work in your environment. - -# To install the latest published package dependency, execute the following: -# python3 -m pip install google-cloud-datacatalog - - -# [START datacatalog_generated_datacatalog_v1beta1_DataCatalog_GetTagTemplate_async] -from google.cloud import datacatalog_v1beta1 - - -async def sample_get_tag_template(): - # Create a client - client = datacatalog_v1beta1.DataCatalogAsyncClient() - - # Initialize request argument(s) - request = datacatalog_v1beta1.GetTagTemplateRequest( - name="name_value", - ) - - # Make the request - response = await client.get_tag_template(request=request) - - # Handle the response - print(response) - -# [END datacatalog_generated_datacatalog_v1beta1_DataCatalog_GetTagTemplate_async] diff --git a/samples/generated_samples/datacatalog_generated_datacatalog_v1beta1_data_catalog_get_tag_template_sync.py b/samples/generated_samples/datacatalog_generated_datacatalog_v1beta1_data_catalog_get_tag_template_sync.py deleted file mode 100644 index 2bc4f45f..00000000 --- a/samples/generated_samples/datacatalog_generated_datacatalog_v1beta1_data_catalog_get_tag_template_sync.py +++ /dev/null @@ -1,45 +0,0 @@ -# -*- coding: utf-8 -*- -# Copyright 2020 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# -# Generated code. DO NOT EDIT! -# -# Snippet for GetTagTemplate -# NOTE: This snippet has been automatically generated for illustrative purposes only. -# It may require modifications to work in your environment. - -# To install the latest published package dependency, execute the following: -# python3 -m pip install google-cloud-datacatalog - - -# [START datacatalog_generated_datacatalog_v1beta1_DataCatalog_GetTagTemplate_sync] -from google.cloud import datacatalog_v1beta1 - - -def sample_get_tag_template(): - # Create a client - client = datacatalog_v1beta1.DataCatalogClient() - - # Initialize request argument(s) - request = datacatalog_v1beta1.GetTagTemplateRequest( - name="name_value", - ) - - # Make the request - response = client.get_tag_template(request=request) - - # Handle the response - print(response) - -# [END datacatalog_generated_datacatalog_v1beta1_DataCatalog_GetTagTemplate_sync] diff --git a/samples/generated_samples/datacatalog_generated_datacatalog_v1beta1_data_catalog_list_entries_async.py b/samples/generated_samples/datacatalog_generated_datacatalog_v1beta1_data_catalog_list_entries_async.py deleted file mode 100644 index 0d88f974..00000000 --- a/samples/generated_samples/datacatalog_generated_datacatalog_v1beta1_data_catalog_list_entries_async.py +++ /dev/null @@ -1,46 +0,0 @@ -# -*- coding: utf-8 -*- -# Copyright 2020 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# -# Generated code. DO NOT EDIT! -# -# Snippet for ListEntries -# NOTE: This snippet has been automatically generated for illustrative purposes only. -# It may require modifications to work in your environment. - -# To install the latest published package dependency, execute the following: -# python3 -m pip install google-cloud-datacatalog - - -# [START datacatalog_generated_datacatalog_v1beta1_DataCatalog_ListEntries_async] -from google.cloud import datacatalog_v1beta1 - - -async def sample_list_entries(): - # Create a client - client = datacatalog_v1beta1.DataCatalogAsyncClient() - - # Initialize request argument(s) - request = datacatalog_v1beta1.ListEntriesRequest( - parent="parent_value", - ) - - # Make the request - page_result = client.list_entries(request=request) - - # Handle the response - async for response in page_result: - print(response) - -# [END datacatalog_generated_datacatalog_v1beta1_DataCatalog_ListEntries_async] diff --git a/samples/generated_samples/datacatalog_generated_datacatalog_v1beta1_data_catalog_list_entries_sync.py b/samples/generated_samples/datacatalog_generated_datacatalog_v1beta1_data_catalog_list_entries_sync.py deleted file mode 100644 index ffb77c10..00000000 --- a/samples/generated_samples/datacatalog_generated_datacatalog_v1beta1_data_catalog_list_entries_sync.py +++ /dev/null @@ -1,46 +0,0 @@ -# -*- coding: utf-8 -*- -# Copyright 2020 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# -# Generated code. DO NOT EDIT! -# -# Snippet for ListEntries -# NOTE: This snippet has been automatically generated for illustrative purposes only. -# It may require modifications to work in your environment. - -# To install the latest published package dependency, execute the following: -# python3 -m pip install google-cloud-datacatalog - - -# [START datacatalog_generated_datacatalog_v1beta1_DataCatalog_ListEntries_sync] -from google.cloud import datacatalog_v1beta1 - - -def sample_list_entries(): - # Create a client - client = datacatalog_v1beta1.DataCatalogClient() - - # Initialize request argument(s) - request = datacatalog_v1beta1.ListEntriesRequest( - parent="parent_value", - ) - - # Make the request - page_result = client.list_entries(request=request) - - # Handle the response - for response in page_result: - print(response) - -# [END datacatalog_generated_datacatalog_v1beta1_DataCatalog_ListEntries_sync] diff --git a/samples/generated_samples/datacatalog_generated_datacatalog_v1beta1_data_catalog_list_entry_groups_async.py b/samples/generated_samples/datacatalog_generated_datacatalog_v1beta1_data_catalog_list_entry_groups_async.py deleted file mode 100644 index df7a1070..00000000 --- a/samples/generated_samples/datacatalog_generated_datacatalog_v1beta1_data_catalog_list_entry_groups_async.py +++ /dev/null @@ -1,46 +0,0 @@ -# -*- coding: utf-8 -*- -# Copyright 2020 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# -# Generated code. DO NOT EDIT! -# -# Snippet for ListEntryGroups -# NOTE: This snippet has been automatically generated for illustrative purposes only. -# It may require modifications to work in your environment. - -# To install the latest published package dependency, execute the following: -# python3 -m pip install google-cloud-datacatalog - - -# [START datacatalog_generated_datacatalog_v1beta1_DataCatalog_ListEntryGroups_async] -from google.cloud import datacatalog_v1beta1 - - -async def sample_list_entry_groups(): - # Create a client - client = datacatalog_v1beta1.DataCatalogAsyncClient() - - # Initialize request argument(s) - request = datacatalog_v1beta1.ListEntryGroupsRequest( - parent="parent_value", - ) - - # Make the request - page_result = client.list_entry_groups(request=request) - - # Handle the response - async for response in page_result: - print(response) - -# [END datacatalog_generated_datacatalog_v1beta1_DataCatalog_ListEntryGroups_async] diff --git a/samples/generated_samples/datacatalog_generated_datacatalog_v1beta1_data_catalog_list_entry_groups_sync.py b/samples/generated_samples/datacatalog_generated_datacatalog_v1beta1_data_catalog_list_entry_groups_sync.py deleted file mode 100644 index db30f06e..00000000 --- a/samples/generated_samples/datacatalog_generated_datacatalog_v1beta1_data_catalog_list_entry_groups_sync.py +++ /dev/null @@ -1,46 +0,0 @@ -# -*- coding: utf-8 -*- -# Copyright 2020 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# -# Generated code. DO NOT EDIT! -# -# Snippet for ListEntryGroups -# NOTE: This snippet has been automatically generated for illustrative purposes only. -# It may require modifications to work in your environment. - -# To install the latest published package dependency, execute the following: -# python3 -m pip install google-cloud-datacatalog - - -# [START datacatalog_generated_datacatalog_v1beta1_DataCatalog_ListEntryGroups_sync] -from google.cloud import datacatalog_v1beta1 - - -def sample_list_entry_groups(): - # Create a client - client = datacatalog_v1beta1.DataCatalogClient() - - # Initialize request argument(s) - request = datacatalog_v1beta1.ListEntryGroupsRequest( - parent="parent_value", - ) - - # Make the request - page_result = client.list_entry_groups(request=request) - - # Handle the response - for response in page_result: - print(response) - -# [END datacatalog_generated_datacatalog_v1beta1_DataCatalog_ListEntryGroups_sync] diff --git a/samples/generated_samples/datacatalog_generated_datacatalog_v1beta1_data_catalog_list_tags_async.py b/samples/generated_samples/datacatalog_generated_datacatalog_v1beta1_data_catalog_list_tags_async.py deleted file mode 100644 index 52a8c9a5..00000000 --- a/samples/generated_samples/datacatalog_generated_datacatalog_v1beta1_data_catalog_list_tags_async.py +++ /dev/null @@ -1,46 +0,0 @@ -# -*- coding: utf-8 -*- -# Copyright 2020 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# -# Generated code. DO NOT EDIT! -# -# Snippet for ListTags -# NOTE: This snippet has been automatically generated for illustrative purposes only. -# It may require modifications to work in your environment. - -# To install the latest published package dependency, execute the following: -# python3 -m pip install google-cloud-datacatalog - - -# [START datacatalog_generated_datacatalog_v1beta1_DataCatalog_ListTags_async] -from google.cloud import datacatalog_v1beta1 - - -async def sample_list_tags(): - # Create a client - client = datacatalog_v1beta1.DataCatalogAsyncClient() - - # Initialize request argument(s) - request = datacatalog_v1beta1.ListTagsRequest( - parent="parent_value", - ) - - # Make the request - page_result = client.list_tags(request=request) - - # Handle the response - async for response in page_result: - print(response) - -# [END datacatalog_generated_datacatalog_v1beta1_DataCatalog_ListTags_async] diff --git a/samples/generated_samples/datacatalog_generated_datacatalog_v1beta1_data_catalog_list_tags_sync.py b/samples/generated_samples/datacatalog_generated_datacatalog_v1beta1_data_catalog_list_tags_sync.py deleted file mode 100644 index 330971f6..00000000 --- a/samples/generated_samples/datacatalog_generated_datacatalog_v1beta1_data_catalog_list_tags_sync.py +++ /dev/null @@ -1,46 +0,0 @@ -# -*- coding: utf-8 -*- -# Copyright 2020 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# -# Generated code. DO NOT EDIT! -# -# Snippet for ListTags -# NOTE: This snippet has been automatically generated for illustrative purposes only. -# It may require modifications to work in your environment. - -# To install the latest published package dependency, execute the following: -# python3 -m pip install google-cloud-datacatalog - - -# [START datacatalog_generated_datacatalog_v1beta1_DataCatalog_ListTags_sync] -from google.cloud import datacatalog_v1beta1 - - -def sample_list_tags(): - # Create a client - client = datacatalog_v1beta1.DataCatalogClient() - - # Initialize request argument(s) - request = datacatalog_v1beta1.ListTagsRequest( - parent="parent_value", - ) - - # Make the request - page_result = client.list_tags(request=request) - - # Handle the response - for response in page_result: - print(response) - -# [END datacatalog_generated_datacatalog_v1beta1_DataCatalog_ListTags_sync] diff --git a/samples/generated_samples/datacatalog_generated_datacatalog_v1beta1_data_catalog_lookup_entry_async.py b/samples/generated_samples/datacatalog_generated_datacatalog_v1beta1_data_catalog_lookup_entry_async.py deleted file mode 100644 index 4989df4a..00000000 --- a/samples/generated_samples/datacatalog_generated_datacatalog_v1beta1_data_catalog_lookup_entry_async.py +++ /dev/null @@ -1,45 +0,0 @@ -# -*- coding: utf-8 -*- -# Copyright 2020 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# -# Generated code. DO NOT EDIT! -# -# Snippet for LookupEntry -# NOTE: This snippet has been automatically generated for illustrative purposes only. -# It may require modifications to work in your environment. - -# To install the latest published package dependency, execute the following: -# python3 -m pip install google-cloud-datacatalog - - -# [START datacatalog_generated_datacatalog_v1beta1_DataCatalog_LookupEntry_async] -from google.cloud import datacatalog_v1beta1 - - -async def sample_lookup_entry(): - # Create a client - client = datacatalog_v1beta1.DataCatalogAsyncClient() - - # Initialize request argument(s) - request = datacatalog_v1beta1.LookupEntryRequest( - linked_resource="linked_resource_value", - ) - - # Make the request - response = await client.lookup_entry(request=request) - - # Handle the response - print(response) - -# [END datacatalog_generated_datacatalog_v1beta1_DataCatalog_LookupEntry_async] diff --git a/samples/generated_samples/datacatalog_generated_datacatalog_v1beta1_data_catalog_lookup_entry_sync.py b/samples/generated_samples/datacatalog_generated_datacatalog_v1beta1_data_catalog_lookup_entry_sync.py deleted file mode 100644 index ead6d281..00000000 --- a/samples/generated_samples/datacatalog_generated_datacatalog_v1beta1_data_catalog_lookup_entry_sync.py +++ /dev/null @@ -1,45 +0,0 @@ -# -*- coding: utf-8 -*- -# Copyright 2020 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# -# Generated code. DO NOT EDIT! -# -# Snippet for LookupEntry -# NOTE: This snippet has been automatically generated for illustrative purposes only. -# It may require modifications to work in your environment. - -# To install the latest published package dependency, execute the following: -# python3 -m pip install google-cloud-datacatalog - - -# [START datacatalog_generated_datacatalog_v1beta1_DataCatalog_LookupEntry_sync] -from google.cloud import datacatalog_v1beta1 - - -def sample_lookup_entry(): - # Create a client - client = datacatalog_v1beta1.DataCatalogClient() - - # Initialize request argument(s) - request = datacatalog_v1beta1.LookupEntryRequest( - linked_resource="linked_resource_value", - ) - - # Make the request - response = client.lookup_entry(request=request) - - # Handle the response - print(response) - -# [END datacatalog_generated_datacatalog_v1beta1_DataCatalog_LookupEntry_sync] diff --git a/samples/generated_samples/datacatalog_generated_datacatalog_v1beta1_data_catalog_rename_tag_template_field_async.py b/samples/generated_samples/datacatalog_generated_datacatalog_v1beta1_data_catalog_rename_tag_template_field_async.py deleted file mode 100644 index 6becb623..00000000 --- a/samples/generated_samples/datacatalog_generated_datacatalog_v1beta1_data_catalog_rename_tag_template_field_async.py +++ /dev/null @@ -1,46 +0,0 @@ -# -*- coding: utf-8 -*- -# Copyright 2020 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# -# Generated code. DO NOT EDIT! -# -# Snippet for RenameTagTemplateField -# NOTE: This snippet has been automatically generated for illustrative purposes only. -# It may require modifications to work in your environment. - -# To install the latest published package dependency, execute the following: -# python3 -m pip install google-cloud-datacatalog - - -# [START datacatalog_generated_datacatalog_v1beta1_DataCatalog_RenameTagTemplateField_async] -from google.cloud import datacatalog_v1beta1 - - -async def sample_rename_tag_template_field(): - # Create a client - client = datacatalog_v1beta1.DataCatalogAsyncClient() - - # Initialize request argument(s) - request = datacatalog_v1beta1.RenameTagTemplateFieldRequest( - name="name_value", - new_tag_template_field_id="new_tag_template_field_id_value", - ) - - # Make the request - response = await client.rename_tag_template_field(request=request) - - # Handle the response - print(response) - -# [END datacatalog_generated_datacatalog_v1beta1_DataCatalog_RenameTagTemplateField_async] diff --git a/samples/generated_samples/datacatalog_generated_datacatalog_v1beta1_data_catalog_rename_tag_template_field_sync.py b/samples/generated_samples/datacatalog_generated_datacatalog_v1beta1_data_catalog_rename_tag_template_field_sync.py deleted file mode 100644 index 95a33596..00000000 --- a/samples/generated_samples/datacatalog_generated_datacatalog_v1beta1_data_catalog_rename_tag_template_field_sync.py +++ /dev/null @@ -1,46 +0,0 @@ -# -*- coding: utf-8 -*- -# Copyright 2020 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# -# Generated code. DO NOT EDIT! -# -# Snippet for RenameTagTemplateField -# NOTE: This snippet has been automatically generated for illustrative purposes only. -# It may require modifications to work in your environment. - -# To install the latest published package dependency, execute the following: -# python3 -m pip install google-cloud-datacatalog - - -# [START datacatalog_generated_datacatalog_v1beta1_DataCatalog_RenameTagTemplateField_sync] -from google.cloud import datacatalog_v1beta1 - - -def sample_rename_tag_template_field(): - # Create a client - client = datacatalog_v1beta1.DataCatalogClient() - - # Initialize request argument(s) - request = datacatalog_v1beta1.RenameTagTemplateFieldRequest( - name="name_value", - new_tag_template_field_id="new_tag_template_field_id_value", - ) - - # Make the request - response = client.rename_tag_template_field(request=request) - - # Handle the response - print(response) - -# [END datacatalog_generated_datacatalog_v1beta1_DataCatalog_RenameTagTemplateField_sync] diff --git a/samples/generated_samples/datacatalog_generated_datacatalog_v1beta1_data_catalog_search_catalog_async.py b/samples/generated_samples/datacatalog_generated_datacatalog_v1beta1_data_catalog_search_catalog_async.py deleted file mode 100644 index 2bedba15..00000000 --- a/samples/generated_samples/datacatalog_generated_datacatalog_v1beta1_data_catalog_search_catalog_async.py +++ /dev/null @@ -1,46 +0,0 @@ -# -*- coding: utf-8 -*- -# Copyright 2020 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# -# Generated code. DO NOT EDIT! -# -# Snippet for SearchCatalog -# NOTE: This snippet has been automatically generated for illustrative purposes only. -# It may require modifications to work in your environment. - -# To install the latest published package dependency, execute the following: -# python3 -m pip install google-cloud-datacatalog - - -# [START datacatalog_generated_datacatalog_v1beta1_DataCatalog_SearchCatalog_async] -from google.cloud import datacatalog_v1beta1 - - -async def sample_search_catalog(): - # Create a client - client = datacatalog_v1beta1.DataCatalogAsyncClient() - - # Initialize request argument(s) - request = datacatalog_v1beta1.SearchCatalogRequest( - query="query_value", - ) - - # Make the request - page_result = client.search_catalog(request=request) - - # Handle the response - async for response in page_result: - print(response) - -# [END datacatalog_generated_datacatalog_v1beta1_DataCatalog_SearchCatalog_async] diff --git a/samples/generated_samples/datacatalog_generated_datacatalog_v1beta1_data_catalog_search_catalog_sync.py b/samples/generated_samples/datacatalog_generated_datacatalog_v1beta1_data_catalog_search_catalog_sync.py deleted file mode 100644 index 11e1d72a..00000000 --- a/samples/generated_samples/datacatalog_generated_datacatalog_v1beta1_data_catalog_search_catalog_sync.py +++ /dev/null @@ -1,46 +0,0 @@ -# -*- coding: utf-8 -*- -# Copyright 2020 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# -# Generated code. DO NOT EDIT! -# -# Snippet for SearchCatalog -# NOTE: This snippet has been automatically generated for illustrative purposes only. -# It may require modifications to work in your environment. - -# To install the latest published package dependency, execute the following: -# python3 -m pip install google-cloud-datacatalog - - -# [START datacatalog_generated_datacatalog_v1beta1_DataCatalog_SearchCatalog_sync] -from google.cloud import datacatalog_v1beta1 - - -def sample_search_catalog(): - # Create a client - client = datacatalog_v1beta1.DataCatalogClient() - - # Initialize request argument(s) - request = datacatalog_v1beta1.SearchCatalogRequest( - query="query_value", - ) - - # Make the request - page_result = client.search_catalog(request=request) - - # Handle the response - for response in page_result: - print(response) - -# [END datacatalog_generated_datacatalog_v1beta1_DataCatalog_SearchCatalog_sync] diff --git a/samples/generated_samples/datacatalog_generated_datacatalog_v1beta1_data_catalog_set_iam_policy_async.py b/samples/generated_samples/datacatalog_generated_datacatalog_v1beta1_data_catalog_set_iam_policy_async.py deleted file mode 100644 index 3ed83ff7..00000000 --- a/samples/generated_samples/datacatalog_generated_datacatalog_v1beta1_data_catalog_set_iam_policy_async.py +++ /dev/null @@ -1,45 +0,0 @@ -# -*- coding: utf-8 -*- -# Copyright 2020 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# -# Generated code. DO NOT EDIT! -# -# Snippet for SetIamPolicy -# NOTE: This snippet has been automatically generated for illustrative purposes only. -# It may require modifications to work in your environment. - -# To install the latest published package dependency, execute the following: -# python3 -m pip install google-cloud-datacatalog - - -# [START datacatalog_generated_datacatalog_v1beta1_DataCatalog_SetIamPolicy_async] -from google.cloud import datacatalog_v1beta1 - - -async def sample_set_iam_policy(): - # Create a client - client = datacatalog_v1beta1.DataCatalogAsyncClient() - - # Initialize request argument(s) - request = datacatalog_v1beta1.SetIamPolicyRequest( - resource="resource_value", - ) - - # Make the request - response = await client.set_iam_policy(request=request) - - # Handle the response - print(response) - -# [END datacatalog_generated_datacatalog_v1beta1_DataCatalog_SetIamPolicy_async] diff --git a/samples/generated_samples/datacatalog_generated_datacatalog_v1beta1_data_catalog_set_iam_policy_sync.py b/samples/generated_samples/datacatalog_generated_datacatalog_v1beta1_data_catalog_set_iam_policy_sync.py deleted file mode 100644 index 160f28a7..00000000 --- a/samples/generated_samples/datacatalog_generated_datacatalog_v1beta1_data_catalog_set_iam_policy_sync.py +++ /dev/null @@ -1,45 +0,0 @@ -# -*- coding: utf-8 -*- -# Copyright 2020 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# -# Generated code. DO NOT EDIT! -# -# Snippet for SetIamPolicy -# NOTE: This snippet has been automatically generated for illustrative purposes only. -# It may require modifications to work in your environment. - -# To install the latest published package dependency, execute the following: -# python3 -m pip install google-cloud-datacatalog - - -# [START datacatalog_generated_datacatalog_v1beta1_DataCatalog_SetIamPolicy_sync] -from google.cloud import datacatalog_v1beta1 - - -def sample_set_iam_policy(): - # Create a client - client = datacatalog_v1beta1.DataCatalogClient() - - # Initialize request argument(s) - request = datacatalog_v1beta1.SetIamPolicyRequest( - resource="resource_value", - ) - - # Make the request - response = client.set_iam_policy(request=request) - - # Handle the response - print(response) - -# [END datacatalog_generated_datacatalog_v1beta1_DataCatalog_SetIamPolicy_sync] diff --git a/samples/generated_samples/datacatalog_generated_datacatalog_v1beta1_data_catalog_test_iam_permissions_async.py b/samples/generated_samples/datacatalog_generated_datacatalog_v1beta1_data_catalog_test_iam_permissions_async.py deleted file mode 100644 index 101fc774..00000000 --- a/samples/generated_samples/datacatalog_generated_datacatalog_v1beta1_data_catalog_test_iam_permissions_async.py +++ /dev/null @@ -1,46 +0,0 @@ -# -*- coding: utf-8 -*- -# Copyright 2020 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# -# Generated code. DO NOT EDIT! -# -# Snippet for TestIamPermissions -# NOTE: This snippet has been automatically generated for illustrative purposes only. -# It may require modifications to work in your environment. - -# To install the latest published package dependency, execute the following: -# python3 -m pip install google-cloud-datacatalog - - -# [START datacatalog_generated_datacatalog_v1beta1_DataCatalog_TestIamPermissions_async] -from google.cloud import datacatalog_v1beta1 - - -async def sample_test_iam_permissions(): - # Create a client - client = datacatalog_v1beta1.DataCatalogAsyncClient() - - # Initialize request argument(s) - request = datacatalog_v1beta1.TestIamPermissionsRequest( - resource="resource_value", - permissions=['permissions_value_1', 'permissions_value_2'], - ) - - # Make the request - response = await client.test_iam_permissions(request=request) - - # Handle the response - print(response) - -# [END datacatalog_generated_datacatalog_v1beta1_DataCatalog_TestIamPermissions_async] diff --git a/samples/generated_samples/datacatalog_generated_datacatalog_v1beta1_data_catalog_test_iam_permissions_sync.py b/samples/generated_samples/datacatalog_generated_datacatalog_v1beta1_data_catalog_test_iam_permissions_sync.py deleted file mode 100644 index 4e14e112..00000000 --- a/samples/generated_samples/datacatalog_generated_datacatalog_v1beta1_data_catalog_test_iam_permissions_sync.py +++ /dev/null @@ -1,46 +0,0 @@ -# -*- coding: utf-8 -*- -# Copyright 2020 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# -# Generated code. DO NOT EDIT! -# -# Snippet for TestIamPermissions -# NOTE: This snippet has been automatically generated for illustrative purposes only. -# It may require modifications to work in your environment. - -# To install the latest published package dependency, execute the following: -# python3 -m pip install google-cloud-datacatalog - - -# [START datacatalog_generated_datacatalog_v1beta1_DataCatalog_TestIamPermissions_sync] -from google.cloud import datacatalog_v1beta1 - - -def sample_test_iam_permissions(): - # Create a client - client = datacatalog_v1beta1.DataCatalogClient() - - # Initialize request argument(s) - request = datacatalog_v1beta1.TestIamPermissionsRequest( - resource="resource_value", - permissions=['permissions_value_1', 'permissions_value_2'], - ) - - # Make the request - response = client.test_iam_permissions(request=request) - - # Handle the response - print(response) - -# [END datacatalog_generated_datacatalog_v1beta1_DataCatalog_TestIamPermissions_sync] diff --git a/samples/generated_samples/datacatalog_generated_datacatalog_v1beta1_data_catalog_update_entry_async.py b/samples/generated_samples/datacatalog_generated_datacatalog_v1beta1_data_catalog_update_entry_async.py deleted file mode 100644 index bd6a651f..00000000 --- a/samples/generated_samples/datacatalog_generated_datacatalog_v1beta1_data_catalog_update_entry_async.py +++ /dev/null @@ -1,50 +0,0 @@ -# -*- coding: utf-8 -*- -# Copyright 2020 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# -# Generated code. DO NOT EDIT! -# -# Snippet for UpdateEntry -# NOTE: This snippet has been automatically generated for illustrative purposes only. -# It may require modifications to work in your environment. - -# To install the latest published package dependency, execute the following: -# python3 -m pip install google-cloud-datacatalog - - -# [START datacatalog_generated_datacatalog_v1beta1_DataCatalog_UpdateEntry_async] -from google.cloud import datacatalog_v1beta1 - - -async def sample_update_entry(): - # Create a client - client = datacatalog_v1beta1.DataCatalogAsyncClient() - - # Initialize request argument(s) - entry = datacatalog_v1beta1.Entry() - entry.type_ = "FILESET" - entry.integrated_system = "CLOUD_PUBSUB" - entry.gcs_fileset_spec.file_patterns = ['file_patterns_value_1', 'file_patterns_value_2'] - - request = datacatalog_v1beta1.UpdateEntryRequest( - entry=entry, - ) - - # Make the request - response = await client.update_entry(request=request) - - # Handle the response - print(response) - -# [END datacatalog_generated_datacatalog_v1beta1_DataCatalog_UpdateEntry_async] diff --git a/samples/generated_samples/datacatalog_generated_datacatalog_v1beta1_data_catalog_update_entry_group_async.py b/samples/generated_samples/datacatalog_generated_datacatalog_v1beta1_data_catalog_update_entry_group_async.py deleted file mode 100644 index 3613b21e..00000000 --- a/samples/generated_samples/datacatalog_generated_datacatalog_v1beta1_data_catalog_update_entry_group_async.py +++ /dev/null @@ -1,44 +0,0 @@ -# -*- coding: utf-8 -*- -# Copyright 2020 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# -# Generated code. DO NOT EDIT! -# -# Snippet for UpdateEntryGroup -# NOTE: This snippet has been automatically generated for illustrative purposes only. -# It may require modifications to work in your environment. - -# To install the latest published package dependency, execute the following: -# python3 -m pip install google-cloud-datacatalog - - -# [START datacatalog_generated_datacatalog_v1beta1_DataCatalog_UpdateEntryGroup_async] -from google.cloud import datacatalog_v1beta1 - - -async def sample_update_entry_group(): - # Create a client - client = datacatalog_v1beta1.DataCatalogAsyncClient() - - # Initialize request argument(s) - request = datacatalog_v1beta1.UpdateEntryGroupRequest( - ) - - # Make the request - response = await client.update_entry_group(request=request) - - # Handle the response - print(response) - -# [END datacatalog_generated_datacatalog_v1beta1_DataCatalog_UpdateEntryGroup_async] diff --git a/samples/generated_samples/datacatalog_generated_datacatalog_v1beta1_data_catalog_update_entry_group_sync.py b/samples/generated_samples/datacatalog_generated_datacatalog_v1beta1_data_catalog_update_entry_group_sync.py deleted file mode 100644 index 392750af..00000000 --- a/samples/generated_samples/datacatalog_generated_datacatalog_v1beta1_data_catalog_update_entry_group_sync.py +++ /dev/null @@ -1,44 +0,0 @@ -# -*- coding: utf-8 -*- -# Copyright 2020 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# -# Generated code. DO NOT EDIT! -# -# Snippet for UpdateEntryGroup -# NOTE: This snippet has been automatically generated for illustrative purposes only. -# It may require modifications to work in your environment. - -# To install the latest published package dependency, execute the following: -# python3 -m pip install google-cloud-datacatalog - - -# [START datacatalog_generated_datacatalog_v1beta1_DataCatalog_UpdateEntryGroup_sync] -from google.cloud import datacatalog_v1beta1 - - -def sample_update_entry_group(): - # Create a client - client = datacatalog_v1beta1.DataCatalogClient() - - # Initialize request argument(s) - request = datacatalog_v1beta1.UpdateEntryGroupRequest( - ) - - # Make the request - response = client.update_entry_group(request=request) - - # Handle the response - print(response) - -# [END datacatalog_generated_datacatalog_v1beta1_DataCatalog_UpdateEntryGroup_sync] diff --git a/samples/generated_samples/datacatalog_generated_datacatalog_v1beta1_data_catalog_update_entry_sync.py b/samples/generated_samples/datacatalog_generated_datacatalog_v1beta1_data_catalog_update_entry_sync.py deleted file mode 100644 index 0057171e..00000000 --- a/samples/generated_samples/datacatalog_generated_datacatalog_v1beta1_data_catalog_update_entry_sync.py +++ /dev/null @@ -1,50 +0,0 @@ -# -*- coding: utf-8 -*- -# Copyright 2020 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# -# Generated code. DO NOT EDIT! -# -# Snippet for UpdateEntry -# NOTE: This snippet has been automatically generated for illustrative purposes only. -# It may require modifications to work in your environment. - -# To install the latest published package dependency, execute the following: -# python3 -m pip install google-cloud-datacatalog - - -# [START datacatalog_generated_datacatalog_v1beta1_DataCatalog_UpdateEntry_sync] -from google.cloud import datacatalog_v1beta1 - - -def sample_update_entry(): - # Create a client - client = datacatalog_v1beta1.DataCatalogClient() - - # Initialize request argument(s) - entry = datacatalog_v1beta1.Entry() - entry.type_ = "FILESET" - entry.integrated_system = "CLOUD_PUBSUB" - entry.gcs_fileset_spec.file_patterns = ['file_patterns_value_1', 'file_patterns_value_2'] - - request = datacatalog_v1beta1.UpdateEntryRequest( - entry=entry, - ) - - # Make the request - response = client.update_entry(request=request) - - # Handle the response - print(response) - -# [END datacatalog_generated_datacatalog_v1beta1_DataCatalog_UpdateEntry_sync] diff --git a/samples/generated_samples/datacatalog_generated_datacatalog_v1beta1_data_catalog_update_tag_async.py b/samples/generated_samples/datacatalog_generated_datacatalog_v1beta1_data_catalog_update_tag_async.py deleted file mode 100644 index c0aa555e..00000000 --- a/samples/generated_samples/datacatalog_generated_datacatalog_v1beta1_data_catalog_update_tag_async.py +++ /dev/null @@ -1,49 +0,0 @@ -# -*- coding: utf-8 -*- -# Copyright 2020 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# -# Generated code. DO NOT EDIT! -# -# Snippet for UpdateTag -# NOTE: This snippet has been automatically generated for illustrative purposes only. -# It may require modifications to work in your environment. - -# To install the latest published package dependency, execute the following: -# python3 -m pip install google-cloud-datacatalog - - -# [START datacatalog_generated_datacatalog_v1beta1_DataCatalog_UpdateTag_async] -from google.cloud import datacatalog_v1beta1 - - -async def sample_update_tag(): - # Create a client - client = datacatalog_v1beta1.DataCatalogAsyncClient() - - # Initialize request argument(s) - tag = datacatalog_v1beta1.Tag() - tag.column = "column_value" - tag.template = "template_value" - - request = datacatalog_v1beta1.UpdateTagRequest( - tag=tag, - ) - - # Make the request - response = await client.update_tag(request=request) - - # Handle the response - print(response) - -# [END datacatalog_generated_datacatalog_v1beta1_DataCatalog_UpdateTag_async] diff --git a/samples/generated_samples/datacatalog_generated_datacatalog_v1beta1_data_catalog_update_tag_sync.py b/samples/generated_samples/datacatalog_generated_datacatalog_v1beta1_data_catalog_update_tag_sync.py deleted file mode 100644 index 07d5bddd..00000000 --- a/samples/generated_samples/datacatalog_generated_datacatalog_v1beta1_data_catalog_update_tag_sync.py +++ /dev/null @@ -1,49 +0,0 @@ -# -*- coding: utf-8 -*- -# Copyright 2020 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# -# Generated code. DO NOT EDIT! -# -# Snippet for UpdateTag -# NOTE: This snippet has been automatically generated for illustrative purposes only. -# It may require modifications to work in your environment. - -# To install the latest published package dependency, execute the following: -# python3 -m pip install google-cloud-datacatalog - - -# [START datacatalog_generated_datacatalog_v1beta1_DataCatalog_UpdateTag_sync] -from google.cloud import datacatalog_v1beta1 - - -def sample_update_tag(): - # Create a client - client = datacatalog_v1beta1.DataCatalogClient() - - # Initialize request argument(s) - tag = datacatalog_v1beta1.Tag() - tag.column = "column_value" - tag.template = "template_value" - - request = datacatalog_v1beta1.UpdateTagRequest( - tag=tag, - ) - - # Make the request - response = client.update_tag(request=request) - - # Handle the response - print(response) - -# [END datacatalog_generated_datacatalog_v1beta1_DataCatalog_UpdateTag_sync] diff --git a/samples/generated_samples/datacatalog_generated_datacatalog_v1beta1_data_catalog_update_tag_template_async.py b/samples/generated_samples/datacatalog_generated_datacatalog_v1beta1_data_catalog_update_tag_template_async.py deleted file mode 100644 index 6f2aa62b..00000000 --- a/samples/generated_samples/datacatalog_generated_datacatalog_v1beta1_data_catalog_update_tag_template_async.py +++ /dev/null @@ -1,44 +0,0 @@ -# -*- coding: utf-8 -*- -# Copyright 2020 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# -# Generated code. DO NOT EDIT! -# -# Snippet for UpdateTagTemplate -# NOTE: This snippet has been automatically generated for illustrative purposes only. -# It may require modifications to work in your environment. - -# To install the latest published package dependency, execute the following: -# python3 -m pip install google-cloud-datacatalog - - -# [START datacatalog_generated_datacatalog_v1beta1_DataCatalog_UpdateTagTemplate_async] -from google.cloud import datacatalog_v1beta1 - - -async def sample_update_tag_template(): - # Create a client - client = datacatalog_v1beta1.DataCatalogAsyncClient() - - # Initialize request argument(s) - request = datacatalog_v1beta1.UpdateTagTemplateRequest( - ) - - # Make the request - response = await client.update_tag_template(request=request) - - # Handle the response - print(response) - -# [END datacatalog_generated_datacatalog_v1beta1_DataCatalog_UpdateTagTemplate_async] diff --git a/samples/generated_samples/datacatalog_generated_datacatalog_v1beta1_data_catalog_update_tag_template_field_async.py b/samples/generated_samples/datacatalog_generated_datacatalog_v1beta1_data_catalog_update_tag_template_field_async.py deleted file mode 100644 index bb7638ed..00000000 --- a/samples/generated_samples/datacatalog_generated_datacatalog_v1beta1_data_catalog_update_tag_template_field_async.py +++ /dev/null @@ -1,49 +0,0 @@ -# -*- coding: utf-8 -*- -# Copyright 2020 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# -# Generated code. DO NOT EDIT! -# -# Snippet for UpdateTagTemplateField -# NOTE: This snippet has been automatically generated for illustrative purposes only. -# It may require modifications to work in your environment. - -# To install the latest published package dependency, execute the following: -# python3 -m pip install google-cloud-datacatalog - - -# [START datacatalog_generated_datacatalog_v1beta1_DataCatalog_UpdateTagTemplateField_async] -from google.cloud import datacatalog_v1beta1 - - -async def sample_update_tag_template_field(): - # Create a client - client = datacatalog_v1beta1.DataCatalogAsyncClient() - - # Initialize request argument(s) - tag_template_field = datacatalog_v1beta1.TagTemplateField() - tag_template_field.type_.primitive_type = "TIMESTAMP" - - request = datacatalog_v1beta1.UpdateTagTemplateFieldRequest( - name="name_value", - tag_template_field=tag_template_field, - ) - - # Make the request - response = await client.update_tag_template_field(request=request) - - # Handle the response - print(response) - -# [END datacatalog_generated_datacatalog_v1beta1_DataCatalog_UpdateTagTemplateField_async] diff --git a/samples/generated_samples/datacatalog_generated_datacatalog_v1beta1_data_catalog_update_tag_template_field_sync.py b/samples/generated_samples/datacatalog_generated_datacatalog_v1beta1_data_catalog_update_tag_template_field_sync.py deleted file mode 100644 index 62518756..00000000 --- a/samples/generated_samples/datacatalog_generated_datacatalog_v1beta1_data_catalog_update_tag_template_field_sync.py +++ /dev/null @@ -1,49 +0,0 @@ -# -*- coding: utf-8 -*- -# Copyright 2020 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# -# Generated code. DO NOT EDIT! -# -# Snippet for UpdateTagTemplateField -# NOTE: This snippet has been automatically generated for illustrative purposes only. -# It may require modifications to work in your environment. - -# To install the latest published package dependency, execute the following: -# python3 -m pip install google-cloud-datacatalog - - -# [START datacatalog_generated_datacatalog_v1beta1_DataCatalog_UpdateTagTemplateField_sync] -from google.cloud import datacatalog_v1beta1 - - -def sample_update_tag_template_field(): - # Create a client - client = datacatalog_v1beta1.DataCatalogClient() - - # Initialize request argument(s) - tag_template_field = datacatalog_v1beta1.TagTemplateField() - tag_template_field.type_.primitive_type = "TIMESTAMP" - - request = datacatalog_v1beta1.UpdateTagTemplateFieldRequest( - name="name_value", - tag_template_field=tag_template_field, - ) - - # Make the request - response = client.update_tag_template_field(request=request) - - # Handle the response - print(response) - -# [END datacatalog_generated_datacatalog_v1beta1_DataCatalog_UpdateTagTemplateField_sync] diff --git a/samples/generated_samples/datacatalog_generated_datacatalog_v1beta1_data_catalog_update_tag_template_sync.py b/samples/generated_samples/datacatalog_generated_datacatalog_v1beta1_data_catalog_update_tag_template_sync.py deleted file mode 100644 index e7c97f0c..00000000 --- a/samples/generated_samples/datacatalog_generated_datacatalog_v1beta1_data_catalog_update_tag_template_sync.py +++ /dev/null @@ -1,44 +0,0 @@ -# -*- coding: utf-8 -*- -# Copyright 2020 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# -# Generated code. DO NOT EDIT! -# -# Snippet for UpdateTagTemplate -# NOTE: This snippet has been automatically generated for illustrative purposes only. -# It may require modifications to work in your environment. - -# To install the latest published package dependency, execute the following: -# python3 -m pip install google-cloud-datacatalog - - -# [START datacatalog_generated_datacatalog_v1beta1_DataCatalog_UpdateTagTemplate_sync] -from google.cloud import datacatalog_v1beta1 - - -def sample_update_tag_template(): - # Create a client - client = datacatalog_v1beta1.DataCatalogClient() - - # Initialize request argument(s) - request = datacatalog_v1beta1.UpdateTagTemplateRequest( - ) - - # Make the request - response = client.update_tag_template(request=request) - - # Handle the response - print(response) - -# [END datacatalog_generated_datacatalog_v1beta1_DataCatalog_UpdateTagTemplate_sync] diff --git a/samples/generated_samples/datacatalog_generated_datacatalog_v1beta1_policy_tag_manager_create_policy_tag_async.py b/samples/generated_samples/datacatalog_generated_datacatalog_v1beta1_policy_tag_manager_create_policy_tag_async.py deleted file mode 100644 index 27480d1a..00000000 --- a/samples/generated_samples/datacatalog_generated_datacatalog_v1beta1_policy_tag_manager_create_policy_tag_async.py +++ /dev/null @@ -1,45 +0,0 @@ -# -*- coding: utf-8 -*- -# Copyright 2020 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# -# Generated code. DO NOT EDIT! -# -# Snippet for CreatePolicyTag -# NOTE: This snippet has been automatically generated for illustrative purposes only. -# It may require modifications to work in your environment. - -# To install the latest published package dependency, execute the following: -# python3 -m pip install google-cloud-datacatalog - - -# [START datacatalog_generated_datacatalog_v1beta1_PolicyTagManager_CreatePolicyTag_async] -from google.cloud import datacatalog_v1beta1 - - -async def sample_create_policy_tag(): - # Create a client - client = datacatalog_v1beta1.PolicyTagManagerAsyncClient() - - # Initialize request argument(s) - request = datacatalog_v1beta1.CreatePolicyTagRequest( - parent="parent_value", - ) - - # Make the request - response = await client.create_policy_tag(request=request) - - # Handle the response - print(response) - -# [END datacatalog_generated_datacatalog_v1beta1_PolicyTagManager_CreatePolicyTag_async] diff --git a/samples/generated_samples/datacatalog_generated_datacatalog_v1beta1_policy_tag_manager_create_policy_tag_sync.py b/samples/generated_samples/datacatalog_generated_datacatalog_v1beta1_policy_tag_manager_create_policy_tag_sync.py deleted file mode 100644 index b3a3e2a7..00000000 --- a/samples/generated_samples/datacatalog_generated_datacatalog_v1beta1_policy_tag_manager_create_policy_tag_sync.py +++ /dev/null @@ -1,45 +0,0 @@ -# -*- coding: utf-8 -*- -# Copyright 2020 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# -# Generated code. DO NOT EDIT! -# -# Snippet for CreatePolicyTag -# NOTE: This snippet has been automatically generated for illustrative purposes only. -# It may require modifications to work in your environment. - -# To install the latest published package dependency, execute the following: -# python3 -m pip install google-cloud-datacatalog - - -# [START datacatalog_generated_datacatalog_v1beta1_PolicyTagManager_CreatePolicyTag_sync] -from google.cloud import datacatalog_v1beta1 - - -def sample_create_policy_tag(): - # Create a client - client = datacatalog_v1beta1.PolicyTagManagerClient() - - # Initialize request argument(s) - request = datacatalog_v1beta1.CreatePolicyTagRequest( - parent="parent_value", - ) - - # Make the request - response = client.create_policy_tag(request=request) - - # Handle the response - print(response) - -# [END datacatalog_generated_datacatalog_v1beta1_PolicyTagManager_CreatePolicyTag_sync] diff --git a/samples/generated_samples/datacatalog_generated_datacatalog_v1beta1_policy_tag_manager_create_taxonomy_async.py b/samples/generated_samples/datacatalog_generated_datacatalog_v1beta1_policy_tag_manager_create_taxonomy_async.py deleted file mode 100644 index bd1827f8..00000000 --- a/samples/generated_samples/datacatalog_generated_datacatalog_v1beta1_policy_tag_manager_create_taxonomy_async.py +++ /dev/null @@ -1,45 +0,0 @@ -# -*- coding: utf-8 -*- -# Copyright 2020 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# -# Generated code. DO NOT EDIT! -# -# Snippet for CreateTaxonomy -# NOTE: This snippet has been automatically generated for illustrative purposes only. -# It may require modifications to work in your environment. - -# To install the latest published package dependency, execute the following: -# python3 -m pip install google-cloud-datacatalog - - -# [START datacatalog_generated_datacatalog_v1beta1_PolicyTagManager_CreateTaxonomy_async] -from google.cloud import datacatalog_v1beta1 - - -async def sample_create_taxonomy(): - # Create a client - client = datacatalog_v1beta1.PolicyTagManagerAsyncClient() - - # Initialize request argument(s) - request = datacatalog_v1beta1.CreateTaxonomyRequest( - parent="parent_value", - ) - - # Make the request - response = await client.create_taxonomy(request=request) - - # Handle the response - print(response) - -# [END datacatalog_generated_datacatalog_v1beta1_PolicyTagManager_CreateTaxonomy_async] diff --git a/samples/generated_samples/datacatalog_generated_datacatalog_v1beta1_policy_tag_manager_create_taxonomy_sync.py b/samples/generated_samples/datacatalog_generated_datacatalog_v1beta1_policy_tag_manager_create_taxonomy_sync.py deleted file mode 100644 index 4d92b15b..00000000 --- a/samples/generated_samples/datacatalog_generated_datacatalog_v1beta1_policy_tag_manager_create_taxonomy_sync.py +++ /dev/null @@ -1,45 +0,0 @@ -# -*- coding: utf-8 -*- -# Copyright 2020 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# -# Generated code. DO NOT EDIT! -# -# Snippet for CreateTaxonomy -# NOTE: This snippet has been automatically generated for illustrative purposes only. -# It may require modifications to work in your environment. - -# To install the latest published package dependency, execute the following: -# python3 -m pip install google-cloud-datacatalog - - -# [START datacatalog_generated_datacatalog_v1beta1_PolicyTagManager_CreateTaxonomy_sync] -from google.cloud import datacatalog_v1beta1 - - -def sample_create_taxonomy(): - # Create a client - client = datacatalog_v1beta1.PolicyTagManagerClient() - - # Initialize request argument(s) - request = datacatalog_v1beta1.CreateTaxonomyRequest( - parent="parent_value", - ) - - # Make the request - response = client.create_taxonomy(request=request) - - # Handle the response - print(response) - -# [END datacatalog_generated_datacatalog_v1beta1_PolicyTagManager_CreateTaxonomy_sync] diff --git a/samples/generated_samples/datacatalog_generated_datacatalog_v1beta1_policy_tag_manager_delete_policy_tag_async.py b/samples/generated_samples/datacatalog_generated_datacatalog_v1beta1_policy_tag_manager_delete_policy_tag_async.py deleted file mode 100644 index bdf691dc..00000000 --- a/samples/generated_samples/datacatalog_generated_datacatalog_v1beta1_policy_tag_manager_delete_policy_tag_async.py +++ /dev/null @@ -1,43 +0,0 @@ -# -*- coding: utf-8 -*- -# Copyright 2020 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# -# Generated code. DO NOT EDIT! -# -# Snippet for DeletePolicyTag -# NOTE: This snippet has been automatically generated for illustrative purposes only. -# It may require modifications to work in your environment. - -# To install the latest published package dependency, execute the following: -# python3 -m pip install google-cloud-datacatalog - - -# [START datacatalog_generated_datacatalog_v1beta1_PolicyTagManager_DeletePolicyTag_async] -from google.cloud import datacatalog_v1beta1 - - -async def sample_delete_policy_tag(): - # Create a client - client = datacatalog_v1beta1.PolicyTagManagerAsyncClient() - - # Initialize request argument(s) - request = datacatalog_v1beta1.DeletePolicyTagRequest( - name="name_value", - ) - - # Make the request - await client.delete_policy_tag(request=request) - - -# [END datacatalog_generated_datacatalog_v1beta1_PolicyTagManager_DeletePolicyTag_async] diff --git a/samples/generated_samples/datacatalog_generated_datacatalog_v1beta1_policy_tag_manager_delete_policy_tag_sync.py b/samples/generated_samples/datacatalog_generated_datacatalog_v1beta1_policy_tag_manager_delete_policy_tag_sync.py deleted file mode 100644 index 50384917..00000000 --- a/samples/generated_samples/datacatalog_generated_datacatalog_v1beta1_policy_tag_manager_delete_policy_tag_sync.py +++ /dev/null @@ -1,43 +0,0 @@ -# -*- coding: utf-8 -*- -# Copyright 2020 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# -# Generated code. DO NOT EDIT! -# -# Snippet for DeletePolicyTag -# NOTE: This snippet has been automatically generated for illustrative purposes only. -# It may require modifications to work in your environment. - -# To install the latest published package dependency, execute the following: -# python3 -m pip install google-cloud-datacatalog - - -# [START datacatalog_generated_datacatalog_v1beta1_PolicyTagManager_DeletePolicyTag_sync] -from google.cloud import datacatalog_v1beta1 - - -def sample_delete_policy_tag(): - # Create a client - client = datacatalog_v1beta1.PolicyTagManagerClient() - - # Initialize request argument(s) - request = datacatalog_v1beta1.DeletePolicyTagRequest( - name="name_value", - ) - - # Make the request - client.delete_policy_tag(request=request) - - -# [END datacatalog_generated_datacatalog_v1beta1_PolicyTagManager_DeletePolicyTag_sync] diff --git a/samples/generated_samples/datacatalog_generated_datacatalog_v1beta1_policy_tag_manager_delete_taxonomy_async.py b/samples/generated_samples/datacatalog_generated_datacatalog_v1beta1_policy_tag_manager_delete_taxonomy_async.py deleted file mode 100644 index cd27c4ca..00000000 --- a/samples/generated_samples/datacatalog_generated_datacatalog_v1beta1_policy_tag_manager_delete_taxonomy_async.py +++ /dev/null @@ -1,43 +0,0 @@ -# -*- coding: utf-8 -*- -# Copyright 2020 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# -# Generated code. DO NOT EDIT! -# -# Snippet for DeleteTaxonomy -# NOTE: This snippet has been automatically generated for illustrative purposes only. -# It may require modifications to work in your environment. - -# To install the latest published package dependency, execute the following: -# python3 -m pip install google-cloud-datacatalog - - -# [START datacatalog_generated_datacatalog_v1beta1_PolicyTagManager_DeleteTaxonomy_async] -from google.cloud import datacatalog_v1beta1 - - -async def sample_delete_taxonomy(): - # Create a client - client = datacatalog_v1beta1.PolicyTagManagerAsyncClient() - - # Initialize request argument(s) - request = datacatalog_v1beta1.DeleteTaxonomyRequest( - name="name_value", - ) - - # Make the request - await client.delete_taxonomy(request=request) - - -# [END datacatalog_generated_datacatalog_v1beta1_PolicyTagManager_DeleteTaxonomy_async] diff --git a/samples/generated_samples/datacatalog_generated_datacatalog_v1beta1_policy_tag_manager_delete_taxonomy_sync.py b/samples/generated_samples/datacatalog_generated_datacatalog_v1beta1_policy_tag_manager_delete_taxonomy_sync.py deleted file mode 100644 index 0cc99638..00000000 --- a/samples/generated_samples/datacatalog_generated_datacatalog_v1beta1_policy_tag_manager_delete_taxonomy_sync.py +++ /dev/null @@ -1,43 +0,0 @@ -# -*- coding: utf-8 -*- -# Copyright 2020 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# -# Generated code. DO NOT EDIT! -# -# Snippet for DeleteTaxonomy -# NOTE: This snippet has been automatically generated for illustrative purposes only. -# It may require modifications to work in your environment. - -# To install the latest published package dependency, execute the following: -# python3 -m pip install google-cloud-datacatalog - - -# [START datacatalog_generated_datacatalog_v1beta1_PolicyTagManager_DeleteTaxonomy_sync] -from google.cloud import datacatalog_v1beta1 - - -def sample_delete_taxonomy(): - # Create a client - client = datacatalog_v1beta1.PolicyTagManagerClient() - - # Initialize request argument(s) - request = datacatalog_v1beta1.DeleteTaxonomyRequest( - name="name_value", - ) - - # Make the request - client.delete_taxonomy(request=request) - - -# [END datacatalog_generated_datacatalog_v1beta1_PolicyTagManager_DeleteTaxonomy_sync] diff --git a/samples/generated_samples/datacatalog_generated_datacatalog_v1beta1_policy_tag_manager_get_iam_policy_async.py b/samples/generated_samples/datacatalog_generated_datacatalog_v1beta1_policy_tag_manager_get_iam_policy_async.py deleted file mode 100644 index 53a9f0a3..00000000 --- a/samples/generated_samples/datacatalog_generated_datacatalog_v1beta1_policy_tag_manager_get_iam_policy_async.py +++ /dev/null @@ -1,45 +0,0 @@ -# -*- coding: utf-8 -*- -# Copyright 2020 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# -# Generated code. DO NOT EDIT! -# -# Snippet for GetIamPolicy -# NOTE: This snippet has been automatically generated for illustrative purposes only. -# It may require modifications to work in your environment. - -# To install the latest published package dependency, execute the following: -# python3 -m pip install google-cloud-datacatalog - - -# [START datacatalog_generated_datacatalog_v1beta1_PolicyTagManager_GetIamPolicy_async] -from google.cloud import datacatalog_v1beta1 - - -async def sample_get_iam_policy(): - # Create a client - client = datacatalog_v1beta1.PolicyTagManagerAsyncClient() - - # Initialize request argument(s) - request = datacatalog_v1beta1.GetIamPolicyRequest( - resource="resource_value", - ) - - # Make the request - response = await client.get_iam_policy(request=request) - - # Handle the response - print(response) - -# [END datacatalog_generated_datacatalog_v1beta1_PolicyTagManager_GetIamPolicy_async] diff --git a/samples/generated_samples/datacatalog_generated_datacatalog_v1beta1_policy_tag_manager_get_iam_policy_sync.py b/samples/generated_samples/datacatalog_generated_datacatalog_v1beta1_policy_tag_manager_get_iam_policy_sync.py deleted file mode 100644 index ba5a610d..00000000 --- a/samples/generated_samples/datacatalog_generated_datacatalog_v1beta1_policy_tag_manager_get_iam_policy_sync.py +++ /dev/null @@ -1,45 +0,0 @@ -# -*- coding: utf-8 -*- -# Copyright 2020 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# -# Generated code. DO NOT EDIT! -# -# Snippet for GetIamPolicy -# NOTE: This snippet has been automatically generated for illustrative purposes only. -# It may require modifications to work in your environment. - -# To install the latest published package dependency, execute the following: -# python3 -m pip install google-cloud-datacatalog - - -# [START datacatalog_generated_datacatalog_v1beta1_PolicyTagManager_GetIamPolicy_sync] -from google.cloud import datacatalog_v1beta1 - - -def sample_get_iam_policy(): - # Create a client - client = datacatalog_v1beta1.PolicyTagManagerClient() - - # Initialize request argument(s) - request = datacatalog_v1beta1.GetIamPolicyRequest( - resource="resource_value", - ) - - # Make the request - response = client.get_iam_policy(request=request) - - # Handle the response - print(response) - -# [END datacatalog_generated_datacatalog_v1beta1_PolicyTagManager_GetIamPolicy_sync] diff --git a/samples/generated_samples/datacatalog_generated_datacatalog_v1beta1_policy_tag_manager_get_policy_tag_async.py b/samples/generated_samples/datacatalog_generated_datacatalog_v1beta1_policy_tag_manager_get_policy_tag_async.py deleted file mode 100644 index 336f6e55..00000000 --- a/samples/generated_samples/datacatalog_generated_datacatalog_v1beta1_policy_tag_manager_get_policy_tag_async.py +++ /dev/null @@ -1,45 +0,0 @@ -# -*- coding: utf-8 -*- -# Copyright 2020 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# -# Generated code. DO NOT EDIT! -# -# Snippet for GetPolicyTag -# NOTE: This snippet has been automatically generated for illustrative purposes only. -# It may require modifications to work in your environment. - -# To install the latest published package dependency, execute the following: -# python3 -m pip install google-cloud-datacatalog - - -# [START datacatalog_generated_datacatalog_v1beta1_PolicyTagManager_GetPolicyTag_async] -from google.cloud import datacatalog_v1beta1 - - -async def sample_get_policy_tag(): - # Create a client - client = datacatalog_v1beta1.PolicyTagManagerAsyncClient() - - # Initialize request argument(s) - request = datacatalog_v1beta1.GetPolicyTagRequest( - name="name_value", - ) - - # Make the request - response = await client.get_policy_tag(request=request) - - # Handle the response - print(response) - -# [END datacatalog_generated_datacatalog_v1beta1_PolicyTagManager_GetPolicyTag_async] diff --git a/samples/generated_samples/datacatalog_generated_datacatalog_v1beta1_policy_tag_manager_get_policy_tag_sync.py b/samples/generated_samples/datacatalog_generated_datacatalog_v1beta1_policy_tag_manager_get_policy_tag_sync.py deleted file mode 100644 index a085b558..00000000 --- a/samples/generated_samples/datacatalog_generated_datacatalog_v1beta1_policy_tag_manager_get_policy_tag_sync.py +++ /dev/null @@ -1,45 +0,0 @@ -# -*- coding: utf-8 -*- -# Copyright 2020 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# -# Generated code. DO NOT EDIT! -# -# Snippet for GetPolicyTag -# NOTE: This snippet has been automatically generated for illustrative purposes only. -# It may require modifications to work in your environment. - -# To install the latest published package dependency, execute the following: -# python3 -m pip install google-cloud-datacatalog - - -# [START datacatalog_generated_datacatalog_v1beta1_PolicyTagManager_GetPolicyTag_sync] -from google.cloud import datacatalog_v1beta1 - - -def sample_get_policy_tag(): - # Create a client - client = datacatalog_v1beta1.PolicyTagManagerClient() - - # Initialize request argument(s) - request = datacatalog_v1beta1.GetPolicyTagRequest( - name="name_value", - ) - - # Make the request - response = client.get_policy_tag(request=request) - - # Handle the response - print(response) - -# [END datacatalog_generated_datacatalog_v1beta1_PolicyTagManager_GetPolicyTag_sync] diff --git a/samples/generated_samples/datacatalog_generated_datacatalog_v1beta1_policy_tag_manager_get_taxonomy_async.py b/samples/generated_samples/datacatalog_generated_datacatalog_v1beta1_policy_tag_manager_get_taxonomy_async.py deleted file mode 100644 index 2b9b4377..00000000 --- a/samples/generated_samples/datacatalog_generated_datacatalog_v1beta1_policy_tag_manager_get_taxonomy_async.py +++ /dev/null @@ -1,45 +0,0 @@ -# -*- coding: utf-8 -*- -# Copyright 2020 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# -# Generated code. DO NOT EDIT! -# -# Snippet for GetTaxonomy -# NOTE: This snippet has been automatically generated for illustrative purposes only. -# It may require modifications to work in your environment. - -# To install the latest published package dependency, execute the following: -# python3 -m pip install google-cloud-datacatalog - - -# [START datacatalog_generated_datacatalog_v1beta1_PolicyTagManager_GetTaxonomy_async] -from google.cloud import datacatalog_v1beta1 - - -async def sample_get_taxonomy(): - # Create a client - client = datacatalog_v1beta1.PolicyTagManagerAsyncClient() - - # Initialize request argument(s) - request = datacatalog_v1beta1.GetTaxonomyRequest( - name="name_value", - ) - - # Make the request - response = await client.get_taxonomy(request=request) - - # Handle the response - print(response) - -# [END datacatalog_generated_datacatalog_v1beta1_PolicyTagManager_GetTaxonomy_async] diff --git a/samples/generated_samples/datacatalog_generated_datacatalog_v1beta1_policy_tag_manager_get_taxonomy_sync.py b/samples/generated_samples/datacatalog_generated_datacatalog_v1beta1_policy_tag_manager_get_taxonomy_sync.py deleted file mode 100644 index 4755a953..00000000 --- a/samples/generated_samples/datacatalog_generated_datacatalog_v1beta1_policy_tag_manager_get_taxonomy_sync.py +++ /dev/null @@ -1,45 +0,0 @@ -# -*- coding: utf-8 -*- -# Copyright 2020 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# -# Generated code. DO NOT EDIT! -# -# Snippet for GetTaxonomy -# NOTE: This snippet has been automatically generated for illustrative purposes only. -# It may require modifications to work in your environment. - -# To install the latest published package dependency, execute the following: -# python3 -m pip install google-cloud-datacatalog - - -# [START datacatalog_generated_datacatalog_v1beta1_PolicyTagManager_GetTaxonomy_sync] -from google.cloud import datacatalog_v1beta1 - - -def sample_get_taxonomy(): - # Create a client - client = datacatalog_v1beta1.PolicyTagManagerClient() - - # Initialize request argument(s) - request = datacatalog_v1beta1.GetTaxonomyRequest( - name="name_value", - ) - - # Make the request - response = client.get_taxonomy(request=request) - - # Handle the response - print(response) - -# [END datacatalog_generated_datacatalog_v1beta1_PolicyTagManager_GetTaxonomy_sync] diff --git a/samples/generated_samples/datacatalog_generated_datacatalog_v1beta1_policy_tag_manager_list_policy_tags_async.py b/samples/generated_samples/datacatalog_generated_datacatalog_v1beta1_policy_tag_manager_list_policy_tags_async.py deleted file mode 100644 index dca0729e..00000000 --- a/samples/generated_samples/datacatalog_generated_datacatalog_v1beta1_policy_tag_manager_list_policy_tags_async.py +++ /dev/null @@ -1,46 +0,0 @@ -# -*- coding: utf-8 -*- -# Copyright 2020 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# -# Generated code. DO NOT EDIT! -# -# Snippet for ListPolicyTags -# NOTE: This snippet has been automatically generated for illustrative purposes only. -# It may require modifications to work in your environment. - -# To install the latest published package dependency, execute the following: -# python3 -m pip install google-cloud-datacatalog - - -# [START datacatalog_generated_datacatalog_v1beta1_PolicyTagManager_ListPolicyTags_async] -from google.cloud import datacatalog_v1beta1 - - -async def sample_list_policy_tags(): - # Create a client - client = datacatalog_v1beta1.PolicyTagManagerAsyncClient() - - # Initialize request argument(s) - request = datacatalog_v1beta1.ListPolicyTagsRequest( - parent="parent_value", - ) - - # Make the request - page_result = client.list_policy_tags(request=request) - - # Handle the response - async for response in page_result: - print(response) - -# [END datacatalog_generated_datacatalog_v1beta1_PolicyTagManager_ListPolicyTags_async] diff --git a/samples/generated_samples/datacatalog_generated_datacatalog_v1beta1_policy_tag_manager_list_policy_tags_sync.py b/samples/generated_samples/datacatalog_generated_datacatalog_v1beta1_policy_tag_manager_list_policy_tags_sync.py deleted file mode 100644 index 8ae61ab3..00000000 --- a/samples/generated_samples/datacatalog_generated_datacatalog_v1beta1_policy_tag_manager_list_policy_tags_sync.py +++ /dev/null @@ -1,46 +0,0 @@ -# -*- coding: utf-8 -*- -# Copyright 2020 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# -# Generated code. DO NOT EDIT! -# -# Snippet for ListPolicyTags -# NOTE: This snippet has been automatically generated for illustrative purposes only. -# It may require modifications to work in your environment. - -# To install the latest published package dependency, execute the following: -# python3 -m pip install google-cloud-datacatalog - - -# [START datacatalog_generated_datacatalog_v1beta1_PolicyTagManager_ListPolicyTags_sync] -from google.cloud import datacatalog_v1beta1 - - -def sample_list_policy_tags(): - # Create a client - client = datacatalog_v1beta1.PolicyTagManagerClient() - - # Initialize request argument(s) - request = datacatalog_v1beta1.ListPolicyTagsRequest( - parent="parent_value", - ) - - # Make the request - page_result = client.list_policy_tags(request=request) - - # Handle the response - for response in page_result: - print(response) - -# [END datacatalog_generated_datacatalog_v1beta1_PolicyTagManager_ListPolicyTags_sync] diff --git a/samples/generated_samples/datacatalog_generated_datacatalog_v1beta1_policy_tag_manager_list_taxonomies_async.py b/samples/generated_samples/datacatalog_generated_datacatalog_v1beta1_policy_tag_manager_list_taxonomies_async.py deleted file mode 100644 index 1af9aa27..00000000 --- a/samples/generated_samples/datacatalog_generated_datacatalog_v1beta1_policy_tag_manager_list_taxonomies_async.py +++ /dev/null @@ -1,46 +0,0 @@ -# -*- coding: utf-8 -*- -# Copyright 2020 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# -# Generated code. DO NOT EDIT! -# -# Snippet for ListTaxonomies -# NOTE: This snippet has been automatically generated for illustrative purposes only. -# It may require modifications to work in your environment. - -# To install the latest published package dependency, execute the following: -# python3 -m pip install google-cloud-datacatalog - - -# [START datacatalog_generated_datacatalog_v1beta1_PolicyTagManager_ListTaxonomies_async] -from google.cloud import datacatalog_v1beta1 - - -async def sample_list_taxonomies(): - # Create a client - client = datacatalog_v1beta1.PolicyTagManagerAsyncClient() - - # Initialize request argument(s) - request = datacatalog_v1beta1.ListTaxonomiesRequest( - parent="parent_value", - ) - - # Make the request - page_result = client.list_taxonomies(request=request) - - # Handle the response - async for response in page_result: - print(response) - -# [END datacatalog_generated_datacatalog_v1beta1_PolicyTagManager_ListTaxonomies_async] diff --git a/samples/generated_samples/datacatalog_generated_datacatalog_v1beta1_policy_tag_manager_list_taxonomies_sync.py b/samples/generated_samples/datacatalog_generated_datacatalog_v1beta1_policy_tag_manager_list_taxonomies_sync.py deleted file mode 100644 index 1f5a02d2..00000000 --- a/samples/generated_samples/datacatalog_generated_datacatalog_v1beta1_policy_tag_manager_list_taxonomies_sync.py +++ /dev/null @@ -1,46 +0,0 @@ -# -*- coding: utf-8 -*- -# Copyright 2020 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# -# Generated code. DO NOT EDIT! -# -# Snippet for ListTaxonomies -# NOTE: This snippet has been automatically generated for illustrative purposes only. -# It may require modifications to work in your environment. - -# To install the latest published package dependency, execute the following: -# python3 -m pip install google-cloud-datacatalog - - -# [START datacatalog_generated_datacatalog_v1beta1_PolicyTagManager_ListTaxonomies_sync] -from google.cloud import datacatalog_v1beta1 - - -def sample_list_taxonomies(): - # Create a client - client = datacatalog_v1beta1.PolicyTagManagerClient() - - # Initialize request argument(s) - request = datacatalog_v1beta1.ListTaxonomiesRequest( - parent="parent_value", - ) - - # Make the request - page_result = client.list_taxonomies(request=request) - - # Handle the response - for response in page_result: - print(response) - -# [END datacatalog_generated_datacatalog_v1beta1_PolicyTagManager_ListTaxonomies_sync] diff --git a/samples/generated_samples/datacatalog_generated_datacatalog_v1beta1_policy_tag_manager_serialization_export_taxonomies_async.py b/samples/generated_samples/datacatalog_generated_datacatalog_v1beta1_policy_tag_manager_serialization_export_taxonomies_async.py deleted file mode 100644 index 2247eb1b..00000000 --- a/samples/generated_samples/datacatalog_generated_datacatalog_v1beta1_policy_tag_manager_serialization_export_taxonomies_async.py +++ /dev/null @@ -1,47 +0,0 @@ -# -*- coding: utf-8 -*- -# Copyright 2020 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# -# Generated code. DO NOT EDIT! -# -# Snippet for ExportTaxonomies -# NOTE: This snippet has been automatically generated for illustrative purposes only. -# It may require modifications to work in your environment. - -# To install the latest published package dependency, execute the following: -# python3 -m pip install google-cloud-datacatalog - - -# [START datacatalog_generated_datacatalog_v1beta1_PolicyTagManagerSerialization_ExportTaxonomies_async] -from google.cloud import datacatalog_v1beta1 - - -async def sample_export_taxonomies(): - # Create a client - client = datacatalog_v1beta1.PolicyTagManagerSerializationAsyncClient() - - # Initialize request argument(s) - request = datacatalog_v1beta1.ExportTaxonomiesRequest( - serialized_taxonomies=True, - parent="parent_value", - taxonomies=['taxonomies_value_1', 'taxonomies_value_2'], - ) - - # Make the request - response = await client.export_taxonomies(request=request) - - # Handle the response - print(response) - -# [END datacatalog_generated_datacatalog_v1beta1_PolicyTagManagerSerialization_ExportTaxonomies_async] diff --git a/samples/generated_samples/datacatalog_generated_datacatalog_v1beta1_policy_tag_manager_serialization_export_taxonomies_sync.py b/samples/generated_samples/datacatalog_generated_datacatalog_v1beta1_policy_tag_manager_serialization_export_taxonomies_sync.py deleted file mode 100644 index b1c45bb4..00000000 --- a/samples/generated_samples/datacatalog_generated_datacatalog_v1beta1_policy_tag_manager_serialization_export_taxonomies_sync.py +++ /dev/null @@ -1,47 +0,0 @@ -# -*- coding: utf-8 -*- -# Copyright 2020 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# -# Generated code. DO NOT EDIT! -# -# Snippet for ExportTaxonomies -# NOTE: This snippet has been automatically generated for illustrative purposes only. -# It may require modifications to work in your environment. - -# To install the latest published package dependency, execute the following: -# python3 -m pip install google-cloud-datacatalog - - -# [START datacatalog_generated_datacatalog_v1beta1_PolicyTagManagerSerialization_ExportTaxonomies_sync] -from google.cloud import datacatalog_v1beta1 - - -def sample_export_taxonomies(): - # Create a client - client = datacatalog_v1beta1.PolicyTagManagerSerializationClient() - - # Initialize request argument(s) - request = datacatalog_v1beta1.ExportTaxonomiesRequest( - serialized_taxonomies=True, - parent="parent_value", - taxonomies=['taxonomies_value_1', 'taxonomies_value_2'], - ) - - # Make the request - response = client.export_taxonomies(request=request) - - # Handle the response - print(response) - -# [END datacatalog_generated_datacatalog_v1beta1_PolicyTagManagerSerialization_ExportTaxonomies_sync] diff --git a/samples/generated_samples/datacatalog_generated_datacatalog_v1beta1_policy_tag_manager_serialization_import_taxonomies_async.py b/samples/generated_samples/datacatalog_generated_datacatalog_v1beta1_policy_tag_manager_serialization_import_taxonomies_async.py deleted file mode 100644 index af449642..00000000 --- a/samples/generated_samples/datacatalog_generated_datacatalog_v1beta1_policy_tag_manager_serialization_import_taxonomies_async.py +++ /dev/null @@ -1,49 +0,0 @@ -# -*- coding: utf-8 -*- -# Copyright 2020 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# -# Generated code. DO NOT EDIT! -# -# Snippet for ImportTaxonomies -# NOTE: This snippet has been automatically generated for illustrative purposes only. -# It may require modifications to work in your environment. - -# To install the latest published package dependency, execute the following: -# python3 -m pip install google-cloud-datacatalog - - -# [START datacatalog_generated_datacatalog_v1beta1_PolicyTagManagerSerialization_ImportTaxonomies_async] -from google.cloud import datacatalog_v1beta1 - - -async def sample_import_taxonomies(): - # Create a client - client = datacatalog_v1beta1.PolicyTagManagerSerializationAsyncClient() - - # Initialize request argument(s) - inline_source = datacatalog_v1beta1.InlineSource() - inline_source.taxonomies.display_name = "display_name_value" - - request = datacatalog_v1beta1.ImportTaxonomiesRequest( - inline_source=inline_source, - parent="parent_value", - ) - - # Make the request - response = await client.import_taxonomies(request=request) - - # Handle the response - print(response) - -# [END datacatalog_generated_datacatalog_v1beta1_PolicyTagManagerSerialization_ImportTaxonomies_async] diff --git a/samples/generated_samples/datacatalog_generated_datacatalog_v1beta1_policy_tag_manager_serialization_import_taxonomies_sync.py b/samples/generated_samples/datacatalog_generated_datacatalog_v1beta1_policy_tag_manager_serialization_import_taxonomies_sync.py deleted file mode 100644 index adac2e7d..00000000 --- a/samples/generated_samples/datacatalog_generated_datacatalog_v1beta1_policy_tag_manager_serialization_import_taxonomies_sync.py +++ /dev/null @@ -1,49 +0,0 @@ -# -*- coding: utf-8 -*- -# Copyright 2020 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# -# Generated code. DO NOT EDIT! -# -# Snippet for ImportTaxonomies -# NOTE: This snippet has been automatically generated for illustrative purposes only. -# It may require modifications to work in your environment. - -# To install the latest published package dependency, execute the following: -# python3 -m pip install google-cloud-datacatalog - - -# [START datacatalog_generated_datacatalog_v1beta1_PolicyTagManagerSerialization_ImportTaxonomies_sync] -from google.cloud import datacatalog_v1beta1 - - -def sample_import_taxonomies(): - # Create a client - client = datacatalog_v1beta1.PolicyTagManagerSerializationClient() - - # Initialize request argument(s) - inline_source = datacatalog_v1beta1.InlineSource() - inline_source.taxonomies.display_name = "display_name_value" - - request = datacatalog_v1beta1.ImportTaxonomiesRequest( - inline_source=inline_source, - parent="parent_value", - ) - - # Make the request - response = client.import_taxonomies(request=request) - - # Handle the response - print(response) - -# [END datacatalog_generated_datacatalog_v1beta1_PolicyTagManagerSerialization_ImportTaxonomies_sync] diff --git a/samples/generated_samples/datacatalog_generated_datacatalog_v1beta1_policy_tag_manager_set_iam_policy_async.py b/samples/generated_samples/datacatalog_generated_datacatalog_v1beta1_policy_tag_manager_set_iam_policy_async.py deleted file mode 100644 index 7d27e55c..00000000 --- a/samples/generated_samples/datacatalog_generated_datacatalog_v1beta1_policy_tag_manager_set_iam_policy_async.py +++ /dev/null @@ -1,45 +0,0 @@ -# -*- coding: utf-8 -*- -# Copyright 2020 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# -# Generated code. DO NOT EDIT! -# -# Snippet for SetIamPolicy -# NOTE: This snippet has been automatically generated for illustrative purposes only. -# It may require modifications to work in your environment. - -# To install the latest published package dependency, execute the following: -# python3 -m pip install google-cloud-datacatalog - - -# [START datacatalog_generated_datacatalog_v1beta1_PolicyTagManager_SetIamPolicy_async] -from google.cloud import datacatalog_v1beta1 - - -async def sample_set_iam_policy(): - # Create a client - client = datacatalog_v1beta1.PolicyTagManagerAsyncClient() - - # Initialize request argument(s) - request = datacatalog_v1beta1.SetIamPolicyRequest( - resource="resource_value", - ) - - # Make the request - response = await client.set_iam_policy(request=request) - - # Handle the response - print(response) - -# [END datacatalog_generated_datacatalog_v1beta1_PolicyTagManager_SetIamPolicy_async] diff --git a/samples/generated_samples/datacatalog_generated_datacatalog_v1beta1_policy_tag_manager_set_iam_policy_sync.py b/samples/generated_samples/datacatalog_generated_datacatalog_v1beta1_policy_tag_manager_set_iam_policy_sync.py deleted file mode 100644 index e0c3cb9f..00000000 --- a/samples/generated_samples/datacatalog_generated_datacatalog_v1beta1_policy_tag_manager_set_iam_policy_sync.py +++ /dev/null @@ -1,45 +0,0 @@ -# -*- coding: utf-8 -*- -# Copyright 2020 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# -# Generated code. DO NOT EDIT! -# -# Snippet for SetIamPolicy -# NOTE: This snippet has been automatically generated for illustrative purposes only. -# It may require modifications to work in your environment. - -# To install the latest published package dependency, execute the following: -# python3 -m pip install google-cloud-datacatalog - - -# [START datacatalog_generated_datacatalog_v1beta1_PolicyTagManager_SetIamPolicy_sync] -from google.cloud import datacatalog_v1beta1 - - -def sample_set_iam_policy(): - # Create a client - client = datacatalog_v1beta1.PolicyTagManagerClient() - - # Initialize request argument(s) - request = datacatalog_v1beta1.SetIamPolicyRequest( - resource="resource_value", - ) - - # Make the request - response = client.set_iam_policy(request=request) - - # Handle the response - print(response) - -# [END datacatalog_generated_datacatalog_v1beta1_PolicyTagManager_SetIamPolicy_sync] diff --git a/samples/generated_samples/datacatalog_generated_datacatalog_v1beta1_policy_tag_manager_test_iam_permissions_async.py b/samples/generated_samples/datacatalog_generated_datacatalog_v1beta1_policy_tag_manager_test_iam_permissions_async.py deleted file mode 100644 index 3f303160..00000000 --- a/samples/generated_samples/datacatalog_generated_datacatalog_v1beta1_policy_tag_manager_test_iam_permissions_async.py +++ /dev/null @@ -1,46 +0,0 @@ -# -*- coding: utf-8 -*- -# Copyright 2020 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# -# Generated code. DO NOT EDIT! -# -# Snippet for TestIamPermissions -# NOTE: This snippet has been automatically generated for illustrative purposes only. -# It may require modifications to work in your environment. - -# To install the latest published package dependency, execute the following: -# python3 -m pip install google-cloud-datacatalog - - -# [START datacatalog_generated_datacatalog_v1beta1_PolicyTagManager_TestIamPermissions_async] -from google.cloud import datacatalog_v1beta1 - - -async def sample_test_iam_permissions(): - # Create a client - client = datacatalog_v1beta1.PolicyTagManagerAsyncClient() - - # Initialize request argument(s) - request = datacatalog_v1beta1.TestIamPermissionsRequest( - resource="resource_value", - permissions=['permissions_value_1', 'permissions_value_2'], - ) - - # Make the request - response = await client.test_iam_permissions(request=request) - - # Handle the response - print(response) - -# [END datacatalog_generated_datacatalog_v1beta1_PolicyTagManager_TestIamPermissions_async] diff --git a/samples/generated_samples/datacatalog_generated_datacatalog_v1beta1_policy_tag_manager_test_iam_permissions_sync.py b/samples/generated_samples/datacatalog_generated_datacatalog_v1beta1_policy_tag_manager_test_iam_permissions_sync.py deleted file mode 100644 index d29f622c..00000000 --- a/samples/generated_samples/datacatalog_generated_datacatalog_v1beta1_policy_tag_manager_test_iam_permissions_sync.py +++ /dev/null @@ -1,46 +0,0 @@ -# -*- coding: utf-8 -*- -# Copyright 2020 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# -# Generated code. DO NOT EDIT! -# -# Snippet for TestIamPermissions -# NOTE: This snippet has been automatically generated for illustrative purposes only. -# It may require modifications to work in your environment. - -# To install the latest published package dependency, execute the following: -# python3 -m pip install google-cloud-datacatalog - - -# [START datacatalog_generated_datacatalog_v1beta1_PolicyTagManager_TestIamPermissions_sync] -from google.cloud import datacatalog_v1beta1 - - -def sample_test_iam_permissions(): - # Create a client - client = datacatalog_v1beta1.PolicyTagManagerClient() - - # Initialize request argument(s) - request = datacatalog_v1beta1.TestIamPermissionsRequest( - resource="resource_value", - permissions=['permissions_value_1', 'permissions_value_2'], - ) - - # Make the request - response = client.test_iam_permissions(request=request) - - # Handle the response - print(response) - -# [END datacatalog_generated_datacatalog_v1beta1_PolicyTagManager_TestIamPermissions_sync] diff --git a/samples/generated_samples/datacatalog_generated_datacatalog_v1beta1_policy_tag_manager_update_policy_tag_async.py b/samples/generated_samples/datacatalog_generated_datacatalog_v1beta1_policy_tag_manager_update_policy_tag_async.py deleted file mode 100644 index 7189bdae..00000000 --- a/samples/generated_samples/datacatalog_generated_datacatalog_v1beta1_policy_tag_manager_update_policy_tag_async.py +++ /dev/null @@ -1,44 +0,0 @@ -# -*- coding: utf-8 -*- -# Copyright 2020 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# -# Generated code. DO NOT EDIT! -# -# Snippet for UpdatePolicyTag -# NOTE: This snippet has been automatically generated for illustrative purposes only. -# It may require modifications to work in your environment. - -# To install the latest published package dependency, execute the following: -# python3 -m pip install google-cloud-datacatalog - - -# [START datacatalog_generated_datacatalog_v1beta1_PolicyTagManager_UpdatePolicyTag_async] -from google.cloud import datacatalog_v1beta1 - - -async def sample_update_policy_tag(): - # Create a client - client = datacatalog_v1beta1.PolicyTagManagerAsyncClient() - - # Initialize request argument(s) - request = datacatalog_v1beta1.UpdatePolicyTagRequest( - ) - - # Make the request - response = await client.update_policy_tag(request=request) - - # Handle the response - print(response) - -# [END datacatalog_generated_datacatalog_v1beta1_PolicyTagManager_UpdatePolicyTag_async] diff --git a/samples/generated_samples/datacatalog_generated_datacatalog_v1beta1_policy_tag_manager_update_policy_tag_sync.py b/samples/generated_samples/datacatalog_generated_datacatalog_v1beta1_policy_tag_manager_update_policy_tag_sync.py deleted file mode 100644 index e4f733f5..00000000 --- a/samples/generated_samples/datacatalog_generated_datacatalog_v1beta1_policy_tag_manager_update_policy_tag_sync.py +++ /dev/null @@ -1,44 +0,0 @@ -# -*- coding: utf-8 -*- -# Copyright 2020 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# -# Generated code. DO NOT EDIT! -# -# Snippet for UpdatePolicyTag -# NOTE: This snippet has been automatically generated for illustrative purposes only. -# It may require modifications to work in your environment. - -# To install the latest published package dependency, execute the following: -# python3 -m pip install google-cloud-datacatalog - - -# [START datacatalog_generated_datacatalog_v1beta1_PolicyTagManager_UpdatePolicyTag_sync] -from google.cloud import datacatalog_v1beta1 - - -def sample_update_policy_tag(): - # Create a client - client = datacatalog_v1beta1.PolicyTagManagerClient() - - # Initialize request argument(s) - request = datacatalog_v1beta1.UpdatePolicyTagRequest( - ) - - # Make the request - response = client.update_policy_tag(request=request) - - # Handle the response - print(response) - -# [END datacatalog_generated_datacatalog_v1beta1_PolicyTagManager_UpdatePolicyTag_sync] diff --git a/samples/generated_samples/datacatalog_generated_datacatalog_v1beta1_policy_tag_manager_update_taxonomy_async.py b/samples/generated_samples/datacatalog_generated_datacatalog_v1beta1_policy_tag_manager_update_taxonomy_async.py deleted file mode 100644 index a0a4ce2c..00000000 --- a/samples/generated_samples/datacatalog_generated_datacatalog_v1beta1_policy_tag_manager_update_taxonomy_async.py +++ /dev/null @@ -1,44 +0,0 @@ -# -*- coding: utf-8 -*- -# Copyright 2020 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# -# Generated code. DO NOT EDIT! -# -# Snippet for UpdateTaxonomy -# NOTE: This snippet has been automatically generated for illustrative purposes only. -# It may require modifications to work in your environment. - -# To install the latest published package dependency, execute the following: -# python3 -m pip install google-cloud-datacatalog - - -# [START datacatalog_generated_datacatalog_v1beta1_PolicyTagManager_UpdateTaxonomy_async] -from google.cloud import datacatalog_v1beta1 - - -async def sample_update_taxonomy(): - # Create a client - client = datacatalog_v1beta1.PolicyTagManagerAsyncClient() - - # Initialize request argument(s) - request = datacatalog_v1beta1.UpdateTaxonomyRequest( - ) - - # Make the request - response = await client.update_taxonomy(request=request) - - # Handle the response - print(response) - -# [END datacatalog_generated_datacatalog_v1beta1_PolicyTagManager_UpdateTaxonomy_async] diff --git a/samples/generated_samples/datacatalog_generated_datacatalog_v1beta1_policy_tag_manager_update_taxonomy_sync.py b/samples/generated_samples/datacatalog_generated_datacatalog_v1beta1_policy_tag_manager_update_taxonomy_sync.py deleted file mode 100644 index 2a023518..00000000 --- a/samples/generated_samples/datacatalog_generated_datacatalog_v1beta1_policy_tag_manager_update_taxonomy_sync.py +++ /dev/null @@ -1,44 +0,0 @@ -# -*- coding: utf-8 -*- -# Copyright 2020 Google LLC -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# -# Generated code. DO NOT EDIT! -# -# Snippet for UpdateTaxonomy -# NOTE: This snippet has been automatically generated for illustrative purposes only. -# It may require modifications to work in your environment. - -# To install the latest published package dependency, execute the following: -# python3 -m pip install google-cloud-datacatalog - - -# [START datacatalog_generated_datacatalog_v1beta1_PolicyTagManager_UpdateTaxonomy_sync] -from google.cloud import datacatalog_v1beta1 - - -def sample_update_taxonomy(): - # Create a client - client = datacatalog_v1beta1.PolicyTagManagerClient() - - # Initialize request argument(s) - request = datacatalog_v1beta1.UpdateTaxonomyRequest( - ) - - # Make the request - response = client.update_taxonomy(request=request) - - # Handle the response - print(response) - -# [END datacatalog_generated_datacatalog_v1beta1_PolicyTagManager_UpdateTaxonomy_sync] diff --git a/samples/generated_samples/datacatalog_v1_generated_data_catalog_create_entry_async.py b/samples/generated_samples/datacatalog_v1_generated_data_catalog_create_entry_async.py index 79dffe9c..fe0c342d 100644 --- a/samples/generated_samples/datacatalog_v1_generated_data_catalog_create_entry_async.py +++ b/samples/generated_samples/datacatalog_v1_generated_data_catalog_create_entry_async.py @@ -34,7 +34,7 @@ async 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( diff --git a/samples/generated_samples/datacatalog_v1_generated_data_catalog_create_entry_sync.py b/samples/generated_samples/datacatalog_v1_generated_data_catalog_create_entry_sync.py index f145d1e8..13b5263e 100644 --- a/samples/generated_samples/datacatalog_v1_generated_data_catalog_create_entry_sync.py +++ b/samples/generated_samples/datacatalog_v1_generated_data_catalog_create_entry_sync.py @@ -34,7 +34,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( diff --git a/samples/generated_samples/datacatalog_v1_generated_data_catalog_update_entry_async.py b/samples/generated_samples/datacatalog_v1_generated_data_catalog_update_entry_async.py index db82720d..7250703a 100644 --- a/samples/generated_samples/datacatalog_v1_generated_data_catalog_update_entry_async.py +++ b/samples/generated_samples/datacatalog_v1_generated_data_catalog_update_entry_async.py @@ -34,7 +34,7 @@ async 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( diff --git a/samples/generated_samples/datacatalog_v1_generated_data_catalog_update_entry_sync.py b/samples/generated_samples/datacatalog_v1_generated_data_catalog_update_entry_sync.py index 88cb0c07..cf63d01a 100644 --- a/samples/generated_samples/datacatalog_v1_generated_data_catalog_update_entry_sync.py +++ b/samples/generated_samples/datacatalog_v1_generated_data_catalog_update_entry_sync.py @@ -34,7 +34,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( diff --git a/scripts/fixup_datacatalog_v1_keywords.py b/scripts/fixup_datacatalog_v1_keywords.py index dafea6ea..0ca2af3c 100644 --- a/scripts/fixup_datacatalog_v1_keywords.py +++ b/scripts/fixup_datacatalog_v1_keywords.py @@ -73,7 +73,7 @@ class datacatalogCallTransformer(cst.CSTTransformer): 'rename_tag_template_field_enum_value': ('name', 'new_enum_value_display_name', ), 'replace_taxonomy': ('name', 'serialized_taxonomy', ), 'search_catalog': ('scope', 'query', 'page_size', 'page_token', 'order_by', ), - 'set_iam_policy': ('resource', 'policy', ), + 'set_iam_policy': ('resource', 'policy', 'update_mask', ), 'star_entry': ('name', ), 'test_iam_permissions': ('resource', 'permissions', ), 'unstar_entry': ('name', ), diff --git a/scripts/fixup_datacatalog_v1beta1_keywords.py b/scripts/fixup_datacatalog_v1beta1_keywords.py index e3ba622d..50c1da5e 100644 --- a/scripts/fixup_datacatalog_v1beta1_keywords.py +++ b/scripts/fixup_datacatalog_v1beta1_keywords.py @@ -69,7 +69,7 @@ class datacatalogCallTransformer(cst.CSTTransformer): 'lookup_entry': ('linked_resource', 'sql_resource', ), 'rename_tag_template_field': ('name', 'new_tag_template_field_id', ), 'search_catalog': ('scope', 'query', 'page_size', 'page_token', 'order_by', ), - 'set_iam_policy': ('resource', 'policy', ), + 'set_iam_policy': ('resource', 'policy', 'update_mask', ), 'test_iam_permissions': ('resource', 'permissions', ), 'update_entry': ('entry', 'update_mask', ), 'update_entry_group': ('entry_group', 'update_mask', ), diff --git a/setup.py b/setup.py index 001a6d3f..a859f720 100644 --- a/setup.py +++ b/setup.py @@ -32,7 +32,7 @@ # Until this issue is closed # https://github.com/googleapis/google-cloud-python/issues/10566 "google-api-core[grpc] >= 1.31.5, <3.0.0dev,!=2.0.*,!=2.1.*,!=2.2.*,!=2.3.0", - "grpc-google-iam-v1 >= 0.12.3, < 0.13dev", + "grpc-google-iam-v1 >= 0.12.4, <1.0.0dev", "proto-plus >= 1.15.0", ] diff --git a/testing/constraints-3.6.txt b/testing/constraints-3.6.txt index ccce5716..71613fcc 100644 --- a/testing/constraints-3.6.txt +++ b/testing/constraints-3.6.txt @@ -6,6 +6,6 @@ # e.g., if setup.py has "foo >= 1.14.0, < 2.0.0dev", # Then this file should have foo==1.14.0 google-api-core==1.31.5 -grpc-google-iam-v1==0.12.3 +grpc-google-iam-v1==0.12.4 libcst==0.2.5 proto-plus==1.15.0 diff --git a/tests/unit/gapic/datacatalog_v1/test_data_catalog.py b/tests/unit/gapic/datacatalog_v1/test_data_catalog.py index 0e9fe7fb..5b193d91 100644 --- a/tests/unit/gapic/datacatalog_v1/test_data_catalog.py +++ b/tests/unit/gapic/datacatalog_v1/test_data_catalog.py @@ -39,7 +39,9 @@ from google.cloud.datacatalog_v1.types import common from google.cloud.datacatalog_v1.types import data_source from google.cloud.datacatalog_v1.types import datacatalog +from google.cloud.datacatalog_v1.types import dataplex_spec from google.cloud.datacatalog_v1.types import gcs_fileset_spec +from google.cloud.datacatalog_v1.types import physical_schema from google.cloud.datacatalog_v1.types import schema from google.cloud.datacatalog_v1.types import search from google.cloud.datacatalog_v1.types import table_spec @@ -98,24 +100,24 @@ def test__get_default_mtls_endpoint(): @pytest.mark.parametrize( - "client_class", + "client_class,transport_name", [ - DataCatalogClient, - DataCatalogAsyncClient, + (DataCatalogClient, "grpc"), + (DataCatalogAsyncClient, "grpc_asyncio"), ], ) -def test_data_catalog_client_from_service_account_info(client_class): +def test_data_catalog_client_from_service_account_info(client_class, transport_name): creds = ga_credentials.AnonymousCredentials() with mock.patch.object( service_account.Credentials, "from_service_account_info" ) as factory: factory.return_value = creds info = {"valid": True} - client = client_class.from_service_account_info(info) + client = client_class.from_service_account_info(info, transport=transport_name) assert client.transport._credentials == creds assert isinstance(client, client_class) - assert client.transport._host == "datacatalog.googleapis.com:443" + assert client.transport._host == ("datacatalog.googleapis.com:443") @pytest.mark.parametrize( @@ -144,27 +146,31 @@ def test_data_catalog_client_service_account_always_use_jwt( @pytest.mark.parametrize( - "client_class", + "client_class,transport_name", [ - DataCatalogClient, - DataCatalogAsyncClient, + (DataCatalogClient, "grpc"), + (DataCatalogAsyncClient, "grpc_asyncio"), ], ) -def test_data_catalog_client_from_service_account_file(client_class): +def test_data_catalog_client_from_service_account_file(client_class, transport_name): creds = ga_credentials.AnonymousCredentials() with mock.patch.object( service_account.Credentials, "from_service_account_file" ) as factory: factory.return_value = creds - client = client_class.from_service_account_file("dummy/file/path.json") + client = client_class.from_service_account_file( + "dummy/file/path.json", transport=transport_name + ) assert client.transport._credentials == creds assert isinstance(client, client_class) - client = client_class.from_service_account_json("dummy/file/path.json") + client = client_class.from_service_account_json( + "dummy/file/path.json", transport=transport_name + ) assert client.transport._credentials == creds assert isinstance(client, client_class) - assert client.transport._host == "datacatalog.googleapis.com:443" + assert client.transport._host == ("datacatalog.googleapis.com:443") def test_data_catalog_client_get_transport_class(): @@ -962,7 +968,7 @@ async def test_search_catalog_async_pager(): ) assert async_pager.next_page_token == "abc" responses = [] - async for response in async_pager: + async for response in async_pager: # pragma: no branch responses.append(response) assert len(responses) == 6 @@ -1008,7 +1014,9 @@ async def test_search_catalog_async_pages(): RuntimeError, ) pages = [] - async for page_ in (await client.search_catalog(request={})).pages: + async for page_ in ( + await client.search_catalog(request={}) + ).pages: # pragma: no branch pages.append(page_) for page_, token in zip(pages, ["abc", "def", "ghi", ""]): assert page_.raw_page.next_page_token == token @@ -2422,7 +2430,7 @@ async def test_list_entry_groups_async_pager(): ) assert async_pager.next_page_token == "abc" responses = [] - async for response in async_pager: + async for response in async_pager: # pragma: no branch responses.append(response) assert len(responses) == 6 @@ -2470,7 +2478,9 @@ async def test_list_entry_groups_async_pages(): RuntimeError, ) pages = [] - async for page_ in (await client.list_entry_groups(request={})).pages: + async for page_ in ( + await client.list_entry_groups(request={}) + ).pages: # pragma: no branch pages.append(page_) for page_, token in zip(pages, ["abc", "def", "ghi", ""]): assert page_.raw_page.next_page_token == token @@ -3961,7 +3971,7 @@ async def test_list_entries_async_pager(): ) assert async_pager.next_page_token == "abc" responses = [] - async for response in async_pager: + async for response in async_pager: # pragma: no branch responses.append(response) assert len(responses) == 6 @@ -4007,7 +4017,9 @@ async def test_list_entries_async_pages(): RuntimeError, ) pages = [] - async for page_ in (await client.list_entries(request={})).pages: + async for page_ in ( + await client.list_entries(request={}) + ).pages: # pragma: no branch pages.append(page_) for page_, token in zip(pages, ["abc", "def", "ghi", ""]): assert page_.raw_page.next_page_token == token @@ -7774,7 +7786,7 @@ async def test_list_tags_async_pager(): ) assert async_pager.next_page_token == "abc" responses = [] - async for response in async_pager: + async for response in async_pager: # pragma: no branch responses.append(response) assert len(responses) == 6 @@ -7820,7 +7832,9 @@ async def test_list_tags_async_pages(): RuntimeError, ) pages = [] - async for page_ in (await client.list_tags(request={})).pages: + async for page_ in ( + await client.list_tags(request={}) + ).pages: # pragma: no branch pages.append(page_) for page_, token in zip(pages, ["abc", "def", "ghi", ""]): assert page_.raw_page.next_page_token == token @@ -8442,6 +8456,7 @@ def test_set_iam_policy_from_dict_foreign(): request={ "resource": "resource_value", "policy": policy_pb2.Policy(version=774), + "update_mask": field_mask_pb2.FieldMask(paths=["paths_value"]), } ) call.assert_called() @@ -9262,24 +9277,40 @@ def test_data_catalog_grpc_transport_client_cert_source_for_mtls(transport_class ) -def test_data_catalog_host_no_port(): +@pytest.mark.parametrize( + "transport_name", + [ + "grpc", + "grpc_asyncio", + ], +) +def test_data_catalog_host_no_port(transport_name): client = DataCatalogClient( credentials=ga_credentials.AnonymousCredentials(), client_options=client_options.ClientOptions( api_endpoint="datacatalog.googleapis.com" ), + transport=transport_name, ) - assert client.transport._host == "datacatalog.googleapis.com:443" + assert client.transport._host == ("datacatalog.googleapis.com:443") -def test_data_catalog_host_with_port(): +@pytest.mark.parametrize( + "transport_name", + [ + "grpc", + "grpc_asyncio", + ], +) +def test_data_catalog_host_with_port(transport_name): client = DataCatalogClient( credentials=ga_credentials.AnonymousCredentials(), client_options=client_options.ClientOptions( api_endpoint="datacatalog.googleapis.com:8000" ), + transport=transport_name, ) - assert client.transport._host == "datacatalog.googleapis.com:8000" + assert client.transport._host == ("datacatalog.googleapis.com:8000") def test_data_catalog_grpc_transport_channel(): diff --git a/tests/unit/gapic/datacatalog_v1/test_policy_tag_manager.py b/tests/unit/gapic/datacatalog_v1/test_policy_tag_manager.py index 17ec3cb9..7b2ac1af 100644 --- a/tests/unit/gapic/datacatalog_v1/test_policy_tag_manager.py +++ b/tests/unit/gapic/datacatalog_v1/test_policy_tag_manager.py @@ -97,24 +97,26 @@ def test__get_default_mtls_endpoint(): @pytest.mark.parametrize( - "client_class", + "client_class,transport_name", [ - PolicyTagManagerClient, - PolicyTagManagerAsyncClient, + (PolicyTagManagerClient, "grpc"), + (PolicyTagManagerAsyncClient, "grpc_asyncio"), ], ) -def test_policy_tag_manager_client_from_service_account_info(client_class): +def test_policy_tag_manager_client_from_service_account_info( + client_class, transport_name +): creds = ga_credentials.AnonymousCredentials() with mock.patch.object( service_account.Credentials, "from_service_account_info" ) as factory: factory.return_value = creds info = {"valid": True} - client = client_class.from_service_account_info(info) + client = client_class.from_service_account_info(info, transport=transport_name) assert client.transport._credentials == creds assert isinstance(client, client_class) - assert client.transport._host == "datacatalog.googleapis.com:443" + assert client.transport._host == ("datacatalog.googleapis.com:443") @pytest.mark.parametrize( @@ -143,27 +145,33 @@ def test_policy_tag_manager_client_service_account_always_use_jwt( @pytest.mark.parametrize( - "client_class", + "client_class,transport_name", [ - PolicyTagManagerClient, - PolicyTagManagerAsyncClient, + (PolicyTagManagerClient, "grpc"), + (PolicyTagManagerAsyncClient, "grpc_asyncio"), ], ) -def test_policy_tag_manager_client_from_service_account_file(client_class): +def test_policy_tag_manager_client_from_service_account_file( + client_class, transport_name +): creds = ga_credentials.AnonymousCredentials() with mock.patch.object( service_account.Credentials, "from_service_account_file" ) as factory: factory.return_value = creds - client = client_class.from_service_account_file("dummy/file/path.json") + client = client_class.from_service_account_file( + "dummy/file/path.json", transport=transport_name + ) assert client.transport._credentials == creds assert isinstance(client, client_class) - client = client_class.from_service_account_json("dummy/file/path.json") + client = client_class.from_service_account_json( + "dummy/file/path.json", transport=transport_name + ) assert client.transport._credentials == creds assert isinstance(client, client_class) - assert client.transport._host == "datacatalog.googleapis.com:443" + assert client.transport._host == ("datacatalog.googleapis.com:443") def test_policy_tag_manager_client_get_transport_class(): @@ -1771,7 +1779,7 @@ async def test_list_taxonomies_async_pager(): ) assert async_pager.next_page_token == "abc" responses = [] - async for response in async_pager: + async for response in async_pager: # pragma: no branch responses.append(response) assert len(responses) == 6 @@ -1817,7 +1825,9 @@ async def test_list_taxonomies_async_pages(): RuntimeError, ) pages = [] - async for page_ in (await client.list_taxonomies(request={})).pages: + async for page_ in ( + await client.list_taxonomies(request={}) + ).pages: # pragma: no branch pages.append(page_) for page_, token in zip(pages, ["abc", "def", "ghi", ""]): assert page_.raw_page.next_page_token == token @@ -3216,7 +3226,7 @@ async def test_list_policy_tags_async_pager(): ) assert async_pager.next_page_token == "abc" responses = [] - async for response in async_pager: + async for response in async_pager: # pragma: no branch responses.append(response) assert len(responses) == 6 @@ -3262,7 +3272,9 @@ async def test_list_policy_tags_async_pages(): RuntimeError, ) pages = [] - async for page_ in (await client.list_policy_tags(request={})).pages: + async for page_ in ( + await client.list_policy_tags(request={}) + ).pages: # pragma: no branch pages.append(page_) for page_, token in zip(pages, ["abc", "def", "ghi", ""]): assert page_.raw_page.next_page_token == token @@ -3849,6 +3861,7 @@ def test_set_iam_policy_from_dict_foreign(): request={ "resource": "resource_value", "policy": policy_pb2.Policy(version=774), + "update_mask": field_mask_pb2.FieldMask(paths=["paths_value"]), } ) call.assert_called() @@ -4324,24 +4337,40 @@ def test_policy_tag_manager_grpc_transport_client_cert_source_for_mtls(transport ) -def test_policy_tag_manager_host_no_port(): +@pytest.mark.parametrize( + "transport_name", + [ + "grpc", + "grpc_asyncio", + ], +) +def test_policy_tag_manager_host_no_port(transport_name): client = PolicyTagManagerClient( credentials=ga_credentials.AnonymousCredentials(), client_options=client_options.ClientOptions( api_endpoint="datacatalog.googleapis.com" ), + transport=transport_name, ) - assert client.transport._host == "datacatalog.googleapis.com:443" + assert client.transport._host == ("datacatalog.googleapis.com:443") -def test_policy_tag_manager_host_with_port(): +@pytest.mark.parametrize( + "transport_name", + [ + "grpc", + "grpc_asyncio", + ], +) +def test_policy_tag_manager_host_with_port(transport_name): client = PolicyTagManagerClient( credentials=ga_credentials.AnonymousCredentials(), client_options=client_options.ClientOptions( api_endpoint="datacatalog.googleapis.com:8000" ), + transport=transport_name, ) - assert client.transport._host == "datacatalog.googleapis.com:8000" + assert client.transport._host == ("datacatalog.googleapis.com:8000") def test_policy_tag_manager_grpc_transport_channel(): diff --git a/tests/unit/gapic/datacatalog_v1/test_policy_tag_manager_serialization.py b/tests/unit/gapic/datacatalog_v1/test_policy_tag_manager_serialization.py index cfcfc43e..5ff31399 100644 --- a/tests/unit/gapic/datacatalog_v1/test_policy_tag_manager_serialization.py +++ b/tests/unit/gapic/datacatalog_v1/test_policy_tag_manager_serialization.py @@ -97,14 +97,14 @@ def test__get_default_mtls_endpoint(): @pytest.mark.parametrize( - "client_class", + "client_class,transport_name", [ - PolicyTagManagerSerializationClient, - PolicyTagManagerSerializationAsyncClient, + (PolicyTagManagerSerializationClient, "grpc"), + (PolicyTagManagerSerializationAsyncClient, "grpc_asyncio"), ], ) def test_policy_tag_manager_serialization_client_from_service_account_info( - client_class, + client_class, transport_name ): creds = ga_credentials.AnonymousCredentials() with mock.patch.object( @@ -112,11 +112,11 @@ def test_policy_tag_manager_serialization_client_from_service_account_info( ) as factory: factory.return_value = creds info = {"valid": True} - client = client_class.from_service_account_info(info) + client = client_class.from_service_account_info(info, transport=transport_name) assert client.transport._credentials == creds assert isinstance(client, client_class) - assert client.transport._host == "datacatalog.googleapis.com:443" + assert client.transport._host == ("datacatalog.googleapis.com:443") @pytest.mark.parametrize( @@ -145,29 +145,33 @@ def test_policy_tag_manager_serialization_client_service_account_always_use_jwt( @pytest.mark.parametrize( - "client_class", + "client_class,transport_name", [ - PolicyTagManagerSerializationClient, - PolicyTagManagerSerializationAsyncClient, + (PolicyTagManagerSerializationClient, "grpc"), + (PolicyTagManagerSerializationAsyncClient, "grpc_asyncio"), ], ) def test_policy_tag_manager_serialization_client_from_service_account_file( - client_class, + client_class, transport_name ): creds = ga_credentials.AnonymousCredentials() with mock.patch.object( service_account.Credentials, "from_service_account_file" ) as factory: factory.return_value = creds - client = client_class.from_service_account_file("dummy/file/path.json") + client = client_class.from_service_account_file( + "dummy/file/path.json", transport=transport_name + ) assert client.transport._credentials == creds assert isinstance(client, client_class) - client = client_class.from_service_account_json("dummy/file/path.json") + client = client_class.from_service_account_json( + "dummy/file/path.json", transport=transport_name + ) assert client.transport._credentials == creds assert isinstance(client, client_class) - assert client.transport._host == "datacatalog.googleapis.com:443" + assert client.transport._host == ("datacatalog.googleapis.com:443") def test_policy_tag_manager_serialization_client_get_transport_class(): @@ -1454,24 +1458,40 @@ def test_policy_tag_manager_serialization_grpc_transport_client_cert_source_for_ ) -def test_policy_tag_manager_serialization_host_no_port(): +@pytest.mark.parametrize( + "transport_name", + [ + "grpc", + "grpc_asyncio", + ], +) +def test_policy_tag_manager_serialization_host_no_port(transport_name): client = PolicyTagManagerSerializationClient( credentials=ga_credentials.AnonymousCredentials(), client_options=client_options.ClientOptions( api_endpoint="datacatalog.googleapis.com" ), + transport=transport_name, ) - assert client.transport._host == "datacatalog.googleapis.com:443" + assert client.transport._host == ("datacatalog.googleapis.com:443") -def test_policy_tag_manager_serialization_host_with_port(): +@pytest.mark.parametrize( + "transport_name", + [ + "grpc", + "grpc_asyncio", + ], +) +def test_policy_tag_manager_serialization_host_with_port(transport_name): client = PolicyTagManagerSerializationClient( credentials=ga_credentials.AnonymousCredentials(), client_options=client_options.ClientOptions( api_endpoint="datacatalog.googleapis.com:8000" ), + transport=transport_name, ) - assert client.transport._host == "datacatalog.googleapis.com:8000" + assert client.transport._host == ("datacatalog.googleapis.com:8000") def test_policy_tag_manager_serialization_grpc_transport_channel(): diff --git a/tests/unit/gapic/datacatalog_v1beta1/test_data_catalog.py b/tests/unit/gapic/datacatalog_v1beta1/test_data_catalog.py index c53d565f..27c9f515 100644 --- a/tests/unit/gapic/datacatalog_v1beta1/test_data_catalog.py +++ b/tests/unit/gapic/datacatalog_v1beta1/test_data_catalog.py @@ -97,24 +97,24 @@ def test__get_default_mtls_endpoint(): @pytest.mark.parametrize( - "client_class", + "client_class,transport_name", [ - DataCatalogClient, - DataCatalogAsyncClient, + (DataCatalogClient, "grpc"), + (DataCatalogAsyncClient, "grpc_asyncio"), ], ) -def test_data_catalog_client_from_service_account_info(client_class): +def test_data_catalog_client_from_service_account_info(client_class, transport_name): creds = ga_credentials.AnonymousCredentials() with mock.patch.object( service_account.Credentials, "from_service_account_info" ) as factory: factory.return_value = creds info = {"valid": True} - client = client_class.from_service_account_info(info) + client = client_class.from_service_account_info(info, transport=transport_name) assert client.transport._credentials == creds assert isinstance(client, client_class) - assert client.transport._host == "datacatalog.googleapis.com:443" + assert client.transport._host == ("datacatalog.googleapis.com:443") @pytest.mark.parametrize( @@ -143,27 +143,31 @@ def test_data_catalog_client_service_account_always_use_jwt( @pytest.mark.parametrize( - "client_class", + "client_class,transport_name", [ - DataCatalogClient, - DataCatalogAsyncClient, + (DataCatalogClient, "grpc"), + (DataCatalogAsyncClient, "grpc_asyncio"), ], ) -def test_data_catalog_client_from_service_account_file(client_class): +def test_data_catalog_client_from_service_account_file(client_class, transport_name): creds = ga_credentials.AnonymousCredentials() with mock.patch.object( service_account.Credentials, "from_service_account_file" ) as factory: factory.return_value = creds - client = client_class.from_service_account_file("dummy/file/path.json") + client = client_class.from_service_account_file( + "dummy/file/path.json", transport=transport_name + ) assert client.transport._credentials == creds assert isinstance(client, client_class) - client = client_class.from_service_account_json("dummy/file/path.json") + client = client_class.from_service_account_json( + "dummy/file/path.json", transport=transport_name + ) assert client.transport._credentials == creds assert isinstance(client, client_class) - assert client.transport._host == "datacatalog.googleapis.com:443" + assert client.transport._host == ("datacatalog.googleapis.com:443") def test_data_catalog_client_get_transport_class(): @@ -957,7 +961,7 @@ async def test_search_catalog_async_pager(): ) assert async_pager.next_page_token == "abc" responses = [] - async for response in async_pager: + async for response in async_pager: # pragma: no branch responses.append(response) assert len(responses) == 6 @@ -1003,7 +1007,9 @@ async def test_search_catalog_async_pages(): RuntimeError, ) pages = [] - async for page_ in (await client.search_catalog(request={})).pages: + async for page_ in ( + await client.search_catalog(request={}) + ).pages: # pragma: no branch pages.append(page_) for page_, token in zip(pages, ["abc", "def", "ghi", ""]): assert page_.raw_page.next_page_token == token @@ -2417,7 +2423,7 @@ async def test_list_entry_groups_async_pager(): ) assert async_pager.next_page_token == "abc" responses = [] - async for response in async_pager: + async for response in async_pager: # pragma: no branch responses.append(response) assert len(responses) == 6 @@ -2465,7 +2471,9 @@ async def test_list_entry_groups_async_pages(): RuntimeError, ) pages = [] - async for page_ in (await client.list_entry_groups(request={})).pages: + async for page_ in ( + await client.list_entry_groups(request={}) + ).pages: # pragma: no branch pages.append(page_) for page_, token in zip(pages, ["abc", "def", "ghi", ""]): assert page_.raw_page.next_page_token == token @@ -3928,7 +3936,7 @@ async def test_list_entries_async_pager(): ) assert async_pager.next_page_token == "abc" responses = [] - async for response in async_pager: + async for response in async_pager: # pragma: no branch responses.append(response) assert len(responses) == 6 @@ -3974,7 +3982,9 @@ async def test_list_entries_async_pages(): RuntimeError, ) pages = [] - async for page_ in (await client.list_entries(request={})).pages: + async for page_ in ( + await client.list_entries(request={}) + ).pages: # pragma: no branch pages.append(page_) for page_, token in zip(pages, ["abc", "def", "ghi", ""]): assert page_.raw_page.next_page_token == token @@ -7130,7 +7140,7 @@ async def test_list_tags_async_pager(): ) assert async_pager.next_page_token == "abc" responses = [] - async for response in async_pager: + async for response in async_pager: # pragma: no branch responses.append(response) assert len(responses) == 6 @@ -7176,7 +7186,9 @@ async def test_list_tags_async_pages(): RuntimeError, ) pages = [] - async for page_ in (await client.list_tags(request={})).pages: + async for page_ in ( + await client.list_tags(request={}) + ).pages: # pragma: no branch pages.append(page_) for page_, token in zip(pages, ["abc", "def", "ghi", ""]): assert page_.raw_page.next_page_token == token @@ -7346,6 +7358,7 @@ def test_set_iam_policy_from_dict_foreign(): request={ "resource": "resource_value", "policy": policy_pb2.Policy(version=774), + "update_mask": field_mask_pb2.FieldMask(paths=["paths_value"]), } ) call.assert_called() @@ -8161,24 +8174,40 @@ def test_data_catalog_grpc_transport_client_cert_source_for_mtls(transport_class ) -def test_data_catalog_host_no_port(): +@pytest.mark.parametrize( + "transport_name", + [ + "grpc", + "grpc_asyncio", + ], +) +def test_data_catalog_host_no_port(transport_name): client = DataCatalogClient( credentials=ga_credentials.AnonymousCredentials(), client_options=client_options.ClientOptions( api_endpoint="datacatalog.googleapis.com" ), + transport=transport_name, ) - assert client.transport._host == "datacatalog.googleapis.com:443" + assert client.transport._host == ("datacatalog.googleapis.com:443") -def test_data_catalog_host_with_port(): +@pytest.mark.parametrize( + "transport_name", + [ + "grpc", + "grpc_asyncio", + ], +) +def test_data_catalog_host_with_port(transport_name): client = DataCatalogClient( credentials=ga_credentials.AnonymousCredentials(), client_options=client_options.ClientOptions( api_endpoint="datacatalog.googleapis.com:8000" ), + transport=transport_name, ) - assert client.transport._host == "datacatalog.googleapis.com:8000" + assert client.transport._host == ("datacatalog.googleapis.com:8000") def test_data_catalog_grpc_transport_channel(): diff --git a/tests/unit/gapic/datacatalog_v1beta1/test_policy_tag_manager.py b/tests/unit/gapic/datacatalog_v1beta1/test_policy_tag_manager.py index 51988477..4d685d8e 100644 --- a/tests/unit/gapic/datacatalog_v1beta1/test_policy_tag_manager.py +++ b/tests/unit/gapic/datacatalog_v1beta1/test_policy_tag_manager.py @@ -95,24 +95,26 @@ def test__get_default_mtls_endpoint(): @pytest.mark.parametrize( - "client_class", + "client_class,transport_name", [ - PolicyTagManagerClient, - PolicyTagManagerAsyncClient, + (PolicyTagManagerClient, "grpc"), + (PolicyTagManagerAsyncClient, "grpc_asyncio"), ], ) -def test_policy_tag_manager_client_from_service_account_info(client_class): +def test_policy_tag_manager_client_from_service_account_info( + client_class, transport_name +): creds = ga_credentials.AnonymousCredentials() with mock.patch.object( service_account.Credentials, "from_service_account_info" ) as factory: factory.return_value = creds info = {"valid": True} - client = client_class.from_service_account_info(info) + client = client_class.from_service_account_info(info, transport=transport_name) assert client.transport._credentials == creds assert isinstance(client, client_class) - assert client.transport._host == "datacatalog.googleapis.com:443" + assert client.transport._host == ("datacatalog.googleapis.com:443") @pytest.mark.parametrize( @@ -141,27 +143,33 @@ def test_policy_tag_manager_client_service_account_always_use_jwt( @pytest.mark.parametrize( - "client_class", + "client_class,transport_name", [ - PolicyTagManagerClient, - PolicyTagManagerAsyncClient, + (PolicyTagManagerClient, "grpc"), + (PolicyTagManagerAsyncClient, "grpc_asyncio"), ], ) -def test_policy_tag_manager_client_from_service_account_file(client_class): +def test_policy_tag_manager_client_from_service_account_file( + client_class, transport_name +): creds = ga_credentials.AnonymousCredentials() with mock.patch.object( service_account.Credentials, "from_service_account_file" ) as factory: factory.return_value = creds - client = client_class.from_service_account_file("dummy/file/path.json") + client = client_class.from_service_account_file( + "dummy/file/path.json", transport=transport_name + ) assert client.transport._credentials == creds assert isinstance(client, client_class) - client = client_class.from_service_account_json("dummy/file/path.json") + client = client_class.from_service_account_json( + "dummy/file/path.json", transport=transport_name + ) assert client.transport._credentials == creds assert isinstance(client, client_class) - assert client.transport._host == "datacatalog.googleapis.com:443" + assert client.transport._host == ("datacatalog.googleapis.com:443") def test_policy_tag_manager_client_get_transport_class(): @@ -1761,7 +1769,7 @@ async def test_list_taxonomies_async_pager(): ) assert async_pager.next_page_token == "abc" responses = [] - async for response in async_pager: + async for response in async_pager: # pragma: no branch responses.append(response) assert len(responses) == 6 @@ -1807,7 +1815,9 @@ async def test_list_taxonomies_async_pages(): RuntimeError, ) pages = [] - async for page_ in (await client.list_taxonomies(request={})).pages: + async for page_ in ( + await client.list_taxonomies(request={}) + ).pages: # pragma: no branch pages.append(page_) for page_, token in zip(pages, ["abc", "def", "ghi", ""]): assert page_.raw_page.next_page_token == token @@ -3202,7 +3212,7 @@ async def test_list_policy_tags_async_pager(): ) assert async_pager.next_page_token == "abc" responses = [] - async for response in async_pager: + async for response in async_pager: # pragma: no branch responses.append(response) assert len(responses) == 6 @@ -3248,7 +3258,9 @@ async def test_list_policy_tags_async_pages(): RuntimeError, ) pages = [] - async for page_ in (await client.list_policy_tags(request={})).pages: + async for page_ in ( + await client.list_policy_tags(request={}) + ).pages: # pragma: no branch pages.append(page_) for page_, token in zip(pages, ["abc", "def", "ghi", ""]): assert page_.raw_page.next_page_token == token @@ -3835,6 +3847,7 @@ def test_set_iam_policy_from_dict_foreign(): request={ "resource": "resource_value", "policy": policy_pb2.Policy(version=774), + "update_mask": field_mask_pb2.FieldMask(paths=["paths_value"]), } ) call.assert_called() @@ -4310,24 +4323,40 @@ def test_policy_tag_manager_grpc_transport_client_cert_source_for_mtls(transport ) -def test_policy_tag_manager_host_no_port(): +@pytest.mark.parametrize( + "transport_name", + [ + "grpc", + "grpc_asyncio", + ], +) +def test_policy_tag_manager_host_no_port(transport_name): client = PolicyTagManagerClient( credentials=ga_credentials.AnonymousCredentials(), client_options=client_options.ClientOptions( api_endpoint="datacatalog.googleapis.com" ), + transport=transport_name, ) - assert client.transport._host == "datacatalog.googleapis.com:443" + assert client.transport._host == ("datacatalog.googleapis.com:443") -def test_policy_tag_manager_host_with_port(): +@pytest.mark.parametrize( + "transport_name", + [ + "grpc", + "grpc_asyncio", + ], +) +def test_policy_tag_manager_host_with_port(transport_name): client = PolicyTagManagerClient( credentials=ga_credentials.AnonymousCredentials(), client_options=client_options.ClientOptions( api_endpoint="datacatalog.googleapis.com:8000" ), + transport=transport_name, ) - assert client.transport._host == "datacatalog.googleapis.com:8000" + assert client.transport._host == ("datacatalog.googleapis.com:8000") def test_policy_tag_manager_grpc_transport_channel(): diff --git a/tests/unit/gapic/datacatalog_v1beta1/test_policy_tag_manager_serialization.py b/tests/unit/gapic/datacatalog_v1beta1/test_policy_tag_manager_serialization.py index 78871041..870dcb70 100644 --- a/tests/unit/gapic/datacatalog_v1beta1/test_policy_tag_manager_serialization.py +++ b/tests/unit/gapic/datacatalog_v1beta1/test_policy_tag_manager_serialization.py @@ -96,14 +96,14 @@ def test__get_default_mtls_endpoint(): @pytest.mark.parametrize( - "client_class", + "client_class,transport_name", [ - PolicyTagManagerSerializationClient, - PolicyTagManagerSerializationAsyncClient, + (PolicyTagManagerSerializationClient, "grpc"), + (PolicyTagManagerSerializationAsyncClient, "grpc_asyncio"), ], ) def test_policy_tag_manager_serialization_client_from_service_account_info( - client_class, + client_class, transport_name ): creds = ga_credentials.AnonymousCredentials() with mock.patch.object( @@ -111,11 +111,11 @@ def test_policy_tag_manager_serialization_client_from_service_account_info( ) as factory: factory.return_value = creds info = {"valid": True} - client = client_class.from_service_account_info(info) + client = client_class.from_service_account_info(info, transport=transport_name) assert client.transport._credentials == creds assert isinstance(client, client_class) - assert client.transport._host == "datacatalog.googleapis.com:443" + assert client.transport._host == ("datacatalog.googleapis.com:443") @pytest.mark.parametrize( @@ -144,29 +144,33 @@ def test_policy_tag_manager_serialization_client_service_account_always_use_jwt( @pytest.mark.parametrize( - "client_class", + "client_class,transport_name", [ - PolicyTagManagerSerializationClient, - PolicyTagManagerSerializationAsyncClient, + (PolicyTagManagerSerializationClient, "grpc"), + (PolicyTagManagerSerializationAsyncClient, "grpc_asyncio"), ], ) def test_policy_tag_manager_serialization_client_from_service_account_file( - client_class, + client_class, transport_name ): creds = ga_credentials.AnonymousCredentials() with mock.patch.object( service_account.Credentials, "from_service_account_file" ) as factory: factory.return_value = creds - client = client_class.from_service_account_file("dummy/file/path.json") + client = client_class.from_service_account_file( + "dummy/file/path.json", transport=transport_name + ) assert client.transport._credentials == creds assert isinstance(client, client_class) - client = client_class.from_service_account_json("dummy/file/path.json") + client = client_class.from_service_account_json( + "dummy/file/path.json", transport=transport_name + ) assert client.transport._credentials == creds assert isinstance(client, client_class) - assert client.transport._host == "datacatalog.googleapis.com:443" + assert client.transport._host == ("datacatalog.googleapis.com:443") def test_policy_tag_manager_serialization_client_get_transport_class(): @@ -1277,24 +1281,40 @@ def test_policy_tag_manager_serialization_grpc_transport_client_cert_source_for_ ) -def test_policy_tag_manager_serialization_host_no_port(): +@pytest.mark.parametrize( + "transport_name", + [ + "grpc", + "grpc_asyncio", + ], +) +def test_policy_tag_manager_serialization_host_no_port(transport_name): client = PolicyTagManagerSerializationClient( credentials=ga_credentials.AnonymousCredentials(), client_options=client_options.ClientOptions( api_endpoint="datacatalog.googleapis.com" ), + transport=transport_name, ) - assert client.transport._host == "datacatalog.googleapis.com:443" + assert client.transport._host == ("datacatalog.googleapis.com:443") -def test_policy_tag_manager_serialization_host_with_port(): +@pytest.mark.parametrize( + "transport_name", + [ + "grpc", + "grpc_asyncio", + ], +) +def test_policy_tag_manager_serialization_host_with_port(transport_name): client = PolicyTagManagerSerializationClient( credentials=ga_credentials.AnonymousCredentials(), client_options=client_options.ClientOptions( api_endpoint="datacatalog.googleapis.com:8000" ), + transport=transport_name, ) - assert client.transport._host == "datacatalog.googleapis.com:8000" + assert client.transport._host == ("datacatalog.googleapis.com:8000") def test_policy_tag_manager_serialization_grpc_transport_channel():