google-cloud-security_center-v1 0.28.0 → 0.29.1
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/security_center/v1/security_center/client.rb +4 -2
- data/lib/google/cloud/security_center/v1/security_center/operations.rb +3 -1
- data/lib/google/cloud/security_center/v1/security_center/rest/client.rb +4 -2
- data/lib/google/cloud/security_center/v1/security_center/rest/operations.rb +7 -5
- data/lib/google/cloud/security_center/v1/security_center/rest/service_stub.rb +44 -44
- data/lib/google/cloud/security_center/v1/version.rb +1 -1
- data/lib/google/cloud/securitycenter/v1/access_pb.rb +24 -20
- data/lib/google/cloud/securitycenter/v1/asset_pb.rb +28 -25
- data/lib/google/cloud/securitycenter/v1/bigquery_export_pb.rb +25 -11
- data/lib/google/cloud/securitycenter/v1/cloud_dlp_data_profile_pb.rb +24 -4
- data/lib/google/cloud/securitycenter/v1/cloud_dlp_inspection_pb.rb +24 -7
- data/lib/google/cloud/securitycenter/v1/compliance_pb.rb +24 -6
- data/lib/google/cloud/securitycenter/v1/connection_pb.rb +24 -16
- data/lib/google/cloud/securitycenter/v1/contact_details_pb.rb +24 -7
- data/lib/google/cloud/securitycenter/v1/container_pb.rb +25 -7
- data/lib/google/cloud/securitycenter/v1/database_pb.rb +24 -8
- data/lib/google/cloud/securitycenter/v1/effective_security_health_analytics_custom_module_pb.rb +25 -12
- data/lib/google/cloud/securitycenter/v1/exfiltration_pb.rb +24 -9
- data/lib/google/cloud/securitycenter/v1/external_system_pb.rb +25 -8
- data/lib/google/cloud/securitycenter/v1/file_pb.rb +24 -9
- data/lib/google/cloud/securitycenter/v1/finding_pb.rb +45 -67
- data/lib/google/cloud/securitycenter/v1/folder_pb.rb +24 -5
- data/lib/google/cloud/securitycenter/v1/iam_binding_pb.rb +24 -11
- data/lib/google/cloud/securitycenter/v1/indicator_pb.rb +24 -24
- data/lib/google/cloud/securitycenter/v1/kernel_rootkit_pb.rb +24 -12
- data/lib/google/cloud/securitycenter/v1/kubernetes_pb.rb +26 -58
- data/lib/google/cloud/securitycenter/v1/label_pb.rb +24 -5
- data/lib/google/cloud/securitycenter/v1/mitre_attack_pb.rb +24 -63
- data/lib/google/cloud/securitycenter/v1/mute_config_pb.rb +25 -10
- data/lib/google/cloud/securitycenter/v1/notification_config_pb.rb +24 -13
- data/lib/google/cloud/securitycenter/v1/notification_message_pb.rb +26 -8
- data/lib/google/cloud/securitycenter/v1/organization_settings_pb.rb +24 -16
- data/lib/google/cloud/securitycenter/v1/process_pb.rb +25 -17
- data/lib/google/cloud/securitycenter/v1/resource_pb.rb +25 -11
- data/lib/google/cloud/securitycenter/v1/run_asset_discovery_response_pb.rb +25 -11
- data/lib/google/cloud/securitycenter/v1/security_health_analytics_custom_config_pb.rb +25 -26
- data/lib/google/cloud/securitycenter/v1/security_health_analytics_custom_module_pb.rb +26 -16
- data/lib/google/cloud/securitycenter/v1/security_marks_pb.rb +24 -6
- data/lib/google/cloud/securitycenter/v1/securitycenter_service_pb.rb +40 -279
- data/lib/google/cloud/securitycenter/v1/source_pb.rb +24 -7
- data/lib/google/cloud/securitycenter/v1/vulnerability_pb.rb +24 -59
- data/proto_docs/google/api/client.rb +10 -1
- data/proto_docs/google/protobuf/any.rb +7 -4
- data/proto_docs/google/protobuf/struct.rb +1 -1
- data/proto_docs/google/protobuf/timestamp.rb +1 -3
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 34e2cfc3bf563534534e0fdf2939155f3c37b8d0c3f076127f7548e1d59e3f74
|
4
|
+
data.tar.gz: 980feb28952c929e94f2c8808f3c63fcd2045d8d15c8858485d84f1e32e77c89
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1d14c12dc3921f1bcf86586e413b80c21f3263f23008acc276007446dfce6159fd870d19b21055e7507f2a6367bff2016bf01b8c3221db8b3d99dfde30f54b31
|
7
|
+
data.tar.gz: 9bf3f84c9dd117645d2e819b6e77e77f3c9881d75c9d73704fcb75d5b1b6d01360be4d72538ef79cb7b4e80e0cb8cf85873e7b19af95140e5108de8d0275d650
|
@@ -233,7 +233,7 @@ module Google
|
|
233
233
|
credentials = @config.credentials
|
234
234
|
# Use self-signed JWT if the endpoint is unchanged from default,
|
235
235
|
# but only if the default endpoint does not have a region prefix.
|
236
|
-
enable_self_signed_jwt = @config.endpoint ==
|
236
|
+
enable_self_signed_jwt = @config.endpoint == Configuration::DEFAULT_ENDPOINT &&
|
237
237
|
!@config.endpoint.split(".").first.include?("-")
|
238
238
|
credentials ||= Credentials.default scope: @config.scope,
|
239
239
|
enable_self_signed_jwt: enable_self_signed_jwt
|
@@ -4972,7 +4972,9 @@ module Google
|
|
4972
4972
|
class Configuration
|
4973
4973
|
extend ::Gapic::Config
|
4974
4974
|
|
4975
|
-
|
4975
|
+
DEFAULT_ENDPOINT = "securitycenter.googleapis.com"
|
4976
|
+
|
4977
|
+
config_attr :endpoint, DEFAULT_ENDPOINT, ::String
|
4976
4978
|
config_attr :credentials, nil do |value|
|
4977
4979
|
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
4978
4980
|
allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
|
@@ -664,7 +664,9 @@ module Google
|
|
664
664
|
class Configuration
|
665
665
|
extend ::Gapic::Config
|
666
666
|
|
667
|
-
|
667
|
+
DEFAULT_ENDPOINT = "securitycenter.googleapis.com"
|
668
|
+
|
669
|
+
config_attr :endpoint, DEFAULT_ENDPOINT, ::String
|
668
670
|
config_attr :credentials, nil do |value|
|
669
671
|
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
670
672
|
allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
|
@@ -229,7 +229,7 @@ module Google
|
|
229
229
|
credentials = @config.credentials
|
230
230
|
# Use self-signed JWT if the endpoint is unchanged from default,
|
231
231
|
# but only if the default endpoint does not have a region prefix.
|
232
|
-
enable_self_signed_jwt = @config.endpoint ==
|
232
|
+
enable_self_signed_jwt = @config.endpoint == Configuration::DEFAULT_ENDPOINT &&
|
233
233
|
!@config.endpoint.split(".").first.include?("-")
|
234
234
|
credentials ||= Credentials.default scope: @config.scope,
|
235
235
|
enable_self_signed_jwt: enable_self_signed_jwt
|
@@ -3884,7 +3884,9 @@ module Google
|
|
3884
3884
|
class Configuration
|
3885
3885
|
extend ::Gapic::Config
|
3886
3886
|
|
3887
|
-
|
3887
|
+
DEFAULT_ENDPOINT = "securitycenter.googleapis.com"
|
3888
|
+
|
3889
|
+
config_attr :endpoint, DEFAULT_ENDPOINT, ::String
|
3888
3890
|
config_attr :credentials, nil do |value|
|
3889
3891
|
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
3890
3892
|
allowed.any? { |klass| klass === value }
|
@@ -446,7 +446,9 @@ module Google
|
|
446
446
|
class Configuration
|
447
447
|
extend ::Gapic::Config
|
448
448
|
|
449
|
-
|
449
|
+
DEFAULT_ENDPOINT = "securitycenter.googleapis.com"
|
450
|
+
|
451
|
+
config_attr :endpoint, DEFAULT_ENDPOINT, ::String
|
450
452
|
config_attr :credentials, nil do |value|
|
451
453
|
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
452
454
|
allowed.any? { |klass| klass === value }
|
@@ -567,7 +569,7 @@ module Google
|
|
567
569
|
|
568
570
|
verb, uri, query_string_params, body = OperationsServiceStub.transcode_list_operations_request request_pb
|
569
571
|
query_string_params = if query_string_params.any?
|
570
|
-
query_string_params.to_h { |p| p.split
|
572
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
571
573
|
else
|
572
574
|
{}
|
573
575
|
end
|
@@ -605,7 +607,7 @@ module Google
|
|
605
607
|
|
606
608
|
verb, uri, query_string_params, body = OperationsServiceStub.transcode_get_operation_request request_pb
|
607
609
|
query_string_params = if query_string_params.any?
|
608
|
-
query_string_params.to_h { |p| p.split
|
610
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
609
611
|
else
|
610
612
|
{}
|
611
613
|
end
|
@@ -643,7 +645,7 @@ module Google
|
|
643
645
|
|
644
646
|
verb, uri, query_string_params, body = OperationsServiceStub.transcode_delete_operation_request request_pb
|
645
647
|
query_string_params = if query_string_params.any?
|
646
|
-
query_string_params.to_h { |p| p.split
|
648
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
647
649
|
else
|
648
650
|
{}
|
649
651
|
end
|
@@ -681,7 +683,7 @@ module Google
|
|
681
683
|
|
682
684
|
verb, uri, query_string_params, body = OperationsServiceStub.transcode_cancel_operation_request request_pb
|
683
685
|
query_string_params = if query_string_params.any?
|
684
|
-
query_string_params.to_h { |p| p.split
|
686
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
685
687
|
else
|
686
688
|
{}
|
687
689
|
end
|
@@ -59,7 +59,7 @@ module Google
|
|
59
59
|
|
60
60
|
verb, uri, query_string_params, body = ServiceStub.transcode_bulk_mute_findings_request request_pb
|
61
61
|
query_string_params = if query_string_params.any?
|
62
|
-
query_string_params.to_h { |p| p.split
|
62
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
63
63
|
else
|
64
64
|
{}
|
65
65
|
end
|
@@ -97,7 +97,7 @@ module Google
|
|
97
97
|
|
98
98
|
verb, uri, query_string_params, body = ServiceStub.transcode_create_security_health_analytics_custom_module_request request_pb
|
99
99
|
query_string_params = if query_string_params.any?
|
100
|
-
query_string_params.to_h { |p| p.split
|
100
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
101
101
|
else
|
102
102
|
{}
|
103
103
|
end
|
@@ -135,7 +135,7 @@ module Google
|
|
135
135
|
|
136
136
|
verb, uri, query_string_params, body = ServiceStub.transcode_create_source_request request_pb
|
137
137
|
query_string_params = if query_string_params.any?
|
138
|
-
query_string_params.to_h { |p| p.split
|
138
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
139
139
|
else
|
140
140
|
{}
|
141
141
|
end
|
@@ -173,7 +173,7 @@ module Google
|
|
173
173
|
|
174
174
|
verb, uri, query_string_params, body = ServiceStub.transcode_create_finding_request request_pb
|
175
175
|
query_string_params = if query_string_params.any?
|
176
|
-
query_string_params.to_h { |p| p.split
|
176
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
177
177
|
else
|
178
178
|
{}
|
179
179
|
end
|
@@ -211,7 +211,7 @@ module Google
|
|
211
211
|
|
212
212
|
verb, uri, query_string_params, body = ServiceStub.transcode_create_mute_config_request request_pb
|
213
213
|
query_string_params = if query_string_params.any?
|
214
|
-
query_string_params.to_h { |p| p.split
|
214
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
215
215
|
else
|
216
216
|
{}
|
217
217
|
end
|
@@ -249,7 +249,7 @@ module Google
|
|
249
249
|
|
250
250
|
verb, uri, query_string_params, body = ServiceStub.transcode_create_notification_config_request request_pb
|
251
251
|
query_string_params = if query_string_params.any?
|
252
|
-
query_string_params.to_h { |p| p.split
|
252
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
253
253
|
else
|
254
254
|
{}
|
255
255
|
end
|
@@ -287,7 +287,7 @@ module Google
|
|
287
287
|
|
288
288
|
verb, uri, query_string_params, body = ServiceStub.transcode_delete_mute_config_request request_pb
|
289
289
|
query_string_params = if query_string_params.any?
|
290
|
-
query_string_params.to_h { |p| p.split
|
290
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
291
291
|
else
|
292
292
|
{}
|
293
293
|
end
|
@@ -325,7 +325,7 @@ module Google
|
|
325
325
|
|
326
326
|
verb, uri, query_string_params, body = ServiceStub.transcode_delete_notification_config_request request_pb
|
327
327
|
query_string_params = if query_string_params.any?
|
328
|
-
query_string_params.to_h { |p| p.split
|
328
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
329
329
|
else
|
330
330
|
{}
|
331
331
|
end
|
@@ -363,7 +363,7 @@ module Google
|
|
363
363
|
|
364
364
|
verb, uri, query_string_params, body = ServiceStub.transcode_delete_security_health_analytics_custom_module_request request_pb
|
365
365
|
query_string_params = if query_string_params.any?
|
366
|
-
query_string_params.to_h { |p| p.split
|
366
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
367
367
|
else
|
368
368
|
{}
|
369
369
|
end
|
@@ -401,7 +401,7 @@ module Google
|
|
401
401
|
|
402
402
|
verb, uri, query_string_params, body = ServiceStub.transcode_get_big_query_export_request request_pb
|
403
403
|
query_string_params = if query_string_params.any?
|
404
|
-
query_string_params.to_h { |p| p.split
|
404
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
405
405
|
else
|
406
406
|
{}
|
407
407
|
end
|
@@ -439,7 +439,7 @@ module Google
|
|
439
439
|
|
440
440
|
verb, uri, query_string_params, body = ServiceStub.transcode_get_iam_policy_request request_pb
|
441
441
|
query_string_params = if query_string_params.any?
|
442
|
-
query_string_params.to_h { |p| p.split
|
442
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
443
443
|
else
|
444
444
|
{}
|
445
445
|
end
|
@@ -477,7 +477,7 @@ module Google
|
|
477
477
|
|
478
478
|
verb, uri, query_string_params, body = ServiceStub.transcode_get_mute_config_request request_pb
|
479
479
|
query_string_params = if query_string_params.any?
|
480
|
-
query_string_params.to_h { |p| p.split
|
480
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
481
481
|
else
|
482
482
|
{}
|
483
483
|
end
|
@@ -515,7 +515,7 @@ module Google
|
|
515
515
|
|
516
516
|
verb, uri, query_string_params, body = ServiceStub.transcode_get_notification_config_request request_pb
|
517
517
|
query_string_params = if query_string_params.any?
|
518
|
-
query_string_params.to_h { |p| p.split
|
518
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
519
519
|
else
|
520
520
|
{}
|
521
521
|
end
|
@@ -553,7 +553,7 @@ module Google
|
|
553
553
|
|
554
554
|
verb, uri, query_string_params, body = ServiceStub.transcode_get_organization_settings_request request_pb
|
555
555
|
query_string_params = if query_string_params.any?
|
556
|
-
query_string_params.to_h { |p| p.split
|
556
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
557
557
|
else
|
558
558
|
{}
|
559
559
|
end
|
@@ -591,7 +591,7 @@ module Google
|
|
591
591
|
|
592
592
|
verb, uri, query_string_params, body = ServiceStub.transcode_get_effective_security_health_analytics_custom_module_request request_pb
|
593
593
|
query_string_params = if query_string_params.any?
|
594
|
-
query_string_params.to_h { |p| p.split
|
594
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
595
595
|
else
|
596
596
|
{}
|
597
597
|
end
|
@@ -629,7 +629,7 @@ module Google
|
|
629
629
|
|
630
630
|
verb, uri, query_string_params, body = ServiceStub.transcode_get_security_health_analytics_custom_module_request request_pb
|
631
631
|
query_string_params = if query_string_params.any?
|
632
|
-
query_string_params.to_h { |p| p.split
|
632
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
633
633
|
else
|
634
634
|
{}
|
635
635
|
end
|
@@ -667,7 +667,7 @@ module Google
|
|
667
667
|
|
668
668
|
verb, uri, query_string_params, body = ServiceStub.transcode_get_source_request request_pb
|
669
669
|
query_string_params = if query_string_params.any?
|
670
|
-
query_string_params.to_h { |p| p.split
|
670
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
671
671
|
else
|
672
672
|
{}
|
673
673
|
end
|
@@ -705,7 +705,7 @@ module Google
|
|
705
705
|
|
706
706
|
verb, uri, query_string_params, body = ServiceStub.transcode_group_assets_request request_pb
|
707
707
|
query_string_params = if query_string_params.any?
|
708
|
-
query_string_params.to_h { |p| p.split
|
708
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
709
709
|
else
|
710
710
|
{}
|
711
711
|
end
|
@@ -743,7 +743,7 @@ module Google
|
|
743
743
|
|
744
744
|
verb, uri, query_string_params, body = ServiceStub.transcode_group_findings_request request_pb
|
745
745
|
query_string_params = if query_string_params.any?
|
746
|
-
query_string_params.to_h { |p| p.split
|
746
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
747
747
|
else
|
748
748
|
{}
|
749
749
|
end
|
@@ -781,7 +781,7 @@ module Google
|
|
781
781
|
|
782
782
|
verb, uri, query_string_params, body = ServiceStub.transcode_list_assets_request request_pb
|
783
783
|
query_string_params = if query_string_params.any?
|
784
|
-
query_string_params.to_h { |p| p.split
|
784
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
785
785
|
else
|
786
786
|
{}
|
787
787
|
end
|
@@ -819,7 +819,7 @@ module Google
|
|
819
819
|
|
820
820
|
verb, uri, query_string_params, body = ServiceStub.transcode_list_descendant_security_health_analytics_custom_modules_request request_pb
|
821
821
|
query_string_params = if query_string_params.any?
|
822
|
-
query_string_params.to_h { |p| p.split
|
822
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
823
823
|
else
|
824
824
|
{}
|
825
825
|
end
|
@@ -857,7 +857,7 @@ module Google
|
|
857
857
|
|
858
858
|
verb, uri, query_string_params, body = ServiceStub.transcode_list_findings_request request_pb
|
859
859
|
query_string_params = if query_string_params.any?
|
860
|
-
query_string_params.to_h { |p| p.split
|
860
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
861
861
|
else
|
862
862
|
{}
|
863
863
|
end
|
@@ -895,7 +895,7 @@ module Google
|
|
895
895
|
|
896
896
|
verb, uri, query_string_params, body = ServiceStub.transcode_list_mute_configs_request request_pb
|
897
897
|
query_string_params = if query_string_params.any?
|
898
|
-
query_string_params.to_h { |p| p.split
|
898
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
899
899
|
else
|
900
900
|
{}
|
901
901
|
end
|
@@ -933,7 +933,7 @@ module Google
|
|
933
933
|
|
934
934
|
verb, uri, query_string_params, body = ServiceStub.transcode_list_notification_configs_request request_pb
|
935
935
|
query_string_params = if query_string_params.any?
|
936
|
-
query_string_params.to_h { |p| p.split
|
936
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
937
937
|
else
|
938
938
|
{}
|
939
939
|
end
|
@@ -971,7 +971,7 @@ module Google
|
|
971
971
|
|
972
972
|
verb, uri, query_string_params, body = ServiceStub.transcode_list_effective_security_health_analytics_custom_modules_request request_pb
|
973
973
|
query_string_params = if query_string_params.any?
|
974
|
-
query_string_params.to_h { |p| p.split
|
974
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
975
975
|
else
|
976
976
|
{}
|
977
977
|
end
|
@@ -1009,7 +1009,7 @@ module Google
|
|
1009
1009
|
|
1010
1010
|
verb, uri, query_string_params, body = ServiceStub.transcode_list_security_health_analytics_custom_modules_request request_pb
|
1011
1011
|
query_string_params = if query_string_params.any?
|
1012
|
-
query_string_params.to_h { |p| p.split
|
1012
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
1013
1013
|
else
|
1014
1014
|
{}
|
1015
1015
|
end
|
@@ -1047,7 +1047,7 @@ module Google
|
|
1047
1047
|
|
1048
1048
|
verb, uri, query_string_params, body = ServiceStub.transcode_list_sources_request request_pb
|
1049
1049
|
query_string_params = if query_string_params.any?
|
1050
|
-
query_string_params.to_h { |p| p.split
|
1050
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
1051
1051
|
else
|
1052
1052
|
{}
|
1053
1053
|
end
|
@@ -1085,7 +1085,7 @@ module Google
|
|
1085
1085
|
|
1086
1086
|
verb, uri, query_string_params, body = ServiceStub.transcode_run_asset_discovery_request request_pb
|
1087
1087
|
query_string_params = if query_string_params.any?
|
1088
|
-
query_string_params.to_h { |p| p.split
|
1088
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
1089
1089
|
else
|
1090
1090
|
{}
|
1091
1091
|
end
|
@@ -1123,7 +1123,7 @@ module Google
|
|
1123
1123
|
|
1124
1124
|
verb, uri, query_string_params, body = ServiceStub.transcode_set_finding_state_request request_pb
|
1125
1125
|
query_string_params = if query_string_params.any?
|
1126
|
-
query_string_params.to_h { |p| p.split
|
1126
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
1127
1127
|
else
|
1128
1128
|
{}
|
1129
1129
|
end
|
@@ -1161,7 +1161,7 @@ module Google
|
|
1161
1161
|
|
1162
1162
|
verb, uri, query_string_params, body = ServiceStub.transcode_set_mute_request request_pb
|
1163
1163
|
query_string_params = if query_string_params.any?
|
1164
|
-
query_string_params.to_h { |p| p.split
|
1164
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
1165
1165
|
else
|
1166
1166
|
{}
|
1167
1167
|
end
|
@@ -1199,7 +1199,7 @@ module Google
|
|
1199
1199
|
|
1200
1200
|
verb, uri, query_string_params, body = ServiceStub.transcode_set_iam_policy_request request_pb
|
1201
1201
|
query_string_params = if query_string_params.any?
|
1202
|
-
query_string_params.to_h { |p| p.split
|
1202
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
1203
1203
|
else
|
1204
1204
|
{}
|
1205
1205
|
end
|
@@ -1237,7 +1237,7 @@ module Google
|
|
1237
1237
|
|
1238
1238
|
verb, uri, query_string_params, body = ServiceStub.transcode_test_iam_permissions_request request_pb
|
1239
1239
|
query_string_params = if query_string_params.any?
|
1240
|
-
query_string_params.to_h { |p| p.split
|
1240
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
1241
1241
|
else
|
1242
1242
|
{}
|
1243
1243
|
end
|
@@ -1275,7 +1275,7 @@ module Google
|
|
1275
1275
|
|
1276
1276
|
verb, uri, query_string_params, body = ServiceStub.transcode_update_external_system_request request_pb
|
1277
1277
|
query_string_params = if query_string_params.any?
|
1278
|
-
query_string_params.to_h { |p| p.split
|
1278
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
1279
1279
|
else
|
1280
1280
|
{}
|
1281
1281
|
end
|
@@ -1313,7 +1313,7 @@ module Google
|
|
1313
1313
|
|
1314
1314
|
verb, uri, query_string_params, body = ServiceStub.transcode_update_finding_request request_pb
|
1315
1315
|
query_string_params = if query_string_params.any?
|
1316
|
-
query_string_params.to_h { |p| p.split
|
1316
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
1317
1317
|
else
|
1318
1318
|
{}
|
1319
1319
|
end
|
@@ -1351,7 +1351,7 @@ module Google
|
|
1351
1351
|
|
1352
1352
|
verb, uri, query_string_params, body = ServiceStub.transcode_update_mute_config_request request_pb
|
1353
1353
|
query_string_params = if query_string_params.any?
|
1354
|
-
query_string_params.to_h { |p| p.split
|
1354
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
1355
1355
|
else
|
1356
1356
|
{}
|
1357
1357
|
end
|
@@ -1389,7 +1389,7 @@ module Google
|
|
1389
1389
|
|
1390
1390
|
verb, uri, query_string_params, body = ServiceStub.transcode_update_notification_config_request request_pb
|
1391
1391
|
query_string_params = if query_string_params.any?
|
1392
|
-
query_string_params.to_h { |p| p.split
|
1392
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
1393
1393
|
else
|
1394
1394
|
{}
|
1395
1395
|
end
|
@@ -1427,7 +1427,7 @@ module Google
|
|
1427
1427
|
|
1428
1428
|
verb, uri, query_string_params, body = ServiceStub.transcode_update_organization_settings_request request_pb
|
1429
1429
|
query_string_params = if query_string_params.any?
|
1430
|
-
query_string_params.to_h { |p| p.split
|
1430
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
1431
1431
|
else
|
1432
1432
|
{}
|
1433
1433
|
end
|
@@ -1465,7 +1465,7 @@ module Google
|
|
1465
1465
|
|
1466
1466
|
verb, uri, query_string_params, body = ServiceStub.transcode_update_security_health_analytics_custom_module_request request_pb
|
1467
1467
|
query_string_params = if query_string_params.any?
|
1468
|
-
query_string_params.to_h { |p| p.split
|
1468
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
1469
1469
|
else
|
1470
1470
|
{}
|
1471
1471
|
end
|
@@ -1503,7 +1503,7 @@ module Google
|
|
1503
1503
|
|
1504
1504
|
verb, uri, query_string_params, body = ServiceStub.transcode_update_source_request request_pb
|
1505
1505
|
query_string_params = if query_string_params.any?
|
1506
|
-
query_string_params.to_h { |p| p.split
|
1506
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
1507
1507
|
else
|
1508
1508
|
{}
|
1509
1509
|
end
|
@@ -1541,7 +1541,7 @@ module Google
|
|
1541
1541
|
|
1542
1542
|
verb, uri, query_string_params, body = ServiceStub.transcode_update_security_marks_request request_pb
|
1543
1543
|
query_string_params = if query_string_params.any?
|
1544
|
-
query_string_params.to_h { |p| p.split
|
1544
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
1545
1545
|
else
|
1546
1546
|
{}
|
1547
1547
|
end
|
@@ -1579,7 +1579,7 @@ module Google
|
|
1579
1579
|
|
1580
1580
|
verb, uri, query_string_params, body = ServiceStub.transcode_create_big_query_export_request request_pb
|
1581
1581
|
query_string_params = if query_string_params.any?
|
1582
|
-
query_string_params.to_h { |p| p.split
|
1582
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
1583
1583
|
else
|
1584
1584
|
{}
|
1585
1585
|
end
|
@@ -1617,7 +1617,7 @@ module Google
|
|
1617
1617
|
|
1618
1618
|
verb, uri, query_string_params, body = ServiceStub.transcode_delete_big_query_export_request request_pb
|
1619
1619
|
query_string_params = if query_string_params.any?
|
1620
|
-
query_string_params.to_h { |p| p.split
|
1620
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
1621
1621
|
else
|
1622
1622
|
{}
|
1623
1623
|
end
|
@@ -1655,7 +1655,7 @@ module Google
|
|
1655
1655
|
|
1656
1656
|
verb, uri, query_string_params, body = ServiceStub.transcode_update_big_query_export_request request_pb
|
1657
1657
|
query_string_params = if query_string_params.any?
|
1658
|
-
query_string_params.to_h { |p| p.split
|
1658
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
1659
1659
|
else
|
1660
1660
|
{}
|
1661
1661
|
end
|
@@ -1693,7 +1693,7 @@ module Google
|
|
1693
1693
|
|
1694
1694
|
verb, uri, query_string_params, body = ServiceStub.transcode_list_big_query_exports_request request_pb
|
1695
1695
|
query_string_params = if query_string_params.any?
|
1696
|
-
query_string_params.to_h { |p| p.split
|
1696
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
1697
1697
|
else
|
1698
1698
|
{}
|
1699
1699
|
end
|
@@ -1,30 +1,34 @@
|
|
1
|
+
# frozen_string_literal: true
|
1
2
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
3
|
# source: google/cloud/securitycenter/v1/access.proto
|
3
4
|
|
4
5
|
require 'google/protobuf'
|
5
6
|
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
7
|
+
|
8
|
+
descriptor_data = "\n+google/cloud/securitycenter/v1/access.proto\x12\x1egoogle.cloud.securitycenter.v1\"\xf5\x02\n\x06\x41\x63\x63\x65ss\x12\x17\n\x0fprincipal_email\x18\x01 \x01(\t\x12\x11\n\tcaller_ip\x18\x02 \x01(\t\x12\x42\n\rcaller_ip_geo\x18\x03 \x01(\x0b\x32+.google.cloud.securitycenter.v1.Geolocation\x12\x19\n\x11user_agent_family\x18\x04 \x01(\t\x12\x14\n\x0cservice_name\x18\x05 \x01(\t\x12\x13\n\x0bmethod_name\x18\x06 \x01(\t\x12\x19\n\x11principal_subject\x18\x07 \x01(\t\x12 \n\x18service_account_key_name\x18\x08 \x01(\t\x12\x65\n\x1fservice_account_delegation_info\x18\t \x03(\x0b\x32<.google.cloud.securitycenter.v1.ServiceAccountDelegationInfo\x12\x11\n\tuser_name\x18\x0b \x01(\t\"R\n\x1cServiceAccountDelegationInfo\x12\x17\n\x0fprincipal_email\x18\x01 \x01(\t\x12\x19\n\x11principal_subject\x18\x02 \x01(\t\"\"\n\x0bGeolocation\x12\x13\n\x0bregion_code\x18\x01 \x01(\tB\xe5\x01\n\"com.google.cloud.securitycenter.v1B\x0b\x41\x63\x63\x65ssProtoP\x01ZJcloud.google.com/go/securitycenter/apiv1/securitycenterpb;securitycenterpb\xaa\x02\x1eGoogle.Cloud.SecurityCenter.V1\xca\x02\x1eGoogle\\Cloud\\SecurityCenter\\V1\xea\x02!Google::Cloud::SecurityCenter::V1b\x06proto3"
|
9
|
+
|
10
|
+
pool = Google::Protobuf::DescriptorPool.generated_pool
|
11
|
+
|
12
|
+
begin
|
13
|
+
pool.add_serialized_file(descriptor_data)
|
14
|
+
rescue TypeError => e
|
15
|
+
# Compatibility code: will be removed in the next major version.
|
16
|
+
require 'google/protobuf/descriptor_pb'
|
17
|
+
parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
|
18
|
+
parsed.clear_dependency
|
19
|
+
serialized = parsed.class.encode(parsed)
|
20
|
+
file = pool.add_serialized_file(serialized)
|
21
|
+
warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
|
22
|
+
imports = [
|
23
|
+
]
|
24
|
+
imports.each do |type_name, expected_filename|
|
25
|
+
import_file = pool.lookup(type_name).file_descriptor
|
26
|
+
if import_file.name != expected_filename
|
27
|
+
warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
|
26
28
|
end
|
27
29
|
end
|
30
|
+
warn "Each proto file must use a consistent fully-qualified name."
|
31
|
+
warn "This will become an error in the next major version."
|
28
32
|
end
|
29
33
|
|
30
34
|
module Google
|
@@ -1,3 +1,4 @@
|
|
1
|
+
# frozen_string_literal: true
|
1
2
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
3
|
# source: google/cloud/securitycenter/v1/asset.proto
|
3
4
|
|
@@ -9,33 +10,35 @@ require 'google/cloud/securitycenter/v1/security_marks_pb'
|
|
9
10
|
require 'google/protobuf/struct_pb'
|
10
11
|
require 'google/protobuf/timestamp_pb'
|
11
12
|
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
13
|
+
|
14
|
+
descriptor_data = "\n*google/cloud/securitycenter/v1/asset.proto\x12\x1egoogle.cloud.securitycenter.v1\x1a\x19google/api/resource.proto\x1a+google/cloud/securitycenter/v1/folder.proto\x1a\x33google/cloud/securitycenter/v1/security_marks.proto\x1a\x1cgoogle/protobuf/struct.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\xa9\x08\n\x05\x41sset\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x62\n\x1asecurity_center_properties\x18\x02 \x01(\x0b\x32>.google.cloud.securitycenter.v1.Asset.SecurityCenterProperties\x12Z\n\x13resource_properties\x18\x07 \x03(\x0b\x32=.google.cloud.securitycenter.v1.Asset.ResourcePropertiesEntry\x12\x45\n\x0esecurity_marks\x18\x08 \x01(\x0b\x32-.google.cloud.securitycenter.v1.SecurityMarks\x12/\n\x0b\x63reate_time\x18\t \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12/\n\x0bupdate_time\x18\n \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x43\n\niam_policy\x18\x0b \x01(\x0b\x32/.google.cloud.securitycenter.v1.Asset.IamPolicy\x12\x16\n\x0e\x63\x61nonical_name\x18\r \x01(\t\x1a\xb9\x02\n\x18SecurityCenterProperties\x12\x15\n\rresource_name\x18\x01 \x01(\t\x12\x15\n\rresource_type\x18\x02 \x01(\t\x12\x17\n\x0fresource_parent\x18\x03 \x01(\t\x12\x18\n\x10resource_project\x18\x04 \x01(\t\x12\x17\n\x0fresource_owners\x18\x05 \x03(\t\x12\x1d\n\x15resource_display_name\x18\x06 \x01(\t\x12$\n\x1cresource_parent_display_name\x18\x07 \x01(\t\x12%\n\x1dresource_project_display_name\x18\x08 \x01(\t\x12\x37\n\x07\x66olders\x18\n \x03(\x0b\x32&.google.cloud.securitycenter.v1.Folder\x1a \n\tIamPolicy\x12\x13\n\x0bpolicy_blob\x18\x01 \x01(\t\x1aQ\n\x17ResourcePropertiesEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12%\n\x05value\x18\x02 \x01(\x0b\x32\x16.google.protobuf.Value:\x02\x38\x01:\x9a\x01\xea\x41\x96\x01\n#securitycenter.googleapis.com/Asset\x12+organizations/{organization}/assets/{asset}\x12\x1f\x66olders/{folder}/assets/{asset}\x12!projects/{project}/assets/{asset}B\xd8\x01\n\"com.google.cloud.securitycenter.v1P\x01ZJcloud.google.com/go/securitycenter/apiv1/securitycenterpb;securitycenterpb\xaa\x02\x1eGoogle.Cloud.SecurityCenter.V1\xca\x02\x1eGoogle\\Cloud\\SecurityCenter\\V1\xea\x02!Google::Cloud::SecurityCenter::V1b\x06proto3"
|
15
|
+
|
16
|
+
pool = Google::Protobuf::DescriptorPool.generated_pool
|
17
|
+
|
18
|
+
begin
|
19
|
+
pool.add_serialized_file(descriptor_data)
|
20
|
+
rescue TypeError => e
|
21
|
+
# Compatibility code: will be removed in the next major version.
|
22
|
+
require 'google/protobuf/descriptor_pb'
|
23
|
+
parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
|
24
|
+
parsed.clear_dependency
|
25
|
+
serialized = parsed.class.encode(parsed)
|
26
|
+
file = pool.add_serialized_file(serialized)
|
27
|
+
warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
|
28
|
+
imports = [
|
29
|
+
["google.cloud.securitycenter.v1.SecurityMarks", "google/cloud/securitycenter/v1/security_marks.proto"],
|
30
|
+
["google.protobuf.Timestamp", "google/protobuf/timestamp.proto"],
|
31
|
+
["google.cloud.securitycenter.v1.Folder", "google/cloud/securitycenter/v1/folder.proto"],
|
32
|
+
["google.protobuf.Value", "google/protobuf/struct.proto"],
|
33
|
+
]
|
34
|
+
imports.each do |type_name, expected_filename|
|
35
|
+
import_file = pool.lookup(type_name).file_descriptor
|
36
|
+
if import_file.name != expected_filename
|
37
|
+
warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
|
37
38
|
end
|
38
39
|
end
|
40
|
+
warn "Each proto file must use a consistent fully-qualified name."
|
41
|
+
warn "This will become an error in the next major version."
|
39
42
|
end
|
40
43
|
|
41
44
|
module Google
|