google-cloud-app_optimize-v1beta 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 +154 -8
  5. data/lib/google/cloud/app_optimize/v1beta/version.rb +7 -2
  6. data/lib/google/cloud/appoptimize/v1beta/app_optimize/client.rb +959 -0
  7. data/lib/google/cloud/appoptimize/v1beta/app_optimize/credentials.rb +47 -0
  8. data/lib/google/cloud/appoptimize/v1beta/app_optimize/operations.rb +841 -0
  9. data/lib/google/cloud/appoptimize/v1beta/app_optimize/paths.rb +102 -0
  10. data/lib/google/cloud/appoptimize/v1beta/app_optimize/rest/client.rb +889 -0
  11. data/lib/google/cloud/appoptimize/v1beta/app_optimize/rest/operations.rb +925 -0
  12. data/lib/google/cloud/appoptimize/v1beta/app_optimize/rest/service_stub.rb +388 -0
  13. data/lib/google/cloud/appoptimize/v1beta/app_optimize/rest.rb +54 -0
  14. data/lib/google/cloud/appoptimize/v1beta/app_optimize.rb +56 -0
  15. data/lib/google/cloud/appoptimize/v1beta/app_optimize_pb.rb +40 -0
  16. data/lib/google/cloud/appoptimize/v1beta/app_optimize_services_pb.rb +57 -0
  17. data/lib/google/cloud/appoptimize/v1beta/bindings_override.rb +75 -0
  18. data/lib/google/cloud/appoptimize/v1beta/rest.rb +38 -0
  19. data/lib/google/cloud/appoptimize/v1beta.rb +45 -0
  20. data/lib/google-cloud-app_optimize-v1beta.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/appoptimize/v1beta/app_optimize.rb +328 -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/struct.rb +108 -0
  32. data/proto_docs/google/protobuf/timestamp.rb +127 -0
  33. data/proto_docs/google/rpc/status.rb +48 -0
  34. metadata +83 -9
@@ -0,0 +1,388 @@
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
+ require "google/cloud/appoptimize/v1beta/app_optimize_pb"
20
+
21
+ module Google
22
+ module Cloud
23
+ module Appoptimize
24
+ module V1beta
25
+ module AppOptimize
26
+ module Rest
27
+ ##
28
+ # REST service stub for the AppOptimize service.
29
+ # Service stub contains baseline method implementations
30
+ # including transcoding, making the REST call, and deserialing the response.
31
+ #
32
+ class ServiceStub
33
+ # @private
34
+ def initialize endpoint:, endpoint_template:, universe_domain:, credentials:, logger:
35
+ # These require statements are intentionally placed here to initialize
36
+ # the REST modules only when it's required.
37
+ require "gapic/rest"
38
+
39
+ @client_stub = ::Gapic::Rest::ClientStub.new endpoint: endpoint,
40
+ endpoint_template: endpoint_template,
41
+ universe_domain: universe_domain,
42
+ credentials: credentials,
43
+ numeric_enums: true,
44
+ service_name: self.class,
45
+ raise_faraday_errors: false,
46
+ logger: logger
47
+ end
48
+
49
+ ##
50
+ # The effective universe domain
51
+ #
52
+ # @return [String]
53
+ #
54
+ def universe_domain
55
+ @client_stub.universe_domain
56
+ end
57
+
58
+ ##
59
+ # The effective endpoint
60
+ #
61
+ # @return [String]
62
+ #
63
+ def endpoint
64
+ @client_stub.endpoint
65
+ end
66
+
67
+ ##
68
+ # The logger used for request/response debug logging.
69
+ #
70
+ # @return [Logger]
71
+ #
72
+ def logger stub: false
73
+ stub ? @client_stub.stub_logger : @client_stub.logger
74
+ end
75
+
76
+ ##
77
+ # Baseline implementation for the create_report REST call
78
+ #
79
+ # @param request_pb [::Google::Cloud::Appoptimize::V1beta::CreateReportRequest]
80
+ # A request object representing the call parameters. Required.
81
+ # @param options [::Gapic::CallOptions]
82
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
83
+ #
84
+ # @yield [result, operation] Access the result along with the TransportOperation object
85
+ # @yieldparam result [::Google::Longrunning::Operation]
86
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
87
+ #
88
+ # @return [::Google::Longrunning::Operation]
89
+ # A result object deserialized from the server's reply
90
+ def create_report request_pb, options = nil
91
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
92
+
93
+ verb, uri, query_string_params, body = ServiceStub.transcode_create_report_request request_pb
94
+ query_string_params = if query_string_params.any?
95
+ query_string_params.to_h { |p| p.split "=", 2 }
96
+ else
97
+ {}
98
+ end
99
+
100
+ response = @client_stub.make_http_request(
101
+ verb,
102
+ uri: uri,
103
+ body: body || "",
104
+ params: query_string_params,
105
+ method_name: "create_report",
106
+ options: options
107
+ )
108
+ operation = ::Gapic::Rest::TransportOperation.new response
109
+ result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true
110
+ catch :response do
111
+ yield result, operation if block_given?
112
+ result
113
+ end
114
+ end
115
+
116
+ ##
117
+ # Baseline implementation for the get_report REST call
118
+ #
119
+ # @param request_pb [::Google::Cloud::Appoptimize::V1beta::GetReportRequest]
120
+ # A request object representing the call parameters. Required.
121
+ # @param options [::Gapic::CallOptions]
122
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
123
+ #
124
+ # @yield [result, operation] Access the result along with the TransportOperation object
125
+ # @yieldparam result [::Google::Cloud::Appoptimize::V1beta::Report]
126
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
127
+ #
128
+ # @return [::Google::Cloud::Appoptimize::V1beta::Report]
129
+ # A result object deserialized from the server's reply
130
+ def get_report request_pb, options = nil
131
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
132
+
133
+ verb, uri, query_string_params, body = ServiceStub.transcode_get_report_request request_pb
134
+ query_string_params = if query_string_params.any?
135
+ query_string_params.to_h { |p| p.split "=", 2 }
136
+ else
137
+ {}
138
+ end
139
+
140
+ response = @client_stub.make_http_request(
141
+ verb,
142
+ uri: uri,
143
+ body: body || "",
144
+ params: query_string_params,
145
+ method_name: "get_report",
146
+ options: options
147
+ )
148
+ operation = ::Gapic::Rest::TransportOperation.new response
149
+ result = ::Google::Cloud::Appoptimize::V1beta::Report.decode_json response.body, ignore_unknown_fields: true
150
+ catch :response do
151
+ yield result, operation if block_given?
152
+ result
153
+ end
154
+ end
155
+
156
+ ##
157
+ # Baseline implementation for the list_reports REST call
158
+ #
159
+ # @param request_pb [::Google::Cloud::Appoptimize::V1beta::ListReportsRequest]
160
+ # A request object representing the call parameters. Required.
161
+ # @param options [::Gapic::CallOptions]
162
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
163
+ #
164
+ # @yield [result, operation] Access the result along with the TransportOperation object
165
+ # @yieldparam result [::Google::Cloud::Appoptimize::V1beta::ListReportsResponse]
166
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
167
+ #
168
+ # @return [::Google::Cloud::Appoptimize::V1beta::ListReportsResponse]
169
+ # A result object deserialized from the server's reply
170
+ def list_reports request_pb, options = nil
171
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
172
+
173
+ verb, uri, query_string_params, body = ServiceStub.transcode_list_reports_request request_pb
174
+ query_string_params = if query_string_params.any?
175
+ query_string_params.to_h { |p| p.split "=", 2 }
176
+ else
177
+ {}
178
+ end
179
+
180
+ response = @client_stub.make_http_request(
181
+ verb,
182
+ uri: uri,
183
+ body: body || "",
184
+ params: query_string_params,
185
+ method_name: "list_reports",
186
+ options: options
187
+ )
188
+ operation = ::Gapic::Rest::TransportOperation.new response
189
+ result = ::Google::Cloud::Appoptimize::V1beta::ListReportsResponse.decode_json response.body, ignore_unknown_fields: true
190
+ catch :response do
191
+ yield result, operation if block_given?
192
+ result
193
+ end
194
+ end
195
+
196
+ ##
197
+ # Baseline implementation for the delete_report REST call
198
+ #
199
+ # @param request_pb [::Google::Cloud::Appoptimize::V1beta::DeleteReportRequest]
200
+ # A request object representing the call parameters. Required.
201
+ # @param options [::Gapic::CallOptions]
202
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
203
+ #
204
+ # @yield [result, operation] Access the result along with the TransportOperation object
205
+ # @yieldparam result [::Google::Protobuf::Empty]
206
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
207
+ #
208
+ # @return [::Google::Protobuf::Empty]
209
+ # A result object deserialized from the server's reply
210
+ def delete_report request_pb, options = nil
211
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
212
+
213
+ verb, uri, query_string_params, body = ServiceStub.transcode_delete_report_request request_pb
214
+ query_string_params = if query_string_params.any?
215
+ query_string_params.to_h { |p| p.split "=", 2 }
216
+ else
217
+ {}
218
+ end
219
+
220
+ response = @client_stub.make_http_request(
221
+ verb,
222
+ uri: uri,
223
+ body: body || "",
224
+ params: query_string_params,
225
+ method_name: "delete_report",
226
+ options: options
227
+ )
228
+ operation = ::Gapic::Rest::TransportOperation.new response
229
+ result = ::Google::Protobuf::Empty.decode_json response.body, ignore_unknown_fields: true
230
+ catch :response do
231
+ yield result, operation if block_given?
232
+ result
233
+ end
234
+ end
235
+
236
+ ##
237
+ # Baseline implementation for the read_report REST call
238
+ #
239
+ # @param request_pb [::Google::Cloud::Appoptimize::V1beta::ReadReportRequest]
240
+ # A request object representing the call parameters. Required.
241
+ # @param options [::Gapic::CallOptions]
242
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
243
+ #
244
+ # @yield [result, operation] Access the result along with the TransportOperation object
245
+ # @yieldparam result [::Google::Cloud::Appoptimize::V1beta::ReadReportResponse]
246
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
247
+ #
248
+ # @return [::Google::Cloud::Appoptimize::V1beta::ReadReportResponse]
249
+ # A result object deserialized from the server's reply
250
+ def read_report request_pb, options = nil
251
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
252
+
253
+ verb, uri, query_string_params, body = ServiceStub.transcode_read_report_request request_pb
254
+ query_string_params = if query_string_params.any?
255
+ query_string_params.to_h { |p| p.split "=", 2 }
256
+ else
257
+ {}
258
+ end
259
+
260
+ response = @client_stub.make_http_request(
261
+ verb,
262
+ uri: uri,
263
+ body: body || "",
264
+ params: query_string_params,
265
+ method_name: "read_report",
266
+ options: options
267
+ )
268
+ operation = ::Gapic::Rest::TransportOperation.new response
269
+ result = ::Google::Cloud::Appoptimize::V1beta::ReadReportResponse.decode_json response.body, ignore_unknown_fields: true
270
+ catch :response do
271
+ yield result, operation if block_given?
272
+ result
273
+ end
274
+ end
275
+
276
+ ##
277
+ # @private
278
+ #
279
+ # GRPC transcoding helper method for the create_report REST call
280
+ #
281
+ # @param request_pb [::Google::Cloud::Appoptimize::V1beta::CreateReportRequest]
282
+ # A request object representing the call parameters. Required.
283
+ # @return [Array(String, [String, nil], Hash{String => String})]
284
+ # Uri, Body, Query string parameters
285
+ def self.transcode_create_report_request request_pb
286
+ transcoder = Gapic::Rest::GrpcTranscoder.new
287
+ .with_bindings(
288
+ uri_method: :post,
289
+ uri_template: "/v1beta/{parent}/reports",
290
+ body: "report",
291
+ matches: [
292
+ ["parent", %r{^projects/[^/]+/locations/[^/]+/?$}, false]
293
+ ]
294
+ )
295
+ transcoder.transcode request_pb
296
+ end
297
+
298
+ ##
299
+ # @private
300
+ #
301
+ # GRPC transcoding helper method for the get_report REST call
302
+ #
303
+ # @param request_pb [::Google::Cloud::Appoptimize::V1beta::GetReportRequest]
304
+ # A request object representing the call parameters. Required.
305
+ # @return [Array(String, [String, nil], Hash{String => String})]
306
+ # Uri, Body, Query string parameters
307
+ def self.transcode_get_report_request request_pb
308
+ transcoder = Gapic::Rest::GrpcTranscoder.new
309
+ .with_bindings(
310
+ uri_method: :get,
311
+ uri_template: "/v1beta/{name}",
312
+ matches: [
313
+ ["name", %r{^projects/[^/]+/locations/[^/]+/reports/[^/]+/?$}, false]
314
+ ]
315
+ )
316
+ transcoder.transcode request_pb
317
+ end
318
+
319
+ ##
320
+ # @private
321
+ #
322
+ # GRPC transcoding helper method for the list_reports REST call
323
+ #
324
+ # @param request_pb [::Google::Cloud::Appoptimize::V1beta::ListReportsRequest]
325
+ # A request object representing the call parameters. Required.
326
+ # @return [Array(String, [String, nil], Hash{String => String})]
327
+ # Uri, Body, Query string parameters
328
+ def self.transcode_list_reports_request request_pb
329
+ transcoder = Gapic::Rest::GrpcTranscoder.new
330
+ .with_bindings(
331
+ uri_method: :get,
332
+ uri_template: "/v1beta/{parent}/reports",
333
+ matches: [
334
+ ["parent", %r{^projects/[^/]+/locations/[^/]+/?$}, false]
335
+ ]
336
+ )
337
+ transcoder.transcode request_pb
338
+ end
339
+
340
+ ##
341
+ # @private
342
+ #
343
+ # GRPC transcoding helper method for the delete_report REST call
344
+ #
345
+ # @param request_pb [::Google::Cloud::Appoptimize::V1beta::DeleteReportRequest]
346
+ # A request object representing the call parameters. Required.
347
+ # @return [Array(String, [String, nil], Hash{String => String})]
348
+ # Uri, Body, Query string parameters
349
+ def self.transcode_delete_report_request request_pb
350
+ transcoder = Gapic::Rest::GrpcTranscoder.new
351
+ .with_bindings(
352
+ uri_method: :delete,
353
+ uri_template: "/v1beta/{name}",
354
+ matches: [
355
+ ["name", %r{^projects/[^/]+/locations/[^/]+/reports/[^/]+/?$}, false]
356
+ ]
357
+ )
358
+ transcoder.transcode request_pb
359
+ end
360
+
361
+ ##
362
+ # @private
363
+ #
364
+ # GRPC transcoding helper method for the read_report REST call
365
+ #
366
+ # @param request_pb [::Google::Cloud::Appoptimize::V1beta::ReadReportRequest]
367
+ # A request object representing the call parameters. Required.
368
+ # @return [Array(String, [String, nil], Hash{String => String})]
369
+ # Uri, Body, Query string parameters
370
+ def self.transcode_read_report_request request_pb
371
+ transcoder = Gapic::Rest::GrpcTranscoder.new
372
+ .with_bindings(
373
+ uri_method: :post,
374
+ uri_template: "/v1beta/{name}:read",
375
+ body: "*",
376
+ matches: [
377
+ ["name", %r{^projects/[^/]+/locations/[^/]+/reports/[^/]+/?$}, false]
378
+ ]
379
+ )
380
+ transcoder.transcode request_pb
381
+ end
382
+ end
383
+ end
384
+ end
385
+ end
386
+ end
387
+ end
388
+ end
@@ -0,0 +1,54 @@
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
+ require "gapic/rest"
20
+ require "gapic/config"
21
+ require "gapic/config/method"
22
+
23
+ require "google/cloud/app_optimize/v1beta/version"
24
+ require "google/cloud/appoptimize/v1beta/bindings_override"
25
+
26
+ require "google/cloud/appoptimize/v1beta/app_optimize/credentials"
27
+ require "google/cloud/appoptimize/v1beta/app_optimize/paths"
28
+ require "google/cloud/appoptimize/v1beta/app_optimize/rest/operations"
29
+ require "google/cloud/appoptimize/v1beta/app_optimize/rest/client"
30
+
31
+ module Google
32
+ module Cloud
33
+ module Appoptimize
34
+ module V1beta
35
+ ##
36
+ # Service for managing and querying optimization reports.
37
+ #
38
+ # To load this service and instantiate a REST client:
39
+ #
40
+ # require "google/cloud/appoptimize/v1beta/app_optimize/rest"
41
+ # client = ::Google::Cloud::Appoptimize::V1beta::AppOptimize::Rest::Client.new
42
+ #
43
+ module AppOptimize
44
+ # Client for the REST transport
45
+ module Rest
46
+ end
47
+ end
48
+ end
49
+ end
50
+ end
51
+ end
52
+
53
+ helper_path = ::File.join __dir__, "rest", "helpers.rb"
54
+ require "google/cloud/appoptimize/v1beta/app_optimize/rest/helpers" if ::File.file? helper_path
@@ -0,0 +1,56 @@
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
+ require "gapic/common"
20
+ require "gapic/config"
21
+ require "gapic/config/method"
22
+
23
+ require "google/cloud/app_optimize/v1beta/version"
24
+
25
+ require "google/cloud/appoptimize/v1beta/app_optimize/credentials"
26
+ require "google/cloud/appoptimize/v1beta/app_optimize/paths"
27
+ require "google/cloud/appoptimize/v1beta/app_optimize/operations"
28
+ require "google/cloud/appoptimize/v1beta/app_optimize/client"
29
+ require "google/cloud/appoptimize/v1beta/app_optimize/rest"
30
+
31
+ module Google
32
+ module Cloud
33
+ module Appoptimize
34
+ module V1beta
35
+ ##
36
+ # Service for managing and querying optimization reports.
37
+ #
38
+ # @example Load this service and instantiate a gRPC client
39
+ #
40
+ # require "google/cloud/appoptimize/v1beta/app_optimize"
41
+ # client = ::Google::Cloud::Appoptimize::V1beta::AppOptimize::Client.new
42
+ #
43
+ # @example Load this service and instantiate a REST client
44
+ #
45
+ # require "google/cloud/appoptimize/v1beta/app_optimize/rest"
46
+ # client = ::Google::Cloud::Appoptimize::V1beta::AppOptimize::Rest::Client.new
47
+ #
48
+ module AppOptimize
49
+ end
50
+ end
51
+ end
52
+ end
53
+ end
54
+
55
+ helper_path = ::File.join __dir__, "app_optimize", "helpers.rb"
56
+ require "google/cloud/appoptimize/v1beta/app_optimize/helpers" if ::File.file? helper_path
@@ -0,0 +1,40 @@
1
+ # frozen_string_literal: true
2
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
3
+ # source: google/cloud/appoptimize/v1beta/app_optimize.proto
4
+
5
+ require 'google/protobuf'
6
+
7
+ require 'google/api/annotations_pb'
8
+ require 'google/api/client_pb'
9
+ require 'google/api/field_behavior_pb'
10
+ require 'google/api/resource_pb'
11
+ require 'google/longrunning/operations_pb'
12
+ require 'google/protobuf/empty_pb'
13
+ require 'google/protobuf/struct_pb'
14
+ require 'google/protobuf/timestamp_pb'
15
+
16
+
17
+ descriptor_data = "\n2google/cloud/appoptimize/v1beta/app_optimize.proto\x12\x1fgoogle.cloud.appoptimize.v1beta\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a#google/longrunning/operations.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a\x1cgoogle/protobuf/struct.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\xa6\x01\n\x13\x43reateReportRequest\x12\x39\n\x06parent\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\x12!appoptimize.googleapis.com/Report\x12\x16\n\treport_id\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12<\n\x06report\x18\x03 \x01(\x0b\x32\'.google.cloud.appoptimize.v1beta.ReportB\x03\xe0\x41\x02\"\xd5\x02\n\x06Report\x12\x36\n\x0b\x65xpire_time\x18\x06 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03H\x00\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x08\x12\x17\n\ndimensions\x18\x02 \x03(\tB\x03\xe0\x41\x02\x12\x14\n\x07metrics\x18\x07 \x03(\tB\x03\xe0\x41\x02\x12;\n\x06scopes\x18\x03 \x03(\x0b\x32&.google.cloud.appoptimize.v1beta.ScopeB\x03\xe0\x41\x01\x12\x13\n\x06\x66ilter\x18\x04 \x01(\tB\x03\xe0\x41\x01:q\xea\x41n\n!appoptimize.googleapis.com/Report\x12\x38projects/{project}/locations/{location}/reports/{report}*\x07reports2\x06reportB\x0c\n\nexpiration\"\x9a\x01\n\x05Scope\x12\x46\n\x07project\x18\x01 \x01(\tB3\xe0\x41\x02\xfa\x41-\n+cloudresourcemanager.googleapis.com/ProjectH\x00\x12@\n\x0b\x61pplication\x18\x02 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!apphub.googleapis.com/ApplicationH\x00\x42\x07\n\x05scope\"K\n\x10GetReportRequest\x12\x37\n\x04name\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!appoptimize.googleapis.com/Report\"\x80\x01\n\x12ListReportsRequest\x12\x39\n\x06parent\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\x12!appoptimize.googleapis.com/Report\x12\x16\n\tpage_size\x18\x02 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x03 \x01(\tB\x03\xe0\x41\x01\"h\n\x13ListReportsResponse\x12\x38\n\x07reports\x18\x01 \x03(\x0b\x32\'.google.cloud.appoptimize.v1beta.Report\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"j\n\x13\x44\x65leteReportRequest\x12\x37\n\x04name\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!appoptimize.googleapis.com/Report\x12\x1a\n\rallow_missing\x18\x02 \x01(\x08\x42\x03\xe0\x41\x01\"}\n\x11ReadReportRequest\x12\x37\n\x04name\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!appoptimize.googleapis.com/Report\x12\x16\n\tpage_size\x18\x04 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x05 \x01(\tB\x03\xe0\x41\x01\"\x91\x01\n\x12ReadReportResponse\x12(\n\x04rows\x18\x01 \x03(\x0b\x32\x1a.google.protobuf.ListValue\x12\x38\n\x07\x63olumns\x18\x05 \x03(\x0b\x32\'.google.cloud.appoptimize.v1beta.Column\x12\x17\n\x0fnext_page_token\x18\x03 \x01(\t\"l\n\x06\x43olumn\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x0c\n\x04type\x18\x02 \x01(\t\x12\x0c\n\x04mode\x18\x03 \x01(\t\x12\x38\n\x07\x63olumns\x18\x04 \x03(\x0b\x32\'.google.cloud.appoptimize.v1beta.Column\"\x13\n\x11OperationMetadata2\x82\x08\n\x0b\x41ppOptimize\x12\xdc\x01\n\x0c\x43reateReport\x12\x34.google.cloud.appoptimize.v1beta.CreateReportRequest\x1a\x1d.google.longrunning.Operation\"w\xca\x41\x1b\n\x06Report\x12\x11OperationMetadata\xda\x41\x17parent,report,report_id\x82\xd3\xe4\x93\x02\x39\"//v1beta/{parent=projects/*/locations/*}/reports:\x06report\x12\xa7\x01\n\tGetReport\x12\x31.google.cloud.appoptimize.v1beta.GetReportRequest\x1a\'.google.cloud.appoptimize.v1beta.Report\">\xda\x41\x04name\x82\xd3\xe4\x93\x02\x31\x12//v1beta/{name=projects/*/locations/*/reports/*}\x12\xba\x01\n\x0bListReports\x12\x33.google.cloud.appoptimize.v1beta.ListReportsRequest\x1a\x34.google.cloud.appoptimize.v1beta.ListReportsResponse\"@\xda\x41\x06parent\x82\xd3\xe4\x93\x02\x31\x12//v1beta/{parent=projects/*/locations/*}/reports\x12\x9c\x01\n\x0c\x44\x65leteReport\x12\x34.google.cloud.appoptimize.v1beta.DeleteReportRequest\x1a\x16.google.protobuf.Empty\">\xda\x41\x04name\x82\xd3\xe4\x93\x02\x31*//v1beta/{name=projects/*/locations/*/reports/*}\x12\xbd\x01\n\nReadReport\x12\x32.google.cloud.appoptimize.v1beta.ReadReportRequest\x1a\x33.google.cloud.appoptimize.v1beta.ReadReportResponse\"F\xda\x41\x04name\x82\xd3\xe4\x93\x02\x39\"4/v1beta/{name=projects/*/locations/*/reports/*}:read:\x01*\x1aN\xca\x41\x1a\x61ppoptimize.googleapis.com\xd2\x41.https://www.googleapis.com/auth/cloud-platformB\x8c\x02\n#com.google.cloud.appoptimize.v1betaB\x10\x41ppOptimizeProtoP\x01ZEcloud.google.com/go/appoptimize/apiv1beta/appoptimizepb;appoptimizepb\xaa\x02\x1fGoogle.Cloud.AppOptimize.V1Beta\xea\x41g\n!apphub.googleapis.com/Application\x12\x42projects/{project}/locations/{location}/applications/{application}b\x06proto3"
18
+
19
+ pool = ::Google::Protobuf::DescriptorPool.generated_pool
20
+ pool.add_serialized_file(descriptor_data)
21
+
22
+ module Google
23
+ module Cloud
24
+ module Appoptimize
25
+ module V1beta
26
+ CreateReportRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.appoptimize.v1beta.CreateReportRequest").msgclass
27
+ Report = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.appoptimize.v1beta.Report").msgclass
28
+ Scope = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.appoptimize.v1beta.Scope").msgclass
29
+ GetReportRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.appoptimize.v1beta.GetReportRequest").msgclass
30
+ ListReportsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.appoptimize.v1beta.ListReportsRequest").msgclass
31
+ ListReportsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.appoptimize.v1beta.ListReportsResponse").msgclass
32
+ DeleteReportRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.appoptimize.v1beta.DeleteReportRequest").msgclass
33
+ ReadReportRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.appoptimize.v1beta.ReadReportRequest").msgclass
34
+ ReadReportResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.appoptimize.v1beta.ReadReportResponse").msgclass
35
+ Column = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.appoptimize.v1beta.Column").msgclass
36
+ OperationMetadata = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.appoptimize.v1beta.OperationMetadata").msgclass
37
+ end
38
+ end
39
+ end
40
+ end
@@ -0,0 +1,57 @@
1
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
2
+ # Source: google/cloud/appoptimize/v1beta/app_optimize.proto for package 'google.cloud.appoptimize.v1beta'
3
+ # Original file comments:
4
+ # Copyright 2026 Google LLC
5
+ #
6
+ # Licensed under the Apache License, Version 2.0 (the "License");
7
+ # you may not use this file except in compliance with the License.
8
+ # You may obtain a copy of the License at
9
+ #
10
+ # http://www.apache.org/licenses/LICENSE-2.0
11
+ #
12
+ # Unless required by applicable law or agreed to in writing, software
13
+ # distributed under the License is distributed on an "AS IS" BASIS,
14
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15
+ # See the License for the specific language governing permissions and
16
+ # limitations under the License.
17
+ #
18
+
19
+ require 'grpc'
20
+ require 'google/cloud/appoptimize/v1beta/app_optimize_pb'
21
+
22
+ module Google
23
+ module Cloud
24
+ module Appoptimize
25
+ module V1beta
26
+ module AppOptimize
27
+ # Service for managing and querying optimization reports.
28
+ class Service
29
+
30
+ include ::GRPC::GenericService
31
+
32
+ self.marshal_class_method = :encode
33
+ self.unmarshal_class_method = :decode
34
+ self.service_name = 'google.cloud.appoptimize.v1beta.AppOptimize'
35
+
36
+ # Creates a new report.
37
+ #
38
+ # This initiates a long-running operation that, upon completion, results
39
+ # in a report resource. Once the report is created, its results can be read
40
+ # via `ReadReport`.
41
+ rpc :CreateReport, ::Google::Cloud::Appoptimize::V1beta::CreateReportRequest, ::Google::Longrunning::Operation
42
+ # Retrieves the details of a report configuration.
43
+ rpc :GetReport, ::Google::Cloud::Appoptimize::V1beta::GetReportRequest, ::Google::Cloud::Appoptimize::V1beta::Report
44
+ # Lists reports within a given project.
45
+ rpc :ListReports, ::Google::Cloud::Appoptimize::V1beta::ListReportsRequest, ::Google::Cloud::Appoptimize::V1beta::ListReportsResponse
46
+ # Deletes the specified report.
47
+ rpc :DeleteReport, ::Google::Cloud::Appoptimize::V1beta::DeleteReportRequest, ::Google::Protobuf::Empty
48
+ # Reads data within a specified report.
49
+ rpc :ReadReport, ::Google::Cloud::Appoptimize::V1beta::ReadReportRequest, ::Google::Cloud::Appoptimize::V1beta::ReadReportResponse
50
+ end
51
+
52
+ Stub = Service.rpc_stub_class
53
+ end
54
+ end
55
+ end
56
+ end
57
+ end