google-cloud-dataform-v1 0.1.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 +7 -0
- data/.yardopts +12 -0
- data/AUTHENTICATION.md +122 -0
- data/LICENSE.md +201 -0
- data/README.md +154 -0
- data/lib/google/cloud/dataform/v1/bindings_override.rb +159 -0
- data/lib/google/cloud/dataform/v1/dataform/client.rb +5766 -0
- data/lib/google/cloud/dataform/v1/dataform/credentials.rb +48 -0
- data/lib/google/cloud/dataform/v1/dataform/paths.rb +273 -0
- data/lib/google/cloud/dataform/v1/dataform/rest/client.rb +5371 -0
- data/lib/google/cloud/dataform/v1/dataform/rest/service_stub.rb +3398 -0
- data/lib/google/cloud/dataform/v1/dataform/rest.rb +54 -0
- data/lib/google/cloud/dataform/v1/dataform.rb +56 -0
- data/lib/google/cloud/dataform/v1/dataform_pb.rb +200 -0
- data/lib/google/cloud/dataform/v1/dataform_services_pb.rb +180 -0
- data/lib/google/cloud/dataform/v1/rest.rb +38 -0
- data/lib/google/cloud/dataform/v1/version.rb +28 -0
- data/lib/google/cloud/dataform/v1.rb +45 -0
- data/lib/google-cloud-dataform-v1.rb +21 -0
- data/proto_docs/README.md +4 -0
- data/proto_docs/google/api/client.rb +473 -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 +227 -0
- data/proto_docs/google/cloud/dataform/v1/dataform.rb +2552 -0
- data/proto_docs/google/protobuf/any.rb +145 -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/rpc/status.rb +48 -0
- data/proto_docs/google/type/expr.rb +75 -0
- data/proto_docs/google/type/interval.rb +45 -0
- metadata +131 -0
@@ -0,0 +1,48 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# Copyright 2025 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 Dataform
|
24
|
+
module V1
|
25
|
+
module Dataform
|
26
|
+
# Credentials for the Dataform API.
|
27
|
+
class Credentials < ::Google::Auth::Credentials
|
28
|
+
self.scope = [
|
29
|
+
"https://www.googleapis.com/auth/bigquery",
|
30
|
+
"https://www.googleapis.com/auth/cloud-platform"
|
31
|
+
]
|
32
|
+
self.env_vars = [
|
33
|
+
"GOOGLE_CLOUD_CREDENTIALS",
|
34
|
+
"GOOGLE_CLOUD_KEYFILE",
|
35
|
+
"GCLOUD_KEYFILE",
|
36
|
+
"GOOGLE_CLOUD_CREDENTIALS_JSON",
|
37
|
+
"GOOGLE_CLOUD_KEYFILE_JSON",
|
38
|
+
"GCLOUD_KEYFILE_JSON"
|
39
|
+
]
|
40
|
+
self.paths = [
|
41
|
+
"~/.config/google_cloud/application_default_credentials.json"
|
42
|
+
]
|
43
|
+
end
|
44
|
+
end
|
45
|
+
end
|
46
|
+
end
|
47
|
+
end
|
48
|
+
end
|
@@ -0,0 +1,273 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# Copyright 2025 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 Dataform
|
23
|
+
module V1
|
24
|
+
module Dataform
|
25
|
+
# Path helper methods for the Dataform API.
|
26
|
+
module Paths
|
27
|
+
##
|
28
|
+
# Create a fully-qualified CompilationResult resource string.
|
29
|
+
#
|
30
|
+
# The resource will be in the following format:
|
31
|
+
#
|
32
|
+
# `projects/{project}/locations/{location}/repositories/{repository}/compilationResults/{compilation_result}`
|
33
|
+
#
|
34
|
+
# @param project [String]
|
35
|
+
# @param location [String]
|
36
|
+
# @param repository [String]
|
37
|
+
# @param compilation_result [String]
|
38
|
+
#
|
39
|
+
# @return [::String]
|
40
|
+
def compilation_result_path project:, location:, repository:, compilation_result:
|
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, "repository cannot contain /" if repository.to_s.include? "/"
|
44
|
+
|
45
|
+
"projects/#{project}/locations/#{location}/repositories/#{repository}/compilationResults/#{compilation_result}"
|
46
|
+
end
|
47
|
+
|
48
|
+
##
|
49
|
+
# Create a fully-qualified Config resource string.
|
50
|
+
#
|
51
|
+
# The resource will be in the following format:
|
52
|
+
#
|
53
|
+
# `projects/{project}/locations/{location}/config`
|
54
|
+
#
|
55
|
+
# @param project [String]
|
56
|
+
# @param location [String]
|
57
|
+
#
|
58
|
+
# @return [::String]
|
59
|
+
def config_path project:, location:
|
60
|
+
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
61
|
+
|
62
|
+
"projects/#{project}/locations/#{location}/config"
|
63
|
+
end
|
64
|
+
|
65
|
+
##
|
66
|
+
# Create a fully-qualified CryptoKey resource string.
|
67
|
+
#
|
68
|
+
# The resource will be in the following format:
|
69
|
+
#
|
70
|
+
# `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}`
|
71
|
+
#
|
72
|
+
# @param project [String]
|
73
|
+
# @param location [String]
|
74
|
+
# @param key_ring [String]
|
75
|
+
# @param crypto_key [String]
|
76
|
+
#
|
77
|
+
# @return [::String]
|
78
|
+
def crypto_key_path project:, location:, key_ring:, crypto_key:
|
79
|
+
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
80
|
+
raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
|
81
|
+
raise ::ArgumentError, "key_ring cannot contain /" if key_ring.to_s.include? "/"
|
82
|
+
|
83
|
+
"projects/#{project}/locations/#{location}/keyRings/#{key_ring}/cryptoKeys/#{crypto_key}"
|
84
|
+
end
|
85
|
+
|
86
|
+
##
|
87
|
+
# Create a fully-qualified CryptoKeyVersion resource string.
|
88
|
+
#
|
89
|
+
# The resource will be in the following format:
|
90
|
+
#
|
91
|
+
# `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}/cryptoKeyVersions/{crypto_key_version}`
|
92
|
+
#
|
93
|
+
# @param project [String]
|
94
|
+
# @param location [String]
|
95
|
+
# @param key_ring [String]
|
96
|
+
# @param crypto_key [String]
|
97
|
+
# @param crypto_key_version [String]
|
98
|
+
#
|
99
|
+
# @return [::String]
|
100
|
+
def crypto_key_version_path project:, location:, key_ring:, crypto_key:, crypto_key_version:
|
101
|
+
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
102
|
+
raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
|
103
|
+
raise ::ArgumentError, "key_ring cannot contain /" if key_ring.to_s.include? "/"
|
104
|
+
raise ::ArgumentError, "crypto_key cannot contain /" if crypto_key.to_s.include? "/"
|
105
|
+
|
106
|
+
"projects/#{project}/locations/#{location}/keyRings/#{key_ring}/cryptoKeys/#{crypto_key}/cryptoKeyVersions/#{crypto_key_version}"
|
107
|
+
end
|
108
|
+
|
109
|
+
##
|
110
|
+
# Create a fully-qualified Location resource string.
|
111
|
+
#
|
112
|
+
# The resource will be in the following format:
|
113
|
+
#
|
114
|
+
# `projects/{project}/locations/{location}`
|
115
|
+
#
|
116
|
+
# @param project [String]
|
117
|
+
# @param location [String]
|
118
|
+
#
|
119
|
+
# @return [::String]
|
120
|
+
def location_path project:, location:
|
121
|
+
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
122
|
+
|
123
|
+
"projects/#{project}/locations/#{location}"
|
124
|
+
end
|
125
|
+
|
126
|
+
##
|
127
|
+
# Create a fully-qualified NotebookRuntimeTemplate resource string.
|
128
|
+
#
|
129
|
+
# The resource will be in the following format:
|
130
|
+
#
|
131
|
+
# `projects/{project}/locations/{location}/notebookRuntimeTemplates/{notebook_runtime_template}`
|
132
|
+
#
|
133
|
+
# @param project [String]
|
134
|
+
# @param location [String]
|
135
|
+
# @param notebook_runtime_template [String]
|
136
|
+
#
|
137
|
+
# @return [::String]
|
138
|
+
def notebook_runtime_template_path project:, location:, notebook_runtime_template:
|
139
|
+
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
140
|
+
raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
|
141
|
+
|
142
|
+
"projects/#{project}/locations/#{location}/notebookRuntimeTemplates/#{notebook_runtime_template}"
|
143
|
+
end
|
144
|
+
|
145
|
+
##
|
146
|
+
# Create a fully-qualified ReleaseConfig resource string.
|
147
|
+
#
|
148
|
+
# The resource will be in the following format:
|
149
|
+
#
|
150
|
+
# `projects/{project}/locations/{location}/repositories/{repository}/releaseConfigs/{release_config}`
|
151
|
+
#
|
152
|
+
# @param project [String]
|
153
|
+
# @param location [String]
|
154
|
+
# @param repository [String]
|
155
|
+
# @param release_config [String]
|
156
|
+
#
|
157
|
+
# @return [::String]
|
158
|
+
def release_config_path project:, location:, repository:, release_config:
|
159
|
+
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
160
|
+
raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
|
161
|
+
raise ::ArgumentError, "repository cannot contain /" if repository.to_s.include? "/"
|
162
|
+
|
163
|
+
"projects/#{project}/locations/#{location}/repositories/#{repository}/releaseConfigs/#{release_config}"
|
164
|
+
end
|
165
|
+
|
166
|
+
##
|
167
|
+
# Create a fully-qualified Repository resource string.
|
168
|
+
#
|
169
|
+
# The resource will be in the following format:
|
170
|
+
#
|
171
|
+
# `projects/{project}/locations/{location}/repositories/{repository}`
|
172
|
+
#
|
173
|
+
# @param project [String]
|
174
|
+
# @param location [String]
|
175
|
+
# @param repository [String]
|
176
|
+
#
|
177
|
+
# @return [::String]
|
178
|
+
def repository_path project:, location:, repository:
|
179
|
+
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
180
|
+
raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
|
181
|
+
|
182
|
+
"projects/#{project}/locations/#{location}/repositories/#{repository}"
|
183
|
+
end
|
184
|
+
|
185
|
+
##
|
186
|
+
# Create a fully-qualified SecretVersion resource string.
|
187
|
+
#
|
188
|
+
# The resource will be in the following format:
|
189
|
+
#
|
190
|
+
# `projects/{project}/secrets/{secret}/versions/{version}`
|
191
|
+
#
|
192
|
+
# @param project [String]
|
193
|
+
# @param secret [String]
|
194
|
+
# @param version [String]
|
195
|
+
#
|
196
|
+
# @return [::String]
|
197
|
+
def secret_version_path project:, secret:, version:
|
198
|
+
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
199
|
+
raise ::ArgumentError, "secret cannot contain /" if secret.to_s.include? "/"
|
200
|
+
|
201
|
+
"projects/#{project}/secrets/#{secret}/versions/#{version}"
|
202
|
+
end
|
203
|
+
|
204
|
+
##
|
205
|
+
# Create a fully-qualified WorkflowConfig resource string.
|
206
|
+
#
|
207
|
+
# The resource will be in the following format:
|
208
|
+
#
|
209
|
+
# `projects/{project}/locations/{location}/repositories/{repository}/workflowConfigs/{workflow_config}`
|
210
|
+
#
|
211
|
+
# @param project [String]
|
212
|
+
# @param location [String]
|
213
|
+
# @param repository [String]
|
214
|
+
# @param workflow_config [String]
|
215
|
+
#
|
216
|
+
# @return [::String]
|
217
|
+
def workflow_config_path project:, location:, repository:, workflow_config:
|
218
|
+
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
219
|
+
raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
|
220
|
+
raise ::ArgumentError, "repository cannot contain /" if repository.to_s.include? "/"
|
221
|
+
|
222
|
+
"projects/#{project}/locations/#{location}/repositories/#{repository}/workflowConfigs/#{workflow_config}"
|
223
|
+
end
|
224
|
+
|
225
|
+
##
|
226
|
+
# Create a fully-qualified WorkflowInvocation resource string.
|
227
|
+
#
|
228
|
+
# The resource will be in the following format:
|
229
|
+
#
|
230
|
+
# `projects/{project}/locations/{location}/repositories/{repository}/workflowInvocations/{workflow_invocation}`
|
231
|
+
#
|
232
|
+
# @param project [String]
|
233
|
+
# @param location [String]
|
234
|
+
# @param repository [String]
|
235
|
+
# @param workflow_invocation [String]
|
236
|
+
#
|
237
|
+
# @return [::String]
|
238
|
+
def workflow_invocation_path project:, location:, repository:, workflow_invocation:
|
239
|
+
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
240
|
+
raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
|
241
|
+
raise ::ArgumentError, "repository cannot contain /" if repository.to_s.include? "/"
|
242
|
+
|
243
|
+
"projects/#{project}/locations/#{location}/repositories/#{repository}/workflowInvocations/#{workflow_invocation}"
|
244
|
+
end
|
245
|
+
|
246
|
+
##
|
247
|
+
# Create a fully-qualified Workspace resource string.
|
248
|
+
#
|
249
|
+
# The resource will be in the following format:
|
250
|
+
#
|
251
|
+
# `projects/{project}/locations/{location}/repositories/{repository}/workspaces/{workspace}`
|
252
|
+
#
|
253
|
+
# @param project [String]
|
254
|
+
# @param location [String]
|
255
|
+
# @param repository [String]
|
256
|
+
# @param workspace [String]
|
257
|
+
#
|
258
|
+
# @return [::String]
|
259
|
+
def workspace_path project:, location:, repository:, workspace:
|
260
|
+
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
261
|
+
raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
|
262
|
+
raise ::ArgumentError, "repository cannot contain /" if repository.to_s.include? "/"
|
263
|
+
|
264
|
+
"projects/#{project}/locations/#{location}/repositories/#{repository}/workspaces/#{workspace}"
|
265
|
+
end
|
266
|
+
|
267
|
+
extend self
|
268
|
+
end
|
269
|
+
end
|
270
|
+
end
|
271
|
+
end
|
272
|
+
end
|
273
|
+
end
|