google-cloud-observability-v1 0.a → 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.
Files changed (34) hide show
  1. checksums.yaml +4 -4
  2. data/.yardopts +12 -0
  3. data/AUTHENTICATION.md +122 -0
  4. data/README.md +153 -8
  5. data/lib/google/cloud/observability/v1/bindings_override.rb +107 -0
  6. data/lib/google/cloud/observability/v1/observability/client.rb +2738 -0
  7. data/lib/google/cloud/observability/v1/observability/credentials.rb +47 -0
  8. data/lib/google/cloud/observability/v1/observability/operations.rb +843 -0
  9. data/lib/google/cloud/observability/v1/observability/paths.rb +226 -0
  10. data/lib/google/cloud/observability/v1/observability/rest/client.rb +2549 -0
  11. data/lib/google/cloud/observability/v1/observability/rest/operations.rb +985 -0
  12. data/lib/google/cloud/observability/v1/observability/rest/service_stub.rb +1461 -0
  13. data/lib/google/cloud/observability/v1/observability/rest.rb +54 -0
  14. data/lib/google/cloud/observability/v1/observability.rb +56 -0
  15. data/lib/google/cloud/observability/v1/observability_pb.rb +65 -0
  16. data/lib/google/cloud/observability/v1/observability_services_pb.rb +87 -0
  17. data/lib/google/cloud/observability/v1/rest.rb +38 -0
  18. data/lib/google/cloud/observability/v1/version.rb +7 -2
  19. data/lib/google/cloud/observability/v1.rb +45 -0
  20. data/lib/google-cloud-observability-v1.rb +21 -0
  21. data/proto_docs/README.md +4 -0
  22. data/proto_docs/google/api/client.rb +593 -0
  23. data/proto_docs/google/api/field_behavior.rb +85 -0
  24. data/proto_docs/google/api/launch_stage.rb +71 -0
  25. data/proto_docs/google/api/resource.rb +227 -0
  26. data/proto_docs/google/cloud/observability/v1/observability.rb +709 -0
  27. data/proto_docs/google/longrunning/operations.rb +191 -0
  28. data/proto_docs/google/protobuf/any.rb +145 -0
  29. data/proto_docs/google/protobuf/duration.rb +98 -0
  30. data/proto_docs/google/protobuf/empty.rb +34 -0
  31. data/proto_docs/google/protobuf/field_mask.rb +229 -0
  32. data/proto_docs/google/protobuf/timestamp.rb +128 -0
  33. data/proto_docs/google/rpc/status.rb +48 -0
  34. metadata +82 -9
@@ -0,0 +1,226 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Copyright 2026 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 Observability
23
+ module V1
24
+ module Observability
25
+ # Path helper methods for the Observability API.
26
+ module Paths
27
+ ##
28
+ # Create a fully-qualified Bucket resource string.
29
+ #
30
+ # The resource will be in the following format:
31
+ #
32
+ # `projects/{project}/locations/{location}/buckets/{bucket}`
33
+ #
34
+ # @param project [String]
35
+ # @param location [String]
36
+ # @param bucket [String]
37
+ #
38
+ # @return [::String]
39
+ def bucket_path project:, location:, bucket:
40
+ raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
41
+ raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
42
+
43
+ "projects/#{project}/locations/#{location}/buckets/#{bucket}"
44
+ end
45
+
46
+ ##
47
+ # Create a fully-qualified Dataset resource string.
48
+ #
49
+ # The resource will be in the following format:
50
+ #
51
+ # `projects/{project}/locations/{location}/buckets/{bucket}/datasets/{dataset}`
52
+ #
53
+ # @param project [String]
54
+ # @param location [String]
55
+ # @param bucket [String]
56
+ # @param dataset [String]
57
+ #
58
+ # @return [::String]
59
+ def dataset_path project:, location:, bucket:, dataset:
60
+ raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
61
+ raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
62
+ raise ::ArgumentError, "bucket cannot contain /" if bucket.to_s.include? "/"
63
+
64
+ "projects/#{project}/locations/#{location}/buckets/#{bucket}/datasets/#{dataset}"
65
+ end
66
+
67
+ ##
68
+ # Create a fully-qualified Link resource string.
69
+ #
70
+ # The resource will be in the following format:
71
+ #
72
+ # `projects/{project}/locations/{location}/buckets/{bucket}/datasets/{dataset}/links/{link}`
73
+ #
74
+ # @param project [String]
75
+ # @param location [String]
76
+ # @param bucket [String]
77
+ # @param dataset [String]
78
+ # @param link [String]
79
+ #
80
+ # @return [::String]
81
+ def link_path project:, location:, bucket:, dataset:, link:
82
+ raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
83
+ raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
84
+ raise ::ArgumentError, "bucket cannot contain /" if bucket.to_s.include? "/"
85
+ raise ::ArgumentError, "dataset cannot contain /" if dataset.to_s.include? "/"
86
+
87
+ "projects/#{project}/locations/#{location}/buckets/#{bucket}/datasets/#{dataset}/links/#{link}"
88
+ end
89
+
90
+ ##
91
+ # Create a fully-qualified Location resource string.
92
+ #
93
+ # The resource will be in the following format:
94
+ #
95
+ # `projects/{project}/locations/{location}`
96
+ #
97
+ # @param project [String]
98
+ # @param location [String]
99
+ #
100
+ # @return [::String]
101
+ def location_path project:, location:
102
+ raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
103
+
104
+ "projects/#{project}/locations/#{location}"
105
+ end
106
+
107
+ ##
108
+ # Create a fully-qualified Scope resource string.
109
+ #
110
+ # The resource will be in the following format:
111
+ #
112
+ # `projects/{project}/locations/{location}/scopes/{scope}`
113
+ #
114
+ # @param project [String]
115
+ # @param location [String]
116
+ # @param scope [String]
117
+ #
118
+ # @return [::String]
119
+ def scope_path project:, location:, scope:
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}/scopes/#{scope}"
124
+ end
125
+
126
+ ##
127
+ # Create a fully-qualified Settings resource string.
128
+ #
129
+ # @overload settings_path(project:, location:)
130
+ # The resource will be in the following format:
131
+ #
132
+ # `projects/{project}/locations/{location}/settings`
133
+ #
134
+ # @param project [String]
135
+ # @param location [String]
136
+ #
137
+ # @overload settings_path(organization:, location:)
138
+ # The resource will be in the following format:
139
+ #
140
+ # `organizations/{organization}/locations/{location}/settings`
141
+ #
142
+ # @param organization [String]
143
+ # @param location [String]
144
+ #
145
+ # @overload settings_path(folder:, location:)
146
+ # The resource will be in the following format:
147
+ #
148
+ # `folders/{folder}/locations/{location}/settings`
149
+ #
150
+ # @param folder [String]
151
+ # @param location [String]
152
+ #
153
+ # @return [::String]
154
+ def settings_path **args
155
+ resources = {
156
+ "location:project" => (proc do |project:, location:|
157
+ raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
158
+
159
+ "projects/#{project}/locations/#{location}/settings"
160
+ end),
161
+ "location:organization" => (proc do |organization:, location:|
162
+ raise ::ArgumentError, "organization cannot contain /" if organization.to_s.include? "/"
163
+
164
+ "organizations/#{organization}/locations/#{location}/settings"
165
+ end),
166
+ "folder:location" => (proc do |folder:, location:|
167
+ raise ::ArgumentError, "folder cannot contain /" if folder.to_s.include? "/"
168
+
169
+ "folders/#{folder}/locations/#{location}/settings"
170
+ end)
171
+ }
172
+
173
+ resource = resources[args.keys.sort.join(":")]
174
+ raise ::ArgumentError, "no resource found for values #{args.keys}" if resource.nil?
175
+ resource.call(**args)
176
+ end
177
+
178
+ ##
179
+ # Create a fully-qualified TraceScope resource string.
180
+ #
181
+ # The resource will be in the following format:
182
+ #
183
+ # `projects/{project}/locations/{location}/traceScopes/{trace_scope}`
184
+ #
185
+ # @param project [String]
186
+ # @param location [String]
187
+ # @param trace_scope [String]
188
+ #
189
+ # @return [::String]
190
+ def trace_scope_path project:, location:, trace_scope:
191
+ raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
192
+ raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
193
+
194
+ "projects/#{project}/locations/#{location}/traceScopes/#{trace_scope}"
195
+ end
196
+
197
+ ##
198
+ # Create a fully-qualified View resource string.
199
+ #
200
+ # The resource will be in the following format:
201
+ #
202
+ # `projects/{project}/locations/{location}/buckets/{bucket}/datasets/{dataset}/views/{view}`
203
+ #
204
+ # @param project [String]
205
+ # @param location [String]
206
+ # @param bucket [String]
207
+ # @param dataset [String]
208
+ # @param view [String]
209
+ #
210
+ # @return [::String]
211
+ def view_path project:, location:, bucket:, dataset:, view:
212
+ raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
213
+ raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
214
+ raise ::ArgumentError, "bucket cannot contain /" if bucket.to_s.include? "/"
215
+ raise ::ArgumentError, "dataset cannot contain /" if dataset.to_s.include? "/"
216
+
217
+ "projects/#{project}/locations/#{location}/buckets/#{bucket}/datasets/#{dataset}/views/#{view}"
218
+ end
219
+
220
+ extend self
221
+ end
222
+ end
223
+ end
224
+ end
225
+ end
226
+ end