google-cloud-data_catalog-v1 0.20.0 → 0.21.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/AUTHENTICATION.md +72 -101
- data/lib/google/cloud/data_catalog/v1/data_catalog/client.rb +33 -8
- data/lib/google/cloud/data_catalog/v1/data_catalog/operations.rb +28 -6
- data/lib/google/cloud/data_catalog/v1/data_catalog/rest/client.rb +35 -7
- data/lib/google/cloud/data_catalog/v1/data_catalog/rest/operations.rb +33 -8
- data/lib/google/cloud/data_catalog/v1/data_catalog/rest/service_stub.rb +14 -2
- data/lib/google/cloud/data_catalog/v1/policy_tag_manager/client.rb +32 -8
- data/lib/google/cloud/data_catalog/v1/policy_tag_manager/rest/client.rb +34 -7
- data/lib/google/cloud/data_catalog/v1/policy_tag_manager/rest/service_stub.rb +14 -2
- data/lib/google/cloud/data_catalog/v1/policy_tag_manager_serialization/client.rb +32 -8
- data/lib/google/cloud/data_catalog/v1/policy_tag_manager_serialization/rest/client.rb +34 -7
- data/lib/google/cloud/data_catalog/v1/policy_tag_manager_serialization/rest/service_stub.rb +14 -2
- data/lib/google/cloud/data_catalog/v1/version.rb +1 -1
- data/lib/google/cloud/datacatalog/v1/policytagmanager_pb.rb +1 -1
- data/proto_docs/google/api/client.rb +14 -0
- data/proto_docs/google/cloud/datacatalog/v1/datacatalog.rb +1 -0
- data/proto_docs/google/cloud/datacatalog/v1/policytagmanager.rb +4 -4
- metadata +7 -7
|
@@ -30,16 +30,28 @@ module Google
|
|
|
30
30
|
# including transcoding, making the REST call, and deserialing the response.
|
|
31
31
|
#
|
|
32
32
|
class ServiceStub
|
|
33
|
-
def initialize endpoint:, credentials:
|
|
33
|
+
def initialize endpoint:, endpoint_template:, universe_domain:, credentials:
|
|
34
34
|
# These require statements are intentionally placed here to initialize
|
|
35
35
|
# the REST modules only when it's required.
|
|
36
36
|
require "gapic/rest"
|
|
37
37
|
|
|
38
|
-
@client_stub = ::Gapic::Rest::ClientStub.new endpoint: endpoint,
|
|
38
|
+
@client_stub = ::Gapic::Rest::ClientStub.new endpoint: endpoint,
|
|
39
|
+
endpoint_template: endpoint_template,
|
|
40
|
+
universe_domain: universe_domain,
|
|
41
|
+
credentials: credentials,
|
|
39
42
|
numeric_enums: false,
|
|
40
43
|
raise_faraday_errors: false
|
|
41
44
|
end
|
|
42
45
|
|
|
46
|
+
##
|
|
47
|
+
# The effective universe domain
|
|
48
|
+
#
|
|
49
|
+
# @return [String]
|
|
50
|
+
#
|
|
51
|
+
def universe_domain
|
|
52
|
+
@client_stub.universe_domain
|
|
53
|
+
end
|
|
54
|
+
|
|
43
55
|
##
|
|
44
56
|
# Baseline implementation for the search_catalog REST call
|
|
45
57
|
#
|
|
@@ -36,6 +36,9 @@ module Google
|
|
|
36
36
|
# classify data along a common axis.
|
|
37
37
|
#
|
|
38
38
|
class Client
|
|
39
|
+
# @private
|
|
40
|
+
DEFAULT_ENDPOINT_TEMPLATE = "datacatalog.$UNIVERSE_DOMAIN$"
|
|
41
|
+
|
|
39
42
|
include Paths
|
|
40
43
|
|
|
41
44
|
# @private
|
|
@@ -98,6 +101,15 @@ module Google
|
|
|
98
101
|
@config
|
|
99
102
|
end
|
|
100
103
|
|
|
104
|
+
##
|
|
105
|
+
# The effective universe domain
|
|
106
|
+
#
|
|
107
|
+
# @return [String]
|
|
108
|
+
#
|
|
109
|
+
def universe_domain
|
|
110
|
+
@policy_tag_manager_stub.universe_domain
|
|
111
|
+
end
|
|
112
|
+
|
|
101
113
|
##
|
|
102
114
|
# Create a new PolicyTagManager client object.
|
|
103
115
|
#
|
|
@@ -131,8 +143,9 @@ module Google
|
|
|
131
143
|
credentials = @config.credentials
|
|
132
144
|
# Use self-signed JWT if the endpoint is unchanged from default,
|
|
133
145
|
# but only if the default endpoint does not have a region prefix.
|
|
134
|
-
enable_self_signed_jwt = @config.endpoint
|
|
135
|
-
|
|
146
|
+
enable_self_signed_jwt = @config.endpoint.nil? ||
|
|
147
|
+
(@config.endpoint == Configuration::DEFAULT_ENDPOINT &&
|
|
148
|
+
!@config.endpoint.split(".").first.include?("-"))
|
|
136
149
|
credentials ||= Credentials.default scope: @config.scope,
|
|
137
150
|
enable_self_signed_jwt: enable_self_signed_jwt
|
|
138
151
|
if credentials.is_a?(::String) || credentials.is_a?(::Hash)
|
|
@@ -145,12 +158,15 @@ module Google
|
|
|
145
158
|
config.credentials = credentials
|
|
146
159
|
config.quota_project = @quota_project_id
|
|
147
160
|
config.endpoint = @config.endpoint
|
|
161
|
+
config.universe_domain = @config.universe_domain
|
|
148
162
|
end
|
|
149
163
|
|
|
150
164
|
@policy_tag_manager_stub = ::Gapic::ServiceStub.new(
|
|
151
165
|
::Google::Cloud::DataCatalog::V1::PolicyTagManager::Stub,
|
|
152
|
-
credentials:
|
|
153
|
-
endpoint:
|
|
166
|
+
credentials: credentials,
|
|
167
|
+
endpoint: @config.endpoint,
|
|
168
|
+
endpoint_template: DEFAULT_ENDPOINT_TEMPLATE,
|
|
169
|
+
universe_domain: @config.universe_domain,
|
|
154
170
|
channel_args: @config.channel_args,
|
|
155
171
|
interceptors: @config.interceptors,
|
|
156
172
|
channel_pool_config: @config.channel_pool
|
|
@@ -1389,9 +1405,9 @@ module Google
|
|
|
1389
1405
|
# end
|
|
1390
1406
|
#
|
|
1391
1407
|
# @!attribute [rw] endpoint
|
|
1392
|
-
#
|
|
1393
|
-
#
|
|
1394
|
-
# @return [::String]
|
|
1408
|
+
# A custom service endpoint, as a hostname or hostname:port. The default is
|
|
1409
|
+
# nil, indicating to use the default endpoint in the current universe domain.
|
|
1410
|
+
# @return [::String,nil]
|
|
1395
1411
|
# @!attribute [rw] credentials
|
|
1396
1412
|
# Credentials to send with calls. You may provide any of the following types:
|
|
1397
1413
|
# * (`String`) The path to a service account key file in JSON format
|
|
@@ -1437,13 +1453,20 @@ module Google
|
|
|
1437
1453
|
# @!attribute [rw] quota_project
|
|
1438
1454
|
# A separate project against which to charge quota.
|
|
1439
1455
|
# @return [::String]
|
|
1456
|
+
# @!attribute [rw] universe_domain
|
|
1457
|
+
# The universe domain within which to make requests. This determines the
|
|
1458
|
+
# default endpoint URL. The default value of nil uses the environment
|
|
1459
|
+
# universe (usually the default "googleapis.com" universe).
|
|
1460
|
+
# @return [::String,nil]
|
|
1440
1461
|
#
|
|
1441
1462
|
class Configuration
|
|
1442
1463
|
extend ::Gapic::Config
|
|
1443
1464
|
|
|
1465
|
+
# @private
|
|
1466
|
+
# The endpoint specific to the default "googleapis.com" universe. Deprecated.
|
|
1444
1467
|
DEFAULT_ENDPOINT = "datacatalog.googleapis.com"
|
|
1445
1468
|
|
|
1446
|
-
config_attr :endpoint,
|
|
1469
|
+
config_attr :endpoint, nil, ::String, nil
|
|
1447
1470
|
config_attr :credentials, nil do |value|
|
|
1448
1471
|
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
|
1449
1472
|
allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
|
|
@@ -1458,6 +1481,7 @@ module Google
|
|
|
1458
1481
|
config_attr :metadata, nil, ::Hash, nil
|
|
1459
1482
|
config_attr :retry_policy, nil, ::Hash, ::Proc, nil
|
|
1460
1483
|
config_attr :quota_project, nil, ::String, nil
|
|
1484
|
+
config_attr :universe_domain, nil, ::String, nil
|
|
1461
1485
|
|
|
1462
1486
|
# @private
|
|
1463
1487
|
def initialize parent_config = nil
|
|
@@ -38,6 +38,9 @@ module Google
|
|
|
38
38
|
# classify data along a common axis.
|
|
39
39
|
#
|
|
40
40
|
class Client
|
|
41
|
+
# @private
|
|
42
|
+
DEFAULT_ENDPOINT_TEMPLATE = "datacatalog.$UNIVERSE_DOMAIN$"
|
|
43
|
+
|
|
41
44
|
include Paths
|
|
42
45
|
|
|
43
46
|
# @private
|
|
@@ -100,6 +103,15 @@ module Google
|
|
|
100
103
|
@config
|
|
101
104
|
end
|
|
102
105
|
|
|
106
|
+
##
|
|
107
|
+
# The effective universe domain
|
|
108
|
+
#
|
|
109
|
+
# @return [String]
|
|
110
|
+
#
|
|
111
|
+
def universe_domain
|
|
112
|
+
@policy_tag_manager_stub.universe_domain
|
|
113
|
+
end
|
|
114
|
+
|
|
103
115
|
##
|
|
104
116
|
# Create a new PolicyTagManager REST client object.
|
|
105
117
|
#
|
|
@@ -127,8 +139,9 @@ module Google
|
|
|
127
139
|
credentials = @config.credentials
|
|
128
140
|
# Use self-signed JWT if the endpoint is unchanged from default,
|
|
129
141
|
# but only if the default endpoint does not have a region prefix.
|
|
130
|
-
enable_self_signed_jwt = @config.endpoint
|
|
131
|
-
|
|
142
|
+
enable_self_signed_jwt = @config.endpoint.nil? ||
|
|
143
|
+
(@config.endpoint == Configuration::DEFAULT_ENDPOINT &&
|
|
144
|
+
!@config.endpoint.split(".").first.include?("-"))
|
|
132
145
|
credentials ||= Credentials.default scope: @config.scope,
|
|
133
146
|
enable_self_signed_jwt: enable_self_signed_jwt
|
|
134
147
|
if credentials.is_a?(::String) || credentials.is_a?(::Hash)
|
|
@@ -142,9 +155,15 @@ module Google
|
|
|
142
155
|
config.credentials = credentials
|
|
143
156
|
config.quota_project = @quota_project_id
|
|
144
157
|
config.endpoint = @config.endpoint
|
|
158
|
+
config.universe_domain = @config.universe_domain
|
|
145
159
|
end
|
|
146
160
|
|
|
147
|
-
@policy_tag_manager_stub = ::Google::Cloud::DataCatalog::V1::PolicyTagManager::Rest::ServiceStub.new
|
|
161
|
+
@policy_tag_manager_stub = ::Google::Cloud::DataCatalog::V1::PolicyTagManager::Rest::ServiceStub.new(
|
|
162
|
+
endpoint: @config.endpoint,
|
|
163
|
+
endpoint_template: DEFAULT_ENDPOINT_TEMPLATE,
|
|
164
|
+
universe_domain: @config.universe_domain,
|
|
165
|
+
credentials: credentials
|
|
166
|
+
)
|
|
148
167
|
end
|
|
149
168
|
|
|
150
169
|
##
|
|
@@ -1288,9 +1307,9 @@ module Google
|
|
|
1288
1307
|
# end
|
|
1289
1308
|
#
|
|
1290
1309
|
# @!attribute [rw] endpoint
|
|
1291
|
-
#
|
|
1292
|
-
#
|
|
1293
|
-
# @return [::String]
|
|
1310
|
+
# A custom service endpoint, as a hostname or hostname:port. The default is
|
|
1311
|
+
# nil, indicating to use the default endpoint in the current universe domain.
|
|
1312
|
+
# @return [::String,nil]
|
|
1294
1313
|
# @!attribute [rw] credentials
|
|
1295
1314
|
# Credentials to send with calls. You may provide any of the following types:
|
|
1296
1315
|
# * (`String`) The path to a service account key file in JSON format
|
|
@@ -1327,13 +1346,20 @@ module Google
|
|
|
1327
1346
|
# @!attribute [rw] quota_project
|
|
1328
1347
|
# A separate project against which to charge quota.
|
|
1329
1348
|
# @return [::String]
|
|
1349
|
+
# @!attribute [rw] universe_domain
|
|
1350
|
+
# The universe domain within which to make requests. This determines the
|
|
1351
|
+
# default endpoint URL. The default value of nil uses the environment
|
|
1352
|
+
# universe (usually the default "googleapis.com" universe).
|
|
1353
|
+
# @return [::String,nil]
|
|
1330
1354
|
#
|
|
1331
1355
|
class Configuration
|
|
1332
1356
|
extend ::Gapic::Config
|
|
1333
1357
|
|
|
1358
|
+
# @private
|
|
1359
|
+
# The endpoint specific to the default "googleapis.com" universe. Deprecated.
|
|
1334
1360
|
DEFAULT_ENDPOINT = "datacatalog.googleapis.com"
|
|
1335
1361
|
|
|
1336
|
-
config_attr :endpoint,
|
|
1362
|
+
config_attr :endpoint, nil, ::String, nil
|
|
1337
1363
|
config_attr :credentials, nil do |value|
|
|
1338
1364
|
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
|
1339
1365
|
allowed.any? { |klass| klass === value }
|
|
@@ -1345,6 +1371,7 @@ module Google
|
|
|
1345
1371
|
config_attr :metadata, nil, ::Hash, nil
|
|
1346
1372
|
config_attr :retry_policy, nil, ::Hash, ::Proc, nil
|
|
1347
1373
|
config_attr :quota_project, nil, ::String, nil
|
|
1374
|
+
config_attr :universe_domain, nil, ::String, nil
|
|
1348
1375
|
|
|
1349
1376
|
# @private
|
|
1350
1377
|
def initialize parent_config = nil
|
|
@@ -30,16 +30,28 @@ module Google
|
|
|
30
30
|
# including transcoding, making the REST call, and deserialing the response.
|
|
31
31
|
#
|
|
32
32
|
class ServiceStub
|
|
33
|
-
def initialize endpoint:, credentials:
|
|
33
|
+
def initialize endpoint:, endpoint_template:, universe_domain:, credentials:
|
|
34
34
|
# These require statements are intentionally placed here to initialize
|
|
35
35
|
# the REST modules only when it's required.
|
|
36
36
|
require "gapic/rest"
|
|
37
37
|
|
|
38
|
-
@client_stub = ::Gapic::Rest::ClientStub.new endpoint: endpoint,
|
|
38
|
+
@client_stub = ::Gapic::Rest::ClientStub.new endpoint: endpoint,
|
|
39
|
+
endpoint_template: endpoint_template,
|
|
40
|
+
universe_domain: universe_domain,
|
|
41
|
+
credentials: credentials,
|
|
39
42
|
numeric_enums: false,
|
|
40
43
|
raise_faraday_errors: false
|
|
41
44
|
end
|
|
42
45
|
|
|
46
|
+
##
|
|
47
|
+
# The effective universe domain
|
|
48
|
+
#
|
|
49
|
+
# @return [String]
|
|
50
|
+
#
|
|
51
|
+
def universe_domain
|
|
52
|
+
@client_stub.universe_domain
|
|
53
|
+
end
|
|
54
|
+
|
|
43
55
|
##
|
|
44
56
|
# Baseline implementation for the create_taxonomy REST call
|
|
45
57
|
#
|
|
@@ -34,6 +34,9 @@ module Google
|
|
|
34
34
|
# Taxonomy is a hierarchical group of policy tags.
|
|
35
35
|
#
|
|
36
36
|
class Client
|
|
37
|
+
# @private
|
|
38
|
+
DEFAULT_ENDPOINT_TEMPLATE = "datacatalog.$UNIVERSE_DOMAIN$"
|
|
39
|
+
|
|
37
40
|
include Paths
|
|
38
41
|
|
|
39
42
|
# @private
|
|
@@ -96,6 +99,15 @@ module Google
|
|
|
96
99
|
@config
|
|
97
100
|
end
|
|
98
101
|
|
|
102
|
+
##
|
|
103
|
+
# The effective universe domain
|
|
104
|
+
#
|
|
105
|
+
# @return [String]
|
|
106
|
+
#
|
|
107
|
+
def universe_domain
|
|
108
|
+
@policy_tag_manager_serialization_stub.universe_domain
|
|
109
|
+
end
|
|
110
|
+
|
|
99
111
|
##
|
|
100
112
|
# Create a new PolicyTagManagerSerialization client object.
|
|
101
113
|
#
|
|
@@ -129,8 +141,9 @@ module Google
|
|
|
129
141
|
credentials = @config.credentials
|
|
130
142
|
# Use self-signed JWT if the endpoint is unchanged from default,
|
|
131
143
|
# but only if the default endpoint does not have a region prefix.
|
|
132
|
-
enable_self_signed_jwt = @config.endpoint
|
|
133
|
-
|
|
144
|
+
enable_self_signed_jwt = @config.endpoint.nil? ||
|
|
145
|
+
(@config.endpoint == Configuration::DEFAULT_ENDPOINT &&
|
|
146
|
+
!@config.endpoint.split(".").first.include?("-"))
|
|
134
147
|
credentials ||= Credentials.default scope: @config.scope,
|
|
135
148
|
enable_self_signed_jwt: enable_self_signed_jwt
|
|
136
149
|
if credentials.is_a?(::String) || credentials.is_a?(::Hash)
|
|
@@ -143,12 +156,15 @@ module Google
|
|
|
143
156
|
config.credentials = credentials
|
|
144
157
|
config.quota_project = @quota_project_id
|
|
145
158
|
config.endpoint = @config.endpoint
|
|
159
|
+
config.universe_domain = @config.universe_domain
|
|
146
160
|
end
|
|
147
161
|
|
|
148
162
|
@policy_tag_manager_serialization_stub = ::Gapic::ServiceStub.new(
|
|
149
163
|
::Google::Cloud::DataCatalog::V1::PolicyTagManagerSerialization::Stub,
|
|
150
|
-
credentials:
|
|
151
|
-
endpoint:
|
|
164
|
+
credentials: credentials,
|
|
165
|
+
endpoint: @config.endpoint,
|
|
166
|
+
endpoint_template: DEFAULT_ENDPOINT_TEMPLATE,
|
|
167
|
+
universe_domain: @config.universe_domain,
|
|
152
168
|
channel_args: @config.channel_args,
|
|
153
169
|
interceptors: @config.interceptors,
|
|
154
170
|
channel_pool_config: @config.channel_pool
|
|
@@ -486,9 +502,9 @@ module Google
|
|
|
486
502
|
# end
|
|
487
503
|
#
|
|
488
504
|
# @!attribute [rw] endpoint
|
|
489
|
-
#
|
|
490
|
-
#
|
|
491
|
-
# @return [::String]
|
|
505
|
+
# A custom service endpoint, as a hostname or hostname:port. The default is
|
|
506
|
+
# nil, indicating to use the default endpoint in the current universe domain.
|
|
507
|
+
# @return [::String,nil]
|
|
492
508
|
# @!attribute [rw] credentials
|
|
493
509
|
# Credentials to send with calls. You may provide any of the following types:
|
|
494
510
|
# * (`String`) The path to a service account key file in JSON format
|
|
@@ -534,13 +550,20 @@ module Google
|
|
|
534
550
|
# @!attribute [rw] quota_project
|
|
535
551
|
# A separate project against which to charge quota.
|
|
536
552
|
# @return [::String]
|
|
553
|
+
# @!attribute [rw] universe_domain
|
|
554
|
+
# The universe domain within which to make requests. This determines the
|
|
555
|
+
# default endpoint URL. The default value of nil uses the environment
|
|
556
|
+
# universe (usually the default "googleapis.com" universe).
|
|
557
|
+
# @return [::String,nil]
|
|
537
558
|
#
|
|
538
559
|
class Configuration
|
|
539
560
|
extend ::Gapic::Config
|
|
540
561
|
|
|
562
|
+
# @private
|
|
563
|
+
# The endpoint specific to the default "googleapis.com" universe. Deprecated.
|
|
541
564
|
DEFAULT_ENDPOINT = "datacatalog.googleapis.com"
|
|
542
565
|
|
|
543
|
-
config_attr :endpoint,
|
|
566
|
+
config_attr :endpoint, nil, ::String, nil
|
|
544
567
|
config_attr :credentials, nil do |value|
|
|
545
568
|
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
|
546
569
|
allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
|
|
@@ -555,6 +578,7 @@ module Google
|
|
|
555
578
|
config_attr :metadata, nil, ::Hash, nil
|
|
556
579
|
config_attr :retry_policy, nil, ::Hash, ::Proc, nil
|
|
557
580
|
config_attr :quota_project, nil, ::String, nil
|
|
581
|
+
config_attr :universe_domain, nil, ::String, nil
|
|
558
582
|
|
|
559
583
|
# @private
|
|
560
584
|
def initialize parent_config = nil
|
|
@@ -36,6 +36,9 @@ module Google
|
|
|
36
36
|
# Taxonomy is a hierarchical group of policy tags.
|
|
37
37
|
#
|
|
38
38
|
class Client
|
|
39
|
+
# @private
|
|
40
|
+
DEFAULT_ENDPOINT_TEMPLATE = "datacatalog.$UNIVERSE_DOMAIN$"
|
|
41
|
+
|
|
39
42
|
include Paths
|
|
40
43
|
|
|
41
44
|
# @private
|
|
@@ -98,6 +101,15 @@ module Google
|
|
|
98
101
|
@config
|
|
99
102
|
end
|
|
100
103
|
|
|
104
|
+
##
|
|
105
|
+
# The effective universe domain
|
|
106
|
+
#
|
|
107
|
+
# @return [String]
|
|
108
|
+
#
|
|
109
|
+
def universe_domain
|
|
110
|
+
@policy_tag_manager_serialization_stub.universe_domain
|
|
111
|
+
end
|
|
112
|
+
|
|
101
113
|
##
|
|
102
114
|
# Create a new PolicyTagManagerSerialization REST client object.
|
|
103
115
|
#
|
|
@@ -125,8 +137,9 @@ module Google
|
|
|
125
137
|
credentials = @config.credentials
|
|
126
138
|
# Use self-signed JWT if the endpoint is unchanged from default,
|
|
127
139
|
# but only if the default endpoint does not have a region prefix.
|
|
128
|
-
enable_self_signed_jwt = @config.endpoint
|
|
129
|
-
|
|
140
|
+
enable_self_signed_jwt = @config.endpoint.nil? ||
|
|
141
|
+
(@config.endpoint == Configuration::DEFAULT_ENDPOINT &&
|
|
142
|
+
!@config.endpoint.split(".").first.include?("-"))
|
|
130
143
|
credentials ||= Credentials.default scope: @config.scope,
|
|
131
144
|
enable_self_signed_jwt: enable_self_signed_jwt
|
|
132
145
|
if credentials.is_a?(::String) || credentials.is_a?(::Hash)
|
|
@@ -140,9 +153,15 @@ module Google
|
|
|
140
153
|
config.credentials = credentials
|
|
141
154
|
config.quota_project = @quota_project_id
|
|
142
155
|
config.endpoint = @config.endpoint
|
|
156
|
+
config.universe_domain = @config.universe_domain
|
|
143
157
|
end
|
|
144
158
|
|
|
145
|
-
@policy_tag_manager_serialization_stub = ::Google::Cloud::DataCatalog::V1::PolicyTagManagerSerialization::Rest::ServiceStub.new
|
|
159
|
+
@policy_tag_manager_serialization_stub = ::Google::Cloud::DataCatalog::V1::PolicyTagManagerSerialization::Rest::ServiceStub.new(
|
|
160
|
+
endpoint: @config.endpoint,
|
|
161
|
+
endpoint_template: DEFAULT_ENDPOINT_TEMPLATE,
|
|
162
|
+
universe_domain: @config.universe_domain,
|
|
163
|
+
credentials: credentials
|
|
164
|
+
)
|
|
146
165
|
end
|
|
147
166
|
|
|
148
167
|
##
|
|
@@ -455,9 +474,9 @@ module Google
|
|
|
455
474
|
# end
|
|
456
475
|
#
|
|
457
476
|
# @!attribute [rw] endpoint
|
|
458
|
-
#
|
|
459
|
-
#
|
|
460
|
-
# @return [::String]
|
|
477
|
+
# A custom service endpoint, as a hostname or hostname:port. The default is
|
|
478
|
+
# nil, indicating to use the default endpoint in the current universe domain.
|
|
479
|
+
# @return [::String,nil]
|
|
461
480
|
# @!attribute [rw] credentials
|
|
462
481
|
# Credentials to send with calls. You may provide any of the following types:
|
|
463
482
|
# * (`String`) The path to a service account key file in JSON format
|
|
@@ -494,13 +513,20 @@ module Google
|
|
|
494
513
|
# @!attribute [rw] quota_project
|
|
495
514
|
# A separate project against which to charge quota.
|
|
496
515
|
# @return [::String]
|
|
516
|
+
# @!attribute [rw] universe_domain
|
|
517
|
+
# The universe domain within which to make requests. This determines the
|
|
518
|
+
# default endpoint URL. The default value of nil uses the environment
|
|
519
|
+
# universe (usually the default "googleapis.com" universe).
|
|
520
|
+
# @return [::String,nil]
|
|
497
521
|
#
|
|
498
522
|
class Configuration
|
|
499
523
|
extend ::Gapic::Config
|
|
500
524
|
|
|
525
|
+
# @private
|
|
526
|
+
# The endpoint specific to the default "googleapis.com" universe. Deprecated.
|
|
501
527
|
DEFAULT_ENDPOINT = "datacatalog.googleapis.com"
|
|
502
528
|
|
|
503
|
-
config_attr :endpoint,
|
|
529
|
+
config_attr :endpoint, nil, ::String, nil
|
|
504
530
|
config_attr :credentials, nil do |value|
|
|
505
531
|
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
|
506
532
|
allowed.any? { |klass| klass === value }
|
|
@@ -512,6 +538,7 @@ module Google
|
|
|
512
538
|
config_attr :metadata, nil, ::Hash, nil
|
|
513
539
|
config_attr :retry_policy, nil, ::Hash, ::Proc, nil
|
|
514
540
|
config_attr :quota_project, nil, ::String, nil
|
|
541
|
+
config_attr :universe_domain, nil, ::String, nil
|
|
515
542
|
|
|
516
543
|
# @private
|
|
517
544
|
def initialize parent_config = nil
|
|
@@ -30,16 +30,28 @@ module Google
|
|
|
30
30
|
# including transcoding, making the REST call, and deserialing the response.
|
|
31
31
|
#
|
|
32
32
|
class ServiceStub
|
|
33
|
-
def initialize endpoint:, credentials:
|
|
33
|
+
def initialize endpoint:, endpoint_template:, universe_domain:, credentials:
|
|
34
34
|
# These require statements are intentionally placed here to initialize
|
|
35
35
|
# the REST modules only when it's required.
|
|
36
36
|
require "gapic/rest"
|
|
37
37
|
|
|
38
|
-
@client_stub = ::Gapic::Rest::ClientStub.new endpoint: endpoint,
|
|
38
|
+
@client_stub = ::Gapic::Rest::ClientStub.new endpoint: endpoint,
|
|
39
|
+
endpoint_template: endpoint_template,
|
|
40
|
+
universe_domain: universe_domain,
|
|
41
|
+
credentials: credentials,
|
|
39
42
|
numeric_enums: false,
|
|
40
43
|
raise_faraday_errors: false
|
|
41
44
|
end
|
|
42
45
|
|
|
46
|
+
##
|
|
47
|
+
# The effective universe domain
|
|
48
|
+
#
|
|
49
|
+
# @return [String]
|
|
50
|
+
#
|
|
51
|
+
def universe_domain
|
|
52
|
+
@client_stub.universe_domain
|
|
53
|
+
end
|
|
54
|
+
|
|
43
55
|
##
|
|
44
56
|
# Baseline implementation for the replace_taxonomy REST call
|
|
45
57
|
#
|
|
@@ -16,7 +16,7 @@ require 'google/protobuf/empty_pb'
|
|
|
16
16
|
require 'google/protobuf/field_mask_pb'
|
|
17
17
|
|
|
18
18
|
|
|
19
|
-
descriptor_data = "\n2google/cloud/datacatalog/v1/policytagmanager.proto\x12\x1bgoogle.cloud.datacatalog.v1\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a(google/cloud/datacatalog/v1/common.proto\x1a,google/cloud/datacatalog/v1/timestamps.proto\x1a\x1egoogle/iam/v1/iam_policy.proto\x1a\x1agoogle/iam/v1/policy.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a google/protobuf/field_mask.proto\"\xeb\x04\n\x08Taxonomy\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\
|
|
19
|
+
descriptor_data = "\n2google/cloud/datacatalog/v1/policytagmanager.proto\x12\x1bgoogle.cloud.datacatalog.v1\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a(google/cloud/datacatalog/v1/common.proto\x1a,google/cloud/datacatalog/v1/timestamps.proto\x1a\x1egoogle/iam/v1/iam_policy.proto\x1a\x1agoogle/iam/v1/policy.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a google/protobuf/field_mask.proto\"\xeb\x04\n\x08Taxonomy\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x08\x12\x19\n\x0c\x64isplay_name\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12\x18\n\x0b\x64\x65scription\x18\x03 \x01(\tB\x03\xe0\x41\x01\x12\x1d\n\x10policy_tag_count\x18\x04 \x01(\x05\x42\x03\xe0\x41\x03\x12O\n\x13taxonomy_timestamps\x18\x05 \x01(\x0b\x32-.google.cloud.datacatalog.v1.SystemTimestampsB\x03\xe0\x41\x03\x12U\n\x16\x61\x63tivated_policy_types\x18\x06 \x03(\x0e\x32\x30.google.cloud.datacatalog.v1.Taxonomy.PolicyTypeB\x03\xe0\x41\x01\x12\x43\n\x07service\x18\x07 \x01(\x0b\x32-.google.cloud.datacatalog.v1.Taxonomy.ServiceB\x03\xe0\x41\x03\x1aV\n\x07Service\x12\x39\n\x04name\x18\x01 \x01(\x0e\x32+.google.cloud.datacatalog.v1.ManagingSystem\x12\x10\n\x08identity\x18\x02 \x01(\t\"J\n\nPolicyType\x12\x1b\n\x17POLICY_TYPE_UNSPECIFIED\x10\x00\x12\x1f\n\x1b\x46INE_GRAINED_ACCESS_CONTROL\x10\x01:g\xea\x41\x64\n#datacatalog.googleapis.com/Taxonomy\x12=projects/{project}/locations/{location}/taxonomies/{taxonomy}\"\x8c\x02\n\tPolicyTag\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x08\x12\x19\n\x0c\x64isplay_name\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12\x13\n\x0b\x64\x65scription\x18\x03 \x01(\t\x12\x19\n\x11parent_policy_tag\x18\x04 \x01(\t\x12\x1e\n\x11\x63hild_policy_tags\x18\x05 \x03(\tB\x03\xe0\x41\x03:\x80\x01\xea\x41}\n$datacatalog.googleapis.com/PolicyTag\x12Uprojects/{project}/locations/{location}/taxonomies/{taxonomy}/policyTags/{policy_tag}\"\x8d\x01\n\x15\x43reateTaxonomyRequest\x12;\n\x06parent\x18\x01 \x01(\tB+\xe0\x41\x02\xfa\x41%\x12#datacatalog.googleapis.com/Taxonomy\x12\x37\n\x08taxonomy\x18\x02 \x01(\x0b\x32%.google.cloud.datacatalog.v1.Taxonomy\"R\n\x15\x44\x65leteTaxonomyRequest\x12\x39\n\x04name\x18\x01 \x01(\tB+\xe0\x41\x02\xfa\x41%\n#datacatalog.googleapis.com/Taxonomy\"\x81\x01\n\x15UpdateTaxonomyRequest\x12\x37\n\x08taxonomy\x18\x01 \x01(\x0b\x32%.google.cloud.datacatalog.v1.Taxonomy\x12/\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMask\"\x8b\x01\n\x15ListTaxonomiesRequest\x12;\n\x06parent\x18\x01 \x01(\tB+\xe0\x41\x02\xfa\x41%\x12#datacatalog.googleapis.com/Taxonomy\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x12\n\npage_token\x18\x03 \x01(\t\x12\x0e\n\x06\x66ilter\x18\x04 \x01(\t\"l\n\x16ListTaxonomiesResponse\x12\x39\n\ntaxonomies\x18\x01 \x03(\x0b\x32%.google.cloud.datacatalog.v1.Taxonomy\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"O\n\x12GetTaxonomyRequest\x12\x39\n\x04name\x18\x01 \x01(\tB+\xe0\x41\x02\xfa\x41%\n#datacatalog.googleapis.com/Taxonomy\"\x92\x01\n\x16\x43reatePolicyTagRequest\x12<\n\x06parent\x18\x01 \x01(\tB,\xe0\x41\x02\xfa\x41&\x12$datacatalog.googleapis.com/PolicyTag\x12:\n\npolicy_tag\x18\x02 \x01(\x0b\x32&.google.cloud.datacatalog.v1.PolicyTag\"T\n\x16\x44\x65letePolicyTagRequest\x12:\n\x04name\x18\x01 \x01(\tB,\xe0\x41\x02\xfa\x41&\n$datacatalog.googleapis.com/PolicyTag\"\x85\x01\n\x16UpdatePolicyTagRequest\x12:\n\npolicy_tag\x18\x01 \x01(\x0b\x32&.google.cloud.datacatalog.v1.PolicyTag\x12/\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMask\"|\n\x15ListPolicyTagsRequest\x12<\n\x06parent\x18\x01 \x01(\tB,\xe0\x41\x02\xfa\x41&\x12$datacatalog.googleapis.com/PolicyTag\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x12\n\npage_token\x18\x03 \x01(\t\"n\n\x16ListPolicyTagsResponse\x12;\n\x0bpolicy_tags\x18\x01 \x03(\x0b\x32&.google.cloud.datacatalog.v1.PolicyTag\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"Q\n\x13GetPolicyTagRequest\x12:\n\x04name\x18\x01 \x01(\tB,\xe0\x41\x02\xfa\x41&\n$datacatalog.googleapis.com/PolicyTag2\xbb\x15\n\x10PolicyTagManager\x12\xbf\x01\n\x0e\x43reateTaxonomy\x12\x32.google.cloud.datacatalog.v1.CreateTaxonomyRequest\x1a%.google.cloud.datacatalog.v1.Taxonomy\"R\x82\xd3\xe4\x93\x02:\"./v1/{parent=projects/*/locations/*}/taxonomies:\x08taxonomy\xda\x41\x0fparent,taxonomy\x12\x9b\x01\n\x0e\x44\x65leteTaxonomy\x12\x32.google.cloud.datacatalog.v1.DeleteTaxonomyRequest\x1a\x16.google.protobuf.Empty\"=\x82\xd3\xe4\x93\x02\x30*./v1/{name=projects/*/locations/*/taxonomies/*}\xda\x41\x04name\x12\xc1\x01\n\x0eUpdateTaxonomy\x12\x32.google.cloud.datacatalog.v1.UpdateTaxonomyRequest\x1a%.google.cloud.datacatalog.v1.Taxonomy\"T\x82\xd3\xe4\x93\x02\x43\x32\x37/v1/{taxonomy.name=projects/*/locations/*/taxonomies/*}:\x08taxonomy\xda\x41\x08taxonomy\x12\xba\x01\n\x0eListTaxonomies\x12\x32.google.cloud.datacatalog.v1.ListTaxonomiesRequest\x1a\x33.google.cloud.datacatalog.v1.ListTaxonomiesResponse\"?\x82\xd3\xe4\x93\x02\x30\x12./v1/{parent=projects/*/locations/*}/taxonomies\xda\x41\x06parent\x12\xa4\x01\n\x0bGetTaxonomy\x12/.google.cloud.datacatalog.v1.GetTaxonomyRequest\x1a%.google.cloud.datacatalog.v1.Taxonomy\"=\x82\xd3\xe4\x93\x02\x30\x12./v1/{name=projects/*/locations/*/taxonomies/*}\xda\x41\x04name\x12\xd3\x01\n\x0f\x43reatePolicyTag\x12\x33.google.cloud.datacatalog.v1.CreatePolicyTagRequest\x1a&.google.cloud.datacatalog.v1.PolicyTag\"c\x82\xd3\xe4\x93\x02I\";/v1/{parent=projects/*/locations/*/taxonomies/*}/policyTags:\npolicy_tag\xda\x41\x11parent,policy_tag\x12\xaa\x01\n\x0f\x44\x65letePolicyTag\x12\x33.google.cloud.datacatalog.v1.DeletePolicyTagRequest\x1a\x16.google.protobuf.Empty\"J\x82\xd3\xe4\x93\x02=*;/v1/{name=projects/*/locations/*/taxonomies/*/policyTags/*}\xda\x41\x04name\x12\xd7\x01\n\x0fUpdatePolicyTag\x12\x33.google.cloud.datacatalog.v1.UpdatePolicyTagRequest\x1a&.google.cloud.datacatalog.v1.PolicyTag\"g\x82\xd3\xe4\x93\x02T2F/v1/{policy_tag.name=projects/*/locations/*/taxonomies/*/policyTags/*}:\npolicy_tag\xda\x41\npolicy_tag\x12\xc7\x01\n\x0eListPolicyTags\x12\x32.google.cloud.datacatalog.v1.ListPolicyTagsRequest\x1a\x33.google.cloud.datacatalog.v1.ListPolicyTagsResponse\"L\x82\xd3\xe4\x93\x02=\x12;/v1/{parent=projects/*/locations/*/taxonomies/*}/policyTags\xda\x41\x06parent\x12\xb4\x01\n\x0cGetPolicyTag\x12\x30.google.cloud.datacatalog.v1.GetPolicyTagRequest\x1a&.google.cloud.datacatalog.v1.PolicyTag\"J\x82\xd3\xe4\x93\x02=\x12;/v1/{name=projects/*/locations/*/taxonomies/*/policyTags/*}\xda\x41\x04name\x12\xea\x01\n\x0cGetIamPolicy\x12\".google.iam.v1.GetIamPolicyRequest\x1a\x15.google.iam.v1.Policy\"\x9e\x01\x82\xd3\xe4\x93\x02\x97\x01\"?/v1/{resource=projects/*/locations/*/taxonomies/*}:getIamPolicy:\x01*ZQ\"L/v1/{resource=projects/*/locations/*/taxonomies/*/policyTags/*}:getIamPolicy:\x01*\x12\xea\x01\n\x0cSetIamPolicy\x12\".google.iam.v1.SetIamPolicyRequest\x1a\x15.google.iam.v1.Policy\"\x9e\x01\x82\xd3\xe4\x93\x02\x97\x01\"?/v1/{resource=projects/*/locations/*/taxonomies/*}:setIamPolicy:\x01*ZQ\"L/v1/{resource=projects/*/locations/*/taxonomies/*/policyTags/*}:setIamPolicy:\x01*\x12\x96\x02\n\x12TestIamPermissions\x12(.google.iam.v1.TestIamPermissionsRequest\x1a).google.iam.v1.TestIamPermissionsResponse\"\xaa\x01\x82\xd3\xe4\x93\x02\xa3\x01\"E/v1/{resource=projects/*/locations/*/taxonomies/*}:testIamPermissions:\x01*ZW\"R/v1/{resource=projects/*/locations/*/taxonomies/*/policyTags/*}:testIamPermissions:\x01*\x1aN\xca\x41\x1a\x64\x61tacatalog.googleapis.com\xd2\x41.https://www.googleapis.com/auth/cloud-platformB\xdd\x01\n\x1f\x63om.google.cloud.datacatalog.v1B\x15PolicyTagManagerProtoP\x01ZAcloud.google.com/go/datacatalog/apiv1/datacatalogpb;datacatalogpb\xf8\x01\x01\xaa\x02\x1bGoogle.Cloud.DataCatalog.V1\xca\x02\x1bGoogle\\Cloud\\DataCatalog\\V1\xea\x02\x1eGoogle::Cloud::DataCatalog::V1b\x06proto3"
|
|
20
20
|
|
|
21
21
|
pool = Google::Protobuf::DescriptorPool.generated_pool
|
|
22
22
|
|
|
@@ -21,6 +21,7 @@ module Google
|
|
|
21
21
|
module Api
|
|
22
22
|
# Required information for every language.
|
|
23
23
|
# @!attribute [rw] reference_docs_uri
|
|
24
|
+
# @deprecated This field is deprecated and may be removed in the next major version update.
|
|
24
25
|
# @return [::String]
|
|
25
26
|
# Link to automatically generated reference documentation. Example:
|
|
26
27
|
# https://cloud.google.com/nodejs/docs/reference/asset/latest
|
|
@@ -304,6 +305,19 @@ module Google
|
|
|
304
305
|
# seconds: 360 # 6 minutes
|
|
305
306
|
# total_poll_timeout:
|
|
306
307
|
# seconds: 54000 # 90 minutes
|
|
308
|
+
# @!attribute [rw] auto_populated_fields
|
|
309
|
+
# @return [::Array<::String>]
|
|
310
|
+
# List of top-level fields of the request message, that should be
|
|
311
|
+
# automatically populated by the client libraries based on their
|
|
312
|
+
# (google.api.field_info).format. Currently supported format: UUID4.
|
|
313
|
+
#
|
|
314
|
+
# Example of a YAML configuration:
|
|
315
|
+
#
|
|
316
|
+
# publishing:
|
|
317
|
+
# method_settings:
|
|
318
|
+
# - selector: google.example.v1.ExampleService.CreateExample
|
|
319
|
+
# auto_populated_fields:
|
|
320
|
+
# - request_id
|
|
307
321
|
class MethodSettings
|
|
308
322
|
include ::Google::Protobuf::MessageExts
|
|
309
323
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
@@ -129,6 +129,7 @@ module Google
|
|
|
129
129
|
#
|
|
130
130
|
# By default, all results are returned, starred or not.
|
|
131
131
|
# @!attribute [rw] include_public_tag_templates
|
|
132
|
+
# @deprecated This field is deprecated and may be removed in the next major version update.
|
|
132
133
|
# @return [::Boolean]
|
|
133
134
|
# Optional. This field is deprecated. The search mechanism for public and
|
|
134
135
|
# private tag templates is the same.
|
|
@@ -45,9 +45,9 @@ module Google
|
|
|
45
45
|
# + Partner data
|
|
46
46
|
# + Public data
|
|
47
47
|
# ```
|
|
48
|
-
# @!attribute [
|
|
48
|
+
# @!attribute [rw] name
|
|
49
49
|
# @return [::String]
|
|
50
|
-
#
|
|
50
|
+
# Identifier. Resource name of this taxonomy in URL format.
|
|
51
51
|
#
|
|
52
52
|
# Note: Policy tag manager generates unique taxonomy IDs.
|
|
53
53
|
# @!attribute [rw] display_name
|
|
@@ -120,9 +120,9 @@ module Google
|
|
|
120
120
|
# ```
|
|
121
121
|
#
|
|
122
122
|
# Where the "Geolocation" policy tag contains three children.
|
|
123
|
-
# @!attribute [
|
|
123
|
+
# @!attribute [rw] name
|
|
124
124
|
# @return [::String]
|
|
125
|
-
#
|
|
125
|
+
# Identifier. Resource name of this policy tag in the URL format.
|
|
126
126
|
#
|
|
127
127
|
# The policy tag manager generates unique taxonomy IDs and policy tag IDs.
|
|
128
128
|
# @!attribute [rw] display_name
|