google-cloud-storage_insights-v1 0.2.1 → 0.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/google/cloud/storage_insights/v1/storage_insights/client.rb +10 -1
- data/lib/google/cloud/storage_insights/v1/storage_insights/rest/client.rb +120 -0
- data/lib/google/cloud/storage_insights/v1/version.rb +1 -1
- data/proto_docs/google/api/field_behavior.rb +14 -0
- data/proto_docs/google/cloud/storageinsights/v1/storageinsights.rb +3 -0
- metadata +5 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2684f462594764875a0130455651949092e8ea746ed3763c2fefbc428d85893c
|
4
|
+
data.tar.gz: fe8916cccac578938130ef089910de82c248294e47c62b791553728e2976cc84
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 024fd7838208c6a26dfa5517bc54673893d50927717428609c2453f174ebd2ed099ad3549f19b089c5f6bac7ae87b34830457f4d5d1499ae33b7089f48ddd9e8
|
7
|
+
data.tar.gz: 4a23d2c1732757993b6cbc9cfb548863060a1345df6ed1345d9d9f912ef76b5a40f677101c6c7f27094c798224f4177f3f1ac7488794f96255fb94c81a2aa453
|
@@ -167,7 +167,8 @@ module Google
|
|
167
167
|
credentials: credentials,
|
168
168
|
endpoint: @config.endpoint,
|
169
169
|
channel_args: @config.channel_args,
|
170
|
-
interceptors: @config.interceptors
|
170
|
+
interceptors: @config.interceptors,
|
171
|
+
channel_pool_config: @config.channel_pool
|
171
172
|
)
|
172
173
|
end
|
173
174
|
|
@@ -974,6 +975,14 @@ module Google
|
|
974
975
|
end
|
975
976
|
end
|
976
977
|
|
978
|
+
##
|
979
|
+
# Configuration for the channel pool
|
980
|
+
# @return [::Gapic::ServiceStub::ChannelPool::Configuration]
|
981
|
+
#
|
982
|
+
def channel_pool
|
983
|
+
@channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new
|
984
|
+
end
|
985
|
+
|
977
986
|
##
|
978
987
|
# Configuration RPC class for the StorageInsights API.
|
979
988
|
#
|
@@ -208,6 +208,26 @@ module Google
|
|
208
208
|
# @return [::Google::Cloud::StorageInsights::V1::ListReportConfigsResponse]
|
209
209
|
#
|
210
210
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
211
|
+
#
|
212
|
+
# @example Basic example
|
213
|
+
# require "google/cloud/storage_insights/v1"
|
214
|
+
#
|
215
|
+
# # Create a client object. The client can be reused for multiple calls.
|
216
|
+
# client = Google::Cloud::StorageInsights::V1::StorageInsights::Rest::Client.new
|
217
|
+
#
|
218
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
219
|
+
# request = Google::Cloud::StorageInsights::V1::ListReportConfigsRequest.new
|
220
|
+
#
|
221
|
+
# # Call the list_report_configs method.
|
222
|
+
# result = client.list_report_configs request
|
223
|
+
#
|
224
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
225
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
226
|
+
# result.each do |item|
|
227
|
+
# # Each element is of type ::Google::Cloud::StorageInsights::V1::ReportConfig.
|
228
|
+
# p item
|
229
|
+
# end
|
230
|
+
#
|
211
231
|
def list_report_configs request, options = nil
|
212
232
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
213
233
|
|
@@ -270,6 +290,22 @@ module Google
|
|
270
290
|
# @return [::Google::Cloud::StorageInsights::V1::ReportConfig]
|
271
291
|
#
|
272
292
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
293
|
+
#
|
294
|
+
# @example Basic example
|
295
|
+
# require "google/cloud/storage_insights/v1"
|
296
|
+
#
|
297
|
+
# # Create a client object. The client can be reused for multiple calls.
|
298
|
+
# client = Google::Cloud::StorageInsights::V1::StorageInsights::Rest::Client.new
|
299
|
+
#
|
300
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
301
|
+
# request = Google::Cloud::StorageInsights::V1::GetReportConfigRequest.new
|
302
|
+
#
|
303
|
+
# # Call the get_report_config method.
|
304
|
+
# result = client.get_report_config request
|
305
|
+
#
|
306
|
+
# # The returned object is of type Google::Cloud::StorageInsights::V1::ReportConfig.
|
307
|
+
# p result
|
308
|
+
#
|
273
309
|
def get_report_config request, options = nil
|
274
310
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
275
311
|
|
@@ -348,6 +384,22 @@ module Google
|
|
348
384
|
# @return [::Google::Cloud::StorageInsights::V1::ReportConfig]
|
349
385
|
#
|
350
386
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
387
|
+
#
|
388
|
+
# @example Basic example
|
389
|
+
# require "google/cloud/storage_insights/v1"
|
390
|
+
#
|
391
|
+
# # Create a client object. The client can be reused for multiple calls.
|
392
|
+
# client = Google::Cloud::StorageInsights::V1::StorageInsights::Rest::Client.new
|
393
|
+
#
|
394
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
395
|
+
# request = Google::Cloud::StorageInsights::V1::CreateReportConfigRequest.new
|
396
|
+
#
|
397
|
+
# # Call the create_report_config method.
|
398
|
+
# result = client.create_report_config request
|
399
|
+
#
|
400
|
+
# # The returned object is of type Google::Cloud::StorageInsights::V1::ReportConfig.
|
401
|
+
# p result
|
402
|
+
#
|
351
403
|
def create_report_config request, options = nil
|
352
404
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
353
405
|
|
@@ -430,6 +482,22 @@ module Google
|
|
430
482
|
# @return [::Google::Cloud::StorageInsights::V1::ReportConfig]
|
431
483
|
#
|
432
484
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
485
|
+
#
|
486
|
+
# @example Basic example
|
487
|
+
# require "google/cloud/storage_insights/v1"
|
488
|
+
#
|
489
|
+
# # Create a client object. The client can be reused for multiple calls.
|
490
|
+
# client = Google::Cloud::StorageInsights::V1::StorageInsights::Rest::Client.new
|
491
|
+
#
|
492
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
493
|
+
# request = Google::Cloud::StorageInsights::V1::UpdateReportConfigRequest.new
|
494
|
+
#
|
495
|
+
# # Call the update_report_config method.
|
496
|
+
# result = client.update_report_config request
|
497
|
+
#
|
498
|
+
# # The returned object is of type Google::Cloud::StorageInsights::V1::ReportConfig.
|
499
|
+
# p result
|
500
|
+
#
|
433
501
|
def update_report_config request, options = nil
|
434
502
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
435
503
|
|
@@ -508,6 +576,22 @@ module Google
|
|
508
576
|
# @return [::Google::Protobuf::Empty]
|
509
577
|
#
|
510
578
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
579
|
+
#
|
580
|
+
# @example Basic example
|
581
|
+
# require "google/cloud/storage_insights/v1"
|
582
|
+
#
|
583
|
+
# # Create a client object. The client can be reused for multiple calls.
|
584
|
+
# client = Google::Cloud::StorageInsights::V1::StorageInsights::Rest::Client.new
|
585
|
+
#
|
586
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
587
|
+
# request = Google::Cloud::StorageInsights::V1::DeleteReportConfigRequest.new
|
588
|
+
#
|
589
|
+
# # Call the delete_report_config method.
|
590
|
+
# result = client.delete_report_config request
|
591
|
+
#
|
592
|
+
# # The returned object is of type Google::Protobuf::Empty.
|
593
|
+
# p result
|
594
|
+
#
|
511
595
|
def delete_report_config request, options = nil
|
512
596
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
513
597
|
|
@@ -579,6 +663,26 @@ module Google
|
|
579
663
|
# @return [::Google::Cloud::StorageInsights::V1::ListReportDetailsResponse]
|
580
664
|
#
|
581
665
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
666
|
+
#
|
667
|
+
# @example Basic example
|
668
|
+
# require "google/cloud/storage_insights/v1"
|
669
|
+
#
|
670
|
+
# # Create a client object. The client can be reused for multiple calls.
|
671
|
+
# client = Google::Cloud::StorageInsights::V1::StorageInsights::Rest::Client.new
|
672
|
+
#
|
673
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
674
|
+
# request = Google::Cloud::StorageInsights::V1::ListReportDetailsRequest.new
|
675
|
+
#
|
676
|
+
# # Call the list_report_details method.
|
677
|
+
# result = client.list_report_details request
|
678
|
+
#
|
679
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
680
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
681
|
+
# result.each do |item|
|
682
|
+
# # Each element is of type ::Google::Cloud::StorageInsights::V1::ReportDetail.
|
683
|
+
# p item
|
684
|
+
# end
|
685
|
+
#
|
582
686
|
def list_report_details request, options = nil
|
583
687
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
584
688
|
|
@@ -641,6 +745,22 @@ module Google
|
|
641
745
|
# @return [::Google::Cloud::StorageInsights::V1::ReportDetail]
|
642
746
|
#
|
643
747
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
748
|
+
#
|
749
|
+
# @example Basic example
|
750
|
+
# require "google/cloud/storage_insights/v1"
|
751
|
+
#
|
752
|
+
# # Create a client object. The client can be reused for multiple calls.
|
753
|
+
# client = Google::Cloud::StorageInsights::V1::StorageInsights::Rest::Client.new
|
754
|
+
#
|
755
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
756
|
+
# request = Google::Cloud::StorageInsights::V1::GetReportDetailRequest.new
|
757
|
+
#
|
758
|
+
# # Call the get_report_detail method.
|
759
|
+
# result = client.get_report_detail request
|
760
|
+
#
|
761
|
+
# # The returned object is of type Google::Cloud::StorageInsights::V1::ReportDetail.
|
762
|
+
# p result
|
763
|
+
#
|
644
764
|
def get_report_detail request, options = nil
|
645
765
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
646
766
|
|
@@ -66,6 +66,20 @@ module Google
|
|
66
66
|
# a non-empty value will be returned. The user will not be aware of what
|
67
67
|
# non-empty value to expect.
|
68
68
|
NON_EMPTY_DEFAULT = 7
|
69
|
+
|
70
|
+
# Denotes that the field in a resource (a message annotated with
|
71
|
+
# google.api.resource) is used in the resource name to uniquely identify the
|
72
|
+
# resource. For AIP-compliant APIs, this should only be applied to the
|
73
|
+
# `name` field on the resource.
|
74
|
+
#
|
75
|
+
# This behavior should not be applied to references to other resources within
|
76
|
+
# the message.
|
77
|
+
#
|
78
|
+
# The identifier field of resources often have different field behavior
|
79
|
+
# depending on the request it is embedded in (e.g. for Create methods name
|
80
|
+
# is optional and unused, while for Update methods it is required). Instead
|
81
|
+
# of method-specific annotations, only `IDENTIFIER` is required.
|
82
|
+
IDENTIFIER = 8
|
69
83
|
end
|
70
84
|
end
|
71
85
|
end
|
@@ -382,6 +382,9 @@ module Google
|
|
382
382
|
|
383
383
|
# Message describing ReportConfig object. ReportConfig is the configuration to
|
384
384
|
# generate reports.
|
385
|
+
# See
|
386
|
+
# https://cloud.google.com/storage/docs/insights/using-inventory-reports#create-config-rest
|
387
|
+
# for more details on how to set various fields.
|
385
388
|
# Next ID: 12
|
386
389
|
# @!attribute [rw] name
|
387
390
|
# @return [::String]
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-cloud-storage_insights-v1
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.3.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Google LLC
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-
|
11
|
+
date: 2023-09-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: gapic-common
|
@@ -16,7 +16,7 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 0.
|
19
|
+
version: 0.20.0
|
20
20
|
- - "<"
|
21
21
|
- !ruby/object:Gem::Version
|
22
22
|
version: 2.a
|
@@ -26,7 +26,7 @@ dependencies:
|
|
26
26
|
requirements:
|
27
27
|
- - ">="
|
28
28
|
- !ruby/object:Gem::Version
|
29
|
-
version: 0.
|
29
|
+
version: 0.20.0
|
30
30
|
- - "<"
|
31
31
|
- !ruby/object:Gem::Version
|
32
32
|
version: 2.a
|
@@ -236,7 +236,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
236
236
|
- !ruby/object:Gem::Version
|
237
237
|
version: '0'
|
238
238
|
requirements: []
|
239
|
-
rubygems_version: 3.4.
|
239
|
+
rubygems_version: 3.4.19
|
240
240
|
signing_key:
|
241
241
|
specification_version: 4
|
242
242
|
summary: Provides insights capability on Google Cloud Storage.
|