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

Sign up to get free protection for your applications and to get access to all the features.
Files changed (32) hide show
  1. checksums.yaml +4 -4
  2. data/.yardopts +12 -0
  3. data/AUTHENTICATION.md +149 -0
  4. data/README.md +144 -8
  5. data/lib/google/cloud/dataform/v1beta1/bindings_override.rb +102 -0
  6. data/lib/google/cloud/dataform/v1beta1/dataform/client.rb +3843 -0
  7. data/lib/google/cloud/dataform/v1beta1/dataform/credentials.rb +47 -0
  8. data/lib/google/cloud/dataform/v1beta1/dataform/paths.rb +151 -0
  9. data/lib/google/cloud/dataform/v1beta1/dataform/rest/client.rb +2971 -0
  10. data/lib/google/cloud/dataform/v1beta1/dataform/rest/service_stub.rb +2189 -0
  11. data/lib/google/cloud/dataform/v1beta1/dataform/rest.rb +54 -0
  12. data/lib/google/cloud/dataform/v1beta1/dataform.rb +56 -0
  13. data/lib/google/cloud/dataform/v1beta1/dataform_pb.rb +504 -0
  14. data/lib/google/cloud/dataform/v1beta1/dataform_services_pb.rb +117 -0
  15. data/lib/google/cloud/dataform/v1beta1/rest.rb +38 -0
  16. data/lib/google/cloud/dataform/v1beta1/version.rb +7 -2
  17. data/lib/google/cloud/dataform/v1beta1.rb +45 -0
  18. data/lib/google-cloud-dataform-v1beta1.rb +21 -0
  19. data/proto_docs/README.md +4 -0
  20. data/proto_docs/google/api/client.rb +318 -0
  21. data/proto_docs/google/api/field_behavior.rb +71 -0
  22. data/proto_docs/google/api/launch_stage.rb +71 -0
  23. data/proto_docs/google/api/resource.rb +222 -0
  24. data/proto_docs/google/cloud/dataform/v1beta1/dataform.rb +1351 -0
  25. data/proto_docs/google/protobuf/any.rb +141 -0
  26. data/proto_docs/google/protobuf/duration.rb +98 -0
  27. data/proto_docs/google/protobuf/empty.rb +34 -0
  28. data/proto_docs/google/protobuf/field_mask.rb +229 -0
  29. data/proto_docs/google/protobuf/timestamp.rb +129 -0
  30. data/proto_docs/google/type/expr.rb +75 -0
  31. data/proto_docs/google/type/interval.rb +45 -0
  32. metadata +227 -13
@@ -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