google-cloud-data_catalog-v1beta1 0.a → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.yardopts +12 -0
- data/AUTHENTICATION.md +149 -0
- data/README.md +144 -8
- data/lib/google/cloud/data_catalog/v1beta1/data_catalog/client.rb +3303 -0
- data/lib/google/cloud/data_catalog/v1beta1/data_catalog/credentials.rb +47 -0
- data/lib/google/cloud/data_catalog/v1beta1/data_catalog/paths.rb +176 -0
- data/lib/google/cloud/data_catalog/v1beta1/data_catalog/rest/client.rb +3093 -0
- data/lib/google/cloud/data_catalog/v1beta1/data_catalog/rest/service_stub.rb +1782 -0
- data/lib/google/cloud/data_catalog/v1beta1/data_catalog/rest.rb +53 -0
- data/lib/google/cloud/data_catalog/v1beta1/data_catalog.rb +56 -0
- data/lib/google/cloud/data_catalog/v1beta1/policy_tag_manager/client.rb +1590 -0
- data/lib/google/cloud/data_catalog/v1beta1/policy_tag_manager/credentials.rb +47 -0
- data/lib/google/cloud/data_catalog/v1beta1/policy_tag_manager/paths.rb +90 -0
- data/lib/google/cloud/data_catalog/v1beta1/policy_tag_manager/rest/client.rb +1470 -0
- data/lib/google/cloud/data_catalog/v1beta1/policy_tag_manager/rest/service_stub.rb +846 -0
- data/lib/google/cloud/data_catalog/v1beta1/policy_tag_manager/rest.rb +53 -0
- data/lib/google/cloud/data_catalog/v1beta1/policy_tag_manager.rb +56 -0
- data/lib/google/cloud/data_catalog/v1beta1/policy_tag_manager_serialization/client.rb +522 -0
- data/lib/google/cloud/data_catalog/v1beta1/policy_tag_manager_serialization/credentials.rb +47 -0
- data/lib/google/cloud/data_catalog/v1beta1/policy_tag_manager_serialization/paths.rb +69 -0
- data/lib/google/cloud/data_catalog/v1beta1/policy_tag_manager_serialization/rest/client.rb +479 -0
- data/lib/google/cloud/data_catalog/v1beta1/policy_tag_manager_serialization/rest/service_stub.rb +167 -0
- data/lib/google/cloud/data_catalog/v1beta1/policy_tag_manager_serialization/rest.rb +53 -0
- data/lib/google/cloud/data_catalog/v1beta1/policy_tag_manager_serialization.rb +56 -0
- data/lib/google/cloud/data_catalog/v1beta1/rest.rb +39 -0
- data/lib/google/cloud/data_catalog/v1beta1/version.rb +7 -2
- data/lib/google/cloud/data_catalog/v1beta1.rb +47 -0
- data/lib/google/cloud/datacatalog/v1beta1/common_pb.rb +43 -0
- data/lib/google/cloud/datacatalog/v1beta1/datacatalog_pb.rb +99 -0
- data/lib/google/cloud/datacatalog/v1beta1/datacatalog_services_pb.rb +229 -0
- data/lib/google/cloud/datacatalog/v1beta1/gcs_fileset_spec_pb.rb +47 -0
- data/lib/google/cloud/datacatalog/v1beta1/policytagmanager_pb.rb +70 -0
- data/lib/google/cloud/datacatalog/v1beta1/policytagmanager_services_pb.rb +73 -0
- data/lib/google/cloud/datacatalog/v1beta1/policytagmanagerserialization_pb.rb +55 -0
- data/lib/google/cloud/datacatalog/v1beta1/policytagmanagerserialization_services_pb.rb +55 -0
- data/lib/google/cloud/datacatalog/v1beta1/schema_pb.rb +45 -0
- data/lib/google/cloud/datacatalog/v1beta1/search_pb.rb +47 -0
- data/lib/google/cloud/datacatalog/v1beta1/table_spec_pb.rb +49 -0
- data/lib/google/cloud/datacatalog/v1beta1/tags_pb.rb +55 -0
- data/lib/google/cloud/datacatalog/v1beta1/timestamps_pb.rb +46 -0
- data/lib/google/cloud/datacatalog/v1beta1/usage_pb.rb +46 -0
- data/lib/google-cloud-data_catalog-v1beta1.rb +21 -0
- data/proto_docs/README.md +4 -0
- data/proto_docs/google/api/client.rb +381 -0
- data/proto_docs/google/api/field_behavior.rb +85 -0
- data/proto_docs/google/api/launch_stage.rb +71 -0
- data/proto_docs/google/api/resource.rb +222 -0
- data/proto_docs/google/cloud/datacatalog/v1beta1/common.rb +52 -0
- data/proto_docs/google/cloud/datacatalog/v1beta1/datacatalog.rb +830 -0
- data/proto_docs/google/cloud/datacatalog/v1beta1/gcs_fileset_spec.rb +81 -0
- data/proto_docs/google/cloud/datacatalog/v1beta1/policytagmanager.rb +300 -0
- data/proto_docs/google/cloud/datacatalog/v1beta1/policytagmanagerserialization.rb +131 -0
- data/proto_docs/google/cloud/datacatalog/v1beta1/schema.rb +61 -0
- data/proto_docs/google/cloud/datacatalog/v1beta1/search.rb +75 -0
- data/proto_docs/google/cloud/datacatalog/v1beta1/table_spec.rb +102 -0
- data/proto_docs/google/cloud/datacatalog/v1beta1/tags.rb +242 -0
- data/proto_docs/google/cloud/datacatalog/v1beta1/timestamps.rb +42 -0
- data/proto_docs/google/cloud/datacatalog/v1beta1/usage.rb +74 -0
- data/proto_docs/google/protobuf/duration.rb +98 -0
- data/proto_docs/google/protobuf/empty.rb +34 -0
- data/proto_docs/google/protobuf/field_mask.rb +229 -0
- data/proto_docs/google/protobuf/timestamp.rb +127 -0
- data/proto_docs/google/type/expr.rb +75 -0
- metadata +242 -13
@@ -0,0 +1,47 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# Copyright 2023 Google LLC
|
4
|
+
#
|
5
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
6
|
+
# you may not use this file except in compliance with the License.
|
7
|
+
# You may obtain a copy of the License at
|
8
|
+
#
|
9
|
+
# https://www.apache.org/licenses/LICENSE-2.0
|
10
|
+
#
|
11
|
+
# Unless required by applicable law or agreed to in writing, software
|
12
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
13
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
14
|
+
# See the License for the specific language governing permissions and
|
15
|
+
# limitations under the License.
|
16
|
+
|
17
|
+
# Auto-generated by gapic-generator-ruby. DO NOT EDIT!
|
18
|
+
|
19
|
+
require "googleauth"
|
20
|
+
|
21
|
+
module Google
|
22
|
+
module Cloud
|
23
|
+
module DataCatalog
|
24
|
+
module V1beta1
|
25
|
+
module DataCatalog
|
26
|
+
# Credentials for the DataCatalog API.
|
27
|
+
class Credentials < ::Google::Auth::Credentials
|
28
|
+
self.scope = [
|
29
|
+
"https://www.googleapis.com/auth/cloud-platform"
|
30
|
+
]
|
31
|
+
self.env_vars = [
|
32
|
+
"GOOGLE_CLOUD_CREDENTIALS",
|
33
|
+
"GOOGLE_CLOUD_KEYFILE",
|
34
|
+
"GCLOUD_KEYFILE",
|
35
|
+
"GOOGLE_CLOUD_CREDENTIALS_JSON",
|
36
|
+
"GOOGLE_CLOUD_KEYFILE_JSON",
|
37
|
+
"GCLOUD_KEYFILE_JSON"
|
38
|
+
]
|
39
|
+
self.paths = [
|
40
|
+
"~/.config/google_cloud/application_default_credentials.json"
|
41
|
+
]
|
42
|
+
end
|
43
|
+
end
|
44
|
+
end
|
45
|
+
end
|
46
|
+
end
|
47
|
+
end
|
@@ -0,0 +1,176 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# Copyright 2023 Google LLC
|
4
|
+
#
|
5
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
6
|
+
# you may not use this file except in compliance with the License.
|
7
|
+
# You may obtain a copy of the License at
|
8
|
+
#
|
9
|
+
# https://www.apache.org/licenses/LICENSE-2.0
|
10
|
+
#
|
11
|
+
# Unless required by applicable law or agreed to in writing, software
|
12
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
13
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
14
|
+
# See the License for the specific language governing permissions and
|
15
|
+
# limitations under the License.
|
16
|
+
|
17
|
+
# Auto-generated by gapic-generator-ruby. DO NOT EDIT!
|
18
|
+
|
19
|
+
|
20
|
+
module Google
|
21
|
+
module Cloud
|
22
|
+
module DataCatalog
|
23
|
+
module V1beta1
|
24
|
+
module DataCatalog
|
25
|
+
# Path helper methods for the DataCatalog API.
|
26
|
+
module Paths
|
27
|
+
##
|
28
|
+
# Create a fully-qualified Entry resource string.
|
29
|
+
#
|
30
|
+
# The resource will be in the following format:
|
31
|
+
#
|
32
|
+
# `projects/{project}/locations/{location}/entryGroups/{entry_group}/entries/{entry}`
|
33
|
+
#
|
34
|
+
# @param project [String]
|
35
|
+
# @param location [String]
|
36
|
+
# @param entry_group [String]
|
37
|
+
# @param entry [String]
|
38
|
+
#
|
39
|
+
# @return [::String]
|
40
|
+
def entry_path project:, location:, entry_group:, entry:
|
41
|
+
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
42
|
+
raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
|
43
|
+
raise ::ArgumentError, "entry_group cannot contain /" if entry_group.to_s.include? "/"
|
44
|
+
|
45
|
+
"projects/#{project}/locations/#{location}/entryGroups/#{entry_group}/entries/#{entry}"
|
46
|
+
end
|
47
|
+
|
48
|
+
##
|
49
|
+
# Create a fully-qualified EntryGroup resource string.
|
50
|
+
#
|
51
|
+
# The resource will be in the following format:
|
52
|
+
#
|
53
|
+
# `projects/{project}/locations/{location}/entryGroups/{entry_group}`
|
54
|
+
#
|
55
|
+
# @param project [String]
|
56
|
+
# @param location [String]
|
57
|
+
# @param entry_group [String]
|
58
|
+
#
|
59
|
+
# @return [::String]
|
60
|
+
def entry_group_path project:, location:, entry_group:
|
61
|
+
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
62
|
+
raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
|
63
|
+
|
64
|
+
"projects/#{project}/locations/#{location}/entryGroups/#{entry_group}"
|
65
|
+
end
|
66
|
+
|
67
|
+
##
|
68
|
+
# Create a fully-qualified Location resource string.
|
69
|
+
#
|
70
|
+
# The resource will be in the following format:
|
71
|
+
#
|
72
|
+
# `projects/{project}/locations/{location}`
|
73
|
+
#
|
74
|
+
# @param project [String]
|
75
|
+
# @param location [String]
|
76
|
+
#
|
77
|
+
# @return [::String]
|
78
|
+
def location_path project:, location:
|
79
|
+
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
80
|
+
|
81
|
+
"projects/#{project}/locations/#{location}"
|
82
|
+
end
|
83
|
+
|
84
|
+
##
|
85
|
+
# Create a fully-qualified Tag resource string.
|
86
|
+
#
|
87
|
+
# The resource will be in the following format:
|
88
|
+
#
|
89
|
+
# `projects/{project}/locations/{location}/entryGroups/{entry_group}/entries/{entry}/tags/{tag}`
|
90
|
+
#
|
91
|
+
# @param project [String]
|
92
|
+
# @param location [String]
|
93
|
+
# @param entry_group [String]
|
94
|
+
# @param entry [String]
|
95
|
+
# @param tag [String]
|
96
|
+
#
|
97
|
+
# @return [::String]
|
98
|
+
def tag_path project:, location:, entry_group:, entry:, tag:
|
99
|
+
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
100
|
+
raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
|
101
|
+
raise ::ArgumentError, "entry_group cannot contain /" if entry_group.to_s.include? "/"
|
102
|
+
raise ::ArgumentError, "entry cannot contain /" if entry.to_s.include? "/"
|
103
|
+
|
104
|
+
"projects/#{project}/locations/#{location}/entryGroups/#{entry_group}/entries/#{entry}/tags/#{tag}"
|
105
|
+
end
|
106
|
+
|
107
|
+
##
|
108
|
+
# Create a fully-qualified TagTemplate resource string.
|
109
|
+
#
|
110
|
+
# The resource will be in the following format:
|
111
|
+
#
|
112
|
+
# `projects/{project}/locations/{location}/tagTemplates/{tag_template}`
|
113
|
+
#
|
114
|
+
# @param project [String]
|
115
|
+
# @param location [String]
|
116
|
+
# @param tag_template [String]
|
117
|
+
#
|
118
|
+
# @return [::String]
|
119
|
+
def tag_template_path project:, location:, tag_template:
|
120
|
+
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
121
|
+
raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
|
122
|
+
|
123
|
+
"projects/#{project}/locations/#{location}/tagTemplates/#{tag_template}"
|
124
|
+
end
|
125
|
+
|
126
|
+
##
|
127
|
+
# Create a fully-qualified TagTemplateField resource string.
|
128
|
+
#
|
129
|
+
# The resource will be in the following format:
|
130
|
+
#
|
131
|
+
# `projects/{project}/locations/{location}/tagTemplates/{tag_template}/fields/{field}`
|
132
|
+
#
|
133
|
+
# @param project [String]
|
134
|
+
# @param location [String]
|
135
|
+
# @param tag_template [String]
|
136
|
+
# @param field [String]
|
137
|
+
#
|
138
|
+
# @return [::String]
|
139
|
+
def tag_template_field_path project:, location:, tag_template:, field:
|
140
|
+
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
141
|
+
raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
|
142
|
+
raise ::ArgumentError, "tag_template cannot contain /" if tag_template.to_s.include? "/"
|
143
|
+
|
144
|
+
"projects/#{project}/locations/#{location}/tagTemplates/#{tag_template}/fields/#{field}"
|
145
|
+
end
|
146
|
+
|
147
|
+
##
|
148
|
+
# Create a fully-qualified TagTemplateFieldEnumValue resource string.
|
149
|
+
#
|
150
|
+
# The resource will be in the following format:
|
151
|
+
#
|
152
|
+
# `projects/{project}/locations/{location}/tagTemplates/{tag_template}/fields/{tag_template_field_id}/enumValues/{enum_value_display_name}`
|
153
|
+
#
|
154
|
+
# @param project [String]
|
155
|
+
# @param location [String]
|
156
|
+
# @param tag_template [String]
|
157
|
+
# @param tag_template_field_id [String]
|
158
|
+
# @param enum_value_display_name [String]
|
159
|
+
#
|
160
|
+
# @return [::String]
|
161
|
+
def tag_template_field_enum_value_path project:, location:, tag_template:, tag_template_field_id:, enum_value_display_name:
|
162
|
+
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
163
|
+
raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
|
164
|
+
raise ::ArgumentError, "tag_template cannot contain /" if tag_template.to_s.include? "/"
|
165
|
+
raise ::ArgumentError, "tag_template_field_id cannot contain /" if tag_template_field_id.to_s.include? "/"
|
166
|
+
|
167
|
+
"projects/#{project}/locations/#{location}/tagTemplates/#{tag_template}/fields/#{tag_template_field_id}/enumValues/#{enum_value_display_name}"
|
168
|
+
end
|
169
|
+
|
170
|
+
extend self
|
171
|
+
end
|
172
|
+
end
|
173
|
+
end
|
174
|
+
end
|
175
|
+
end
|
176
|
+
end
|