google-cloud-storage_insights-v1 0.4.0 → 0.4.2
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 +7 -7
- data/lib/google/cloud/storage_insights/v1/storage_insights/rest/client.rb +8 -8
- data/lib/google/cloud/storage_insights/v1/storage_insights/rest/service_stub.rb +9 -0
- data/lib/google/cloud/storage_insights/v1/version.rb +1 -1
- data/lib/google/cloud/storageinsights/v1/storageinsights_pb.rb +2 -2
- data/proto_docs/google/protobuf/any.rb +2 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b25a89e5c2de025f066093e6021e9dc2d05f9a470fbc91b96792097b3114a5fb
|
4
|
+
data.tar.gz: afa1e072cd2a4a2060a6e08072153457267fe48aaf0d992f447fc321d27f8ba4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 76916cab879636076c52c3a2c42490711e4e05f5626c5efdb9217306f2122b7b802432b9cb603c85cd8cef2a813d071baedaa3b35c63b9d7485d00fa38bafe23
|
7
|
+
data.tar.gz: 06541623d5d9f774095cbc709220fecad3e4a31fa054d4852151e3ec3f06bfc0ebd887efee64ba78ff7dd9fa8e1a8fc2a9077241599e4b06f13d230438daedb1
|
@@ -169,13 +169,6 @@ module Google
|
|
169
169
|
@quota_project_id = @config.quota_project
|
170
170
|
@quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id
|
171
171
|
|
172
|
-
@location_client = Google::Cloud::Location::Locations::Client.new do |config|
|
173
|
-
config.credentials = credentials
|
174
|
-
config.quota_project = @quota_project_id
|
175
|
-
config.endpoint = @config.endpoint
|
176
|
-
config.universe_domain = @config.universe_domain
|
177
|
-
end
|
178
|
-
|
179
172
|
@storage_insights_stub = ::Gapic::ServiceStub.new(
|
180
173
|
::Google::Cloud::StorageInsights::V1::StorageInsights::Stub,
|
181
174
|
credentials: credentials,
|
@@ -186,6 +179,13 @@ module Google
|
|
186
179
|
interceptors: @config.interceptors,
|
187
180
|
channel_pool_config: @config.channel_pool
|
188
181
|
)
|
182
|
+
|
183
|
+
@location_client = Google::Cloud::Location::Locations::Client.new do |config|
|
184
|
+
config.credentials = credentials
|
185
|
+
config.quota_project = @quota_project_id
|
186
|
+
config.endpoint = @storage_insights_stub.endpoint
|
187
|
+
config.universe_domain = @storage_insights_stub.universe_domain
|
188
|
+
end
|
189
189
|
end
|
190
190
|
|
191
191
|
##
|
@@ -166,20 +166,20 @@ module Google
|
|
166
166
|
@quota_project_id = @config.quota_project
|
167
167
|
@quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id
|
168
168
|
|
169
|
-
@location_client = Google::Cloud::Location::Locations::Rest::Client.new do |config|
|
170
|
-
config.credentials = credentials
|
171
|
-
config.quota_project = @quota_project_id
|
172
|
-
config.endpoint = @config.endpoint
|
173
|
-
config.universe_domain = @config.universe_domain
|
174
|
-
config.bindings_override = @config.bindings_override
|
175
|
-
end
|
176
|
-
|
177
169
|
@storage_insights_stub = ::Google::Cloud::StorageInsights::V1::StorageInsights::Rest::ServiceStub.new(
|
178
170
|
endpoint: @config.endpoint,
|
179
171
|
endpoint_template: DEFAULT_ENDPOINT_TEMPLATE,
|
180
172
|
universe_domain: @config.universe_domain,
|
181
173
|
credentials: credentials
|
182
174
|
)
|
175
|
+
|
176
|
+
@location_client = Google::Cloud::Location::Locations::Rest::Client.new do |config|
|
177
|
+
config.credentials = credentials
|
178
|
+
config.quota_project = @quota_project_id
|
179
|
+
config.endpoint = @storage_insights_stub.endpoint
|
180
|
+
config.universe_domain = @storage_insights_stub.universe_domain
|
181
|
+
config.bindings_override = @config.bindings_override
|
182
|
+
end
|
183
183
|
end
|
184
184
|
|
185
185
|
##
|
@@ -52,6 +52,15 @@ module Google
|
|
52
52
|
@client_stub.universe_domain
|
53
53
|
end
|
54
54
|
|
55
|
+
##
|
56
|
+
# The effective endpoint
|
57
|
+
#
|
58
|
+
# @return [String]
|
59
|
+
#
|
60
|
+
def endpoint
|
61
|
+
@client_stub.endpoint
|
62
|
+
end
|
63
|
+
|
55
64
|
##
|
56
65
|
# Baseline implementation for the list_report_configs REST call
|
57
66
|
#
|
@@ -16,13 +16,13 @@ require 'google/type/date_pb'
|
|
16
16
|
require 'google/type/datetime_pb'
|
17
17
|
|
18
18
|
|
19
|
-
descriptor_data = "\n5google/cloud/storageinsights/v1/storageinsights.proto\x12\x1fgoogle.cloud.storageinsights.v1\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a google/protobuf/field_mask.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x17google/rpc/status.proto\x1a\x16google/type/date.proto\x1a\x1agoogle/type/datetime.proto\"\
|
19
|
+
descriptor_data = "\n5google/cloud/storageinsights/v1/storageinsights.proto\x12\x1fgoogle.cloud.storageinsights.v1\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a google/protobuf/field_mask.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x17google/rpc/status.proto\x1a\x16google/type/date.proto\x1a\x1agoogle/type/datetime.proto\"\xa9\x01\n\x18ListReportConfigsRequest\x12\x44\n\x06parent\x18\x01 \x01(\tB4\xe2\x41\x01\x02\xfa\x41-\x12+storageinsights.googleapis.com/ReportConfig\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x12\n\npage_token\x18\x03 \x01(\t\x12\x0e\n\x06\x66ilter\x18\x04 \x01(\t\x12\x10\n\x08order_by\x18\x05 \x01(\t\"\x90\x01\n\x19ListReportConfigsResponse\x12\x45\n\x0ereport_configs\x18\x01 \x03(\x0b\x32-.google.cloud.storageinsights.v1.ReportConfig\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\x12\x13\n\x0bunreachable\x18\x03 \x03(\t\"\\\n\x16GetReportConfigRequest\x12\x42\n\x04name\x18\x01 \x01(\tB4\xe2\x41\x01\x02\xfa\x41-\n+storageinsights.googleapis.com/ReportConfig\"\xc7\x01\n\x19\x43reateReportConfigRequest\x12\x44\n\x06parent\x18\x01 \x01(\tB4\xe2\x41\x01\x02\xfa\x41-\x12+storageinsights.googleapis.com/ReportConfig\x12J\n\rreport_config\x18\x03 \x01(\x0b\x32-.google.cloud.storageinsights.v1.ReportConfigB\x04\xe2\x41\x01\x02\x12\x18\n\nrequest_id\x18\x04 \x01(\tB\x04\xe2\x41\x01\x01\"\xb8\x01\n\x19UpdateReportConfigRequest\x12\x35\n\x0bupdate_mask\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x04\xe2\x41\x01\x02\x12J\n\rreport_config\x18\x02 \x01(\x0b\x32-.google.cloud.storageinsights.v1.ReportConfigB\x04\xe2\x41\x01\x02\x12\x18\n\nrequest_id\x18\x03 \x01(\tB\x04\xe2\x41\x01\x01\"\x8e\x01\n\x19\x44\x65leteReportConfigRequest\x12\x42\n\x04name\x18\x01 \x01(\tB4\xe2\x41\x01\x02\xfa\x41-\n+storageinsights.googleapis.com/ReportConfig\x12\x13\n\x05\x66orce\x18\x02 \x01(\x08\x42\x04\xe2\x41\x01\x01\x12\x18\n\nrequest_id\x18\x03 \x01(\tB\x04\xe2\x41\x01\x01\"\xe3\x04\n\x0cReportDetail\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x31\n\rsnapshot_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x1a\n\x12report_path_prefix\x18\x08 \x01(\t\x12\x14\n\x0cshards_count\x18\t \x01(\x03\x12\"\n\x06status\x18\x04 \x01(\x0b\x32\x12.google.rpc.Status\x12I\n\x06labels\x18\x05 \x03(\x0b\x32\x39.google.cloud.storageinsights.v1.ReportDetail.LabelsEntry\x12.\n\x0ftarget_datetime\x18\x06 \x01(\x0b\x32\x15.google.type.DateTime\x12M\n\x0ereport_metrics\x18\x07 \x01(\x0b\x32\x35.google.cloud.storageinsights.v1.ReportDetail.Metrics\x1a*\n\x07Metrics\x12\x1f\n\x17processed_records_count\x18\x01 \x01(\x03\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01:\x96\x01\xea\x41\x92\x01\n+storageinsights.googleapis.com/ReportDetail\x12\x63projects/{project}/locations/{location}/reportConfigs/{report_config}/reportDetails/{report_detail}\"\xa9\x01\n\x18ListReportDetailsRequest\x12\x44\n\x06parent\x18\x01 \x01(\tB4\xe2\x41\x01\x02\xfa\x41-\x12+storageinsights.googleapis.com/ReportDetail\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x12\n\npage_token\x18\x03 \x01(\t\x12\x0e\n\x06\x66ilter\x18\x04 \x01(\t\x12\x10\n\x08order_by\x18\x05 \x01(\t\"\x90\x01\n\x19ListReportDetailsResponse\x12\x45\n\x0ereport_details\x18\x01 \x03(\x0b\x32-.google.cloud.storageinsights.v1.ReportDetail\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\x12\x13\n\x0bunreachable\x18\x03 \x03(\t\"\\\n\x16GetReportDetailRequest\x12\x42\n\x04name\x18\x01 \x01(\tB4\xe2\x41\x01\x02\xfa\x41-\n+storageinsights.googleapis.com/ReportDetail\"\x87\x02\n\x11OperationMetadata\x12\x35\n\x0b\x63reate_time\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x04\xe2\x41\x01\x03\x12\x32\n\x08\x65nd_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x04\xe2\x41\x01\x03\x12\x14\n\x06target\x18\x03 \x01(\tB\x04\xe2\x41\x01\x03\x12\x12\n\x04verb\x18\x04 \x01(\tB\x04\xe2\x41\x01\x03\x12\x1c\n\x0estatus_message\x18\x05 \x01(\tB\x04\xe2\x41\x01\x03\x12$\n\x16requested_cancellation\x18\x06 \x01(\x08\x42\x04\xe2\x41\x01\x03\x12\x19\n\x0b\x61pi_version\x18\x07 \x01(\tB\x04\xe2\x41\x01\x03\"\xed\x01\n\x10\x46requencyOptions\x12N\n\tfrequency\x18\x01 \x01(\x0e\x32;.google.cloud.storageinsights.v1.FrequencyOptions.Frequency\x12%\n\nstart_date\x18\x02 \x01(\x0b\x32\x11.google.type.Date\x12#\n\x08\x65nd_date\x18\x03 \x01(\x0b\x32\x11.google.type.Date\"=\n\tFrequency\x12\x19\n\x15\x46REQUENCY_UNSPECIFIED\x10\x00\x12\t\n\x05\x44\x41ILY\x10\x01\x12\n\n\x06WEEKLY\x10\x02\"R\n\nCSVOptions\x12\x18\n\x10record_separator\x18\x01 \x01(\t\x12\x11\n\tdelimiter\x18\x02 \x01(\t\x12\x17\n\x0fheader_required\x18\x03 \x01(\x08\"\x10\n\x0eParquetOptions\"%\n\x13\x43loudStorageFilters\x12\x0e\n\x06\x62ucket\x18\x01 \x01(\t\"J\n\x1e\x43loudStorageDestinationOptions\x12\x0e\n\x06\x62ucket\x18\x01 \x01(\t\x12\x18\n\x10\x64\x65stination_path\x18\x02 \x01(\t\"\x90\x02\n\x1bObjectMetadataReportOptions\x12\x17\n\x0fmetadata_fields\x18\x01 \x03(\t\x12O\n\x0fstorage_filters\x18\x02 \x01(\x0b\x32\x34.google.cloud.storageinsights.v1.CloudStorageFiltersH\x00\x12\x66\n\x1bstorage_destination_options\x18\x03 \x01(\x0b\x32?.google.cloud.storageinsights.v1.CloudStorageDestinationOptionsH\x01\x42\x08\n\x06\x66ilterB\x15\n\x13\x64\x65stination_options\"\xf9\x05\n\x0cReportConfig\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x35\n\x0b\x63reate_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x04\xe2\x41\x01\x03\x12\x35\n\x0bupdate_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x04\xe2\x41\x01\x03\x12L\n\x11\x66requency_options\x18\x05 \x01(\x0b\x32\x31.google.cloud.storageinsights.v1.FrequencyOptions\x12\x42\n\x0b\x63sv_options\x18\x06 \x01(\x0b\x32+.google.cloud.storageinsights.v1.CSVOptionsH\x00\x12J\n\x0fparquet_options\x18\x07 \x01(\x0b\x32/.google.cloud.storageinsights.v1.ParquetOptionsH\x00\x12\x66\n\x1eobject_metadata_report_options\x18\x08 \x01(\x0b\x32<.google.cloud.storageinsights.v1.ObjectMetadataReportOptionsH\x01\x12I\n\x06labels\x18\n \x03(\x0b\x32\x39.google.cloud.storageinsights.v1.ReportConfig.LabelsEntry\x12\x14\n\x0c\x64isplay_name\x18\x0b \x01(\t\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01:w\xea\x41t\n+storageinsights.googleapis.com/ReportConfig\x12\x45projects/{project}/locations/{location}/reportConfigs/{report_config}B\x0f\n\rreport_formatB\r\n\x0breport_kind2\xa9\x0c\n\x0fStorageInsights\x12\xce\x01\n\x11ListReportConfigs\x12\x39.google.cloud.storageinsights.v1.ListReportConfigsRequest\x1a:.google.cloud.storageinsights.v1.ListReportConfigsResponse\"B\xda\x41\x06parent\x82\xd3\xe4\x93\x02\x33\x12\x31/v1/{parent=projects/*/locations/*}/reportConfigs\x12\xbb\x01\n\x0fGetReportConfig\x12\x37.google.cloud.storageinsights.v1.GetReportConfigRequest\x1a-.google.cloud.storageinsights.v1.ReportConfig\"@\xda\x41\x04name\x82\xd3\xe4\x93\x02\x33\x12\x31/v1/{name=projects/*/locations/*/reportConfigs/*}\x12\xe0\x01\n\x12\x43reateReportConfig\x12:.google.cloud.storageinsights.v1.CreateReportConfigRequest\x1a-.google.cloud.storageinsights.v1.ReportConfig\"_\xda\x41\x14parent,report_config\x82\xd3\xe4\x93\x02\x42\"1/v1/{parent=projects/*/locations/*}/reportConfigs:\rreport_config\x12\xf3\x01\n\x12UpdateReportConfig\x12:.google.cloud.storageinsights.v1.UpdateReportConfigRequest\x1a-.google.cloud.storageinsights.v1.ReportConfig\"r\xda\x41\x19report_config,update_mask\x82\xd3\xe4\x93\x02P2?/v1/{report_config.name=projects/*/locations/*/reportConfigs/*}:\rreport_config\x12\xaa\x01\n\x12\x44\x65leteReportConfig\x12:.google.cloud.storageinsights.v1.DeleteReportConfigRequest\x1a\x16.google.protobuf.Empty\"@\xda\x41\x04name\x82\xd3\xe4\x93\x02\x33*1/v1/{name=projects/*/locations/*/reportConfigs/*}\x12\xde\x01\n\x11ListReportDetails\x12\x39.google.cloud.storageinsights.v1.ListReportDetailsRequest\x1a:.google.cloud.storageinsights.v1.ListReportDetailsResponse\"R\xda\x41\x06parent\x82\xd3\xe4\x93\x02\x43\x12\x41/v1/{parent=projects/*/locations/*/reportConfigs/*}/reportDetails\x12\xcb\x01\n\x0fGetReportDetail\x12\x37.google.cloud.storageinsights.v1.GetReportDetailRequest\x1a-.google.cloud.storageinsights.v1.ReportDetail\"P\xda\x41\x04name\x82\xd3\xe4\x93\x02\x43\x12\x41/v1/{name=projects/*/locations/*/reportConfigs/*/reportDetails/*}\x1aR\xca\x41\x1estorageinsights.googleapis.com\xd2\x41.https://www.googleapis.com/auth/cloud-platformB\xe8\x01\n#com.google.cloud.storageinsights.v1B\x07V1ProtoP\x01ZMcloud.google.com/go/storageinsights/apiv1/storageinsightspb;storageinsightspb\xaa\x02\x1fGoogle.Cloud.StorageInsights.V1\xca\x02\x1fGoogle\\Cloud\\StorageInsights\\V1\xea\x02\"Google::Cloud::StorageInsights::V1b\x06proto3"
|
20
20
|
|
21
21
|
pool = Google::Protobuf::DescriptorPool.generated_pool
|
22
22
|
|
23
23
|
begin
|
24
24
|
pool.add_serialized_file(descriptor_data)
|
25
|
-
rescue TypeError
|
25
|
+
rescue TypeError
|
26
26
|
# Compatibility code: will be removed in the next major version.
|
27
27
|
require 'google/protobuf/descriptor_pb'
|
28
28
|
parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
|
@@ -129,7 +129,8 @@ module Google
|
|
129
129
|
#
|
130
130
|
# Note: this functionality is not currently available in the official
|
131
131
|
# protobuf release, and it is not used for type URLs beginning with
|
132
|
-
# type.googleapis.com.
|
132
|
+
# type.googleapis.com. As of May 2023, there are no widely used type server
|
133
|
+
# implementations and no plans to implement one.
|
133
134
|
#
|
134
135
|
# Schemes other than `http`, `https` (or the empty scheme) might be
|
135
136
|
# used with implementation specific semantics.
|
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.
|
4
|
+
version: 0.4.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Google LLC
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-01
|
11
|
+
date: 2024-02-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: gapic-common
|