google-cloud-dataform-v1beta1 0.a → 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,47 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Copyright 2022 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 V1beta1
25
+ module Dataform
26
+ # Credentials for the Dataform 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,151 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Copyright 2022 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 V1beta1
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 Location resource string.
50
+ #
51
+ # The resource will be in the following format:
52
+ #
53
+ # `projects/{project}/locations/{location}`
54
+ #
55
+ # @param project [String]
56
+ # @param location [String]
57
+ #
58
+ # @return [::String]
59
+ def location_path project:, location:
60
+ raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
61
+
62
+ "projects/#{project}/locations/#{location}"
63
+ end
64
+
65
+ ##
66
+ # Create a fully-qualified Repository resource string.
67
+ #
68
+ # The resource will be in the following format:
69
+ #
70
+ # `projects/{project}/locations/{location}/repositories/{repository}`
71
+ #
72
+ # @param project [String]
73
+ # @param location [String]
74
+ # @param repository [String]
75
+ #
76
+ # @return [::String]
77
+ def repository_path project:, location:, repository:
78
+ raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
79
+ raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
80
+
81
+ "projects/#{project}/locations/#{location}/repositories/#{repository}"
82
+ end
83
+
84
+ ##
85
+ # Create a fully-qualified SecretVersion resource string.
86
+ #
87
+ # The resource will be in the following format:
88
+ #
89
+ # `projects/{project}/secrets/{secret}/versions/{version}`
90
+ #
91
+ # @param project [String]
92
+ # @param secret [String]
93
+ # @param version [String]
94
+ #
95
+ # @return [::String]
96
+ def secret_version_path project:, secret:, version:
97
+ raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
98
+ raise ::ArgumentError, "secret cannot contain /" if secret.to_s.include? "/"
99
+
100
+ "projects/#{project}/secrets/#{secret}/versions/#{version}"
101
+ end
102
+
103
+ ##
104
+ # Create a fully-qualified WorkflowInvocation resource string.
105
+ #
106
+ # The resource will be in the following format:
107
+ #
108
+ # `projects/{project}/locations/{location}/repositories/{repository}/workflowInvocations/{workflow_invocation}`
109
+ #
110
+ # @param project [String]
111
+ # @param location [String]
112
+ # @param repository [String]
113
+ # @param workflow_invocation [String]
114
+ #
115
+ # @return [::String]
116
+ def workflow_invocation_path project:, location:, repository:, workflow_invocation:
117
+ raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
118
+ raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
119
+ raise ::ArgumentError, "repository cannot contain /" if repository.to_s.include? "/"
120
+
121
+ "projects/#{project}/locations/#{location}/repositories/#{repository}/workflowInvocations/#{workflow_invocation}"
122
+ end
123
+
124
+ ##
125
+ # Create a fully-qualified Workspace resource string.
126
+ #
127
+ # The resource will be in the following format:
128
+ #
129
+ # `projects/{project}/locations/{location}/repositories/{repository}/workspaces/{workspace}`
130
+ #
131
+ # @param project [String]
132
+ # @param location [String]
133
+ # @param repository [String]
134
+ # @param workspace [String]
135
+ #
136
+ # @return [::String]
137
+ def workspace_path project:, location:, repository:, workspace:
138
+ raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
139
+ raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
140
+ raise ::ArgumentError, "repository cannot contain /" if repository.to_s.include? "/"
141
+
142
+ "projects/#{project}/locations/#{location}/repositories/#{repository}/workspaces/#{workspace}"
143
+ end
144
+
145
+ extend self
146
+ end
147
+ end
148
+ end
149
+ end
150
+ end
151
+ end
@@ -0,0 +1,50 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Copyright 2022 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 "gapic/common"
20
+ require "gapic/config"
21
+ require "gapic/config/method"
22
+
23
+ require "google/cloud/dataform/v1beta1/version"
24
+
25
+ require "google/cloud/dataform/v1beta1/dataform/credentials"
26
+ require "google/cloud/dataform/v1beta1/dataform/paths"
27
+ require "google/cloud/dataform/v1beta1/dataform/client"
28
+
29
+ module Google
30
+ module Cloud
31
+ module Dataform
32
+ module V1beta1
33
+ ##
34
+ # Dataform is a service to develop, create, document, test, and update curated
35
+ # tables in BigQuery.
36
+ #
37
+ # To load this service and instantiate a client:
38
+ #
39
+ # require "google/cloud/dataform/v1beta1/dataform"
40
+ # client = ::Google::Cloud::Dataform::V1beta1::Dataform::Client.new
41
+ #
42
+ module Dataform
43
+ end
44
+ end
45
+ end
46
+ end
47
+ end
48
+
49
+ helper_path = ::File.join __dir__, "dataform", "helpers.rb"
50
+ require "google/cloud/dataform/v1beta1/dataform/helpers" if ::File.file? helper_path