google-cloud-security_center-v1 0.26.0 → 0.28.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/lib/google/cloud/security_center/v1/security_center/client.rb +856 -15
- data/lib/google/cloud/security_center/v1/security_center/operations.rb +2 -2
- data/lib/google/cloud/security_center/v1/security_center/paths.rb +229 -0
- data/lib/google/cloud/security_center/v1/security_center/rest/client.rb +647 -2
- data/lib/google/cloud/security_center/v1/security_center/rest/operations.rb +2 -2
- data/lib/google/cloud/security_center/v1/security_center/rest/service_stub.rb +590 -0
- data/lib/google/cloud/security_center/v1/version.rb +1 -1
- data/lib/google/cloud/securitycenter/v1/cloud_dlp_data_profile_pb.rb +24 -0
- data/lib/google/cloud/securitycenter/v1/cloud_dlp_inspection_pb.rb +27 -0
- data/lib/google/cloud/securitycenter/v1/effective_security_health_analytics_custom_module_pb.rb +35 -0
- data/lib/google/cloud/securitycenter/v1/finding_pb.rb +5 -0
- data/lib/google/cloud/securitycenter/v1/security_health_analytics_custom_config_pb.rb +50 -0
- data/lib/google/cloud/securitycenter/v1/security_health_analytics_custom_module_pb.rb +40 -0
- data/lib/google/cloud/securitycenter/v1/securitycenter_service_pb.rb +58 -1
- data/lib/google/cloud/securitycenter/v1/securitycenter_service_services_pb.rb +30 -0
- data/proto_docs/google/api/client.rb +57 -3
- data/proto_docs/google/cloud/securitycenter/v1/access.rb +28 -29
- data/proto_docs/google/cloud/securitycenter/v1/bigquery_export.rb +5 -5
- data/proto_docs/google/cloud/securitycenter/v1/cloud_dlp_data_profile.rb +37 -0
- data/proto_docs/google/cloud/securitycenter/v1/cloud_dlp_inspection.rb +50 -0
- data/proto_docs/google/cloud/securitycenter/v1/contact_details.rb +2 -2
- data/proto_docs/google/cloud/securitycenter/v1/database.rb +1 -1
- data/proto_docs/google/cloud/securitycenter/v1/effective_security_health_analytics_custom_module.rb +73 -0
- data/proto_docs/google/cloud/securitycenter/v1/exfiltration.rb +1 -1
- data/proto_docs/google/cloud/securitycenter/v1/finding.rb +41 -27
- data/proto_docs/google/cloud/securitycenter/v1/indicator.rb +4 -3
- data/proto_docs/google/cloud/securitycenter/v1/kernel_rootkit.rb +8 -8
- data/proto_docs/google/cloud/securitycenter/v1/kubernetes.rb +3 -3
- data/proto_docs/google/cloud/securitycenter/v1/mute_config.rb +5 -5
- data/proto_docs/google/cloud/securitycenter/v1/resource.rb +3 -3
- data/proto_docs/google/cloud/securitycenter/v1/security_health_analytics_custom_config.rb +112 -0
- data/proto_docs/google/cloud/securitycenter/v1/security_health_analytics_custom_module.rb +90 -0
- data/proto_docs/google/cloud/securitycenter/v1/securitycenter_service.rb +169 -0
- data/proto_docs/google/iam/v1/policy.rb +8 -4
- metadata +12 -2
@@ -620,9 +620,9 @@ module Google
|
|
620
620
|
# * (`String`) The path to a service account key file in JSON format
|
621
621
|
# * (`Hash`) A service account key as a Hash
|
622
622
|
# * (`Google::Auth::Credentials`) A googleauth credentials object
|
623
|
-
# (see the [googleauth docs](https://
|
623
|
+
# (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
|
624
624
|
# * (`Signet::OAuth2::Client`) A signet oauth2 client object
|
625
|
-
# (see the [signet docs](https://
|
625
|
+
# (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
|
626
626
|
# * (`GRPC::Core::Channel`) a gRPC channel with included credentials
|
627
627
|
# * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
|
628
628
|
# * (`nil`) indicating no credentials
|
@@ -76,6 +76,99 @@ module Google
|
|
76
76
|
resource.call(**args)
|
77
77
|
end
|
78
78
|
|
79
|
+
##
|
80
|
+
# Create a fully-qualified DlpJob resource string.
|
81
|
+
#
|
82
|
+
# @overload dlp_job_path(project:, dlp_job:)
|
83
|
+
# The resource will be in the following format:
|
84
|
+
#
|
85
|
+
# `projects/{project}/dlpJobs/{dlp_job}`
|
86
|
+
#
|
87
|
+
# @param project [String]
|
88
|
+
# @param dlp_job [String]
|
89
|
+
#
|
90
|
+
# @overload dlp_job_path(project:, location:, dlp_job:)
|
91
|
+
# The resource will be in the following format:
|
92
|
+
#
|
93
|
+
# `projects/{project}/locations/{location}/dlpJobs/{dlp_job}`
|
94
|
+
#
|
95
|
+
# @param project [String]
|
96
|
+
# @param location [String]
|
97
|
+
# @param dlp_job [String]
|
98
|
+
#
|
99
|
+
# @return [::String]
|
100
|
+
def dlp_job_path **args
|
101
|
+
resources = {
|
102
|
+
"dlp_job:project" => (proc do |project:, dlp_job:|
|
103
|
+
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
104
|
+
|
105
|
+
"projects/#{project}/dlpJobs/#{dlp_job}"
|
106
|
+
end),
|
107
|
+
"dlp_job:location:project" => (proc do |project:, location:, dlp_job:|
|
108
|
+
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
109
|
+
raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
|
110
|
+
|
111
|
+
"projects/#{project}/locations/#{location}/dlpJobs/#{dlp_job}"
|
112
|
+
end)
|
113
|
+
}
|
114
|
+
|
115
|
+
resource = resources[args.keys.sort.join(":")]
|
116
|
+
raise ::ArgumentError, "no resource found for values #{args.keys}" if resource.nil?
|
117
|
+
resource.call(**args)
|
118
|
+
end
|
119
|
+
|
120
|
+
##
|
121
|
+
# Create a fully-qualified EffectiveSecurityHealthAnalyticsCustomModule resource string.
|
122
|
+
#
|
123
|
+
# @overload effective_security_health_analytics_custom_module_path(organization:, effective_custom_module:)
|
124
|
+
# The resource will be in the following format:
|
125
|
+
#
|
126
|
+
# `organizations/{organization}/securityHealthAnalyticsSettings/effectiveCustomModules/{effective_custom_module}`
|
127
|
+
#
|
128
|
+
# @param organization [String]
|
129
|
+
# @param effective_custom_module [String]
|
130
|
+
#
|
131
|
+
# @overload effective_security_health_analytics_custom_module_path(folder:, effective_custom_module:)
|
132
|
+
# The resource will be in the following format:
|
133
|
+
#
|
134
|
+
# `folders/{folder}/securityHealthAnalyticsSettings/effectiveCustomModules/{effective_custom_module}`
|
135
|
+
#
|
136
|
+
# @param folder [String]
|
137
|
+
# @param effective_custom_module [String]
|
138
|
+
#
|
139
|
+
# @overload effective_security_health_analytics_custom_module_path(project:, effective_custom_module:)
|
140
|
+
# The resource will be in the following format:
|
141
|
+
#
|
142
|
+
# `projects/{project}/securityHealthAnalyticsSettings/effectiveCustomModules/{effective_custom_module}`
|
143
|
+
#
|
144
|
+
# @param project [String]
|
145
|
+
# @param effective_custom_module [String]
|
146
|
+
#
|
147
|
+
# @return [::String]
|
148
|
+
def effective_security_health_analytics_custom_module_path **args
|
149
|
+
resources = {
|
150
|
+
"effective_custom_module:organization" => (proc do |organization:, effective_custom_module:|
|
151
|
+
raise ::ArgumentError, "organization cannot contain /" if organization.to_s.include? "/"
|
152
|
+
|
153
|
+
"organizations/#{organization}/securityHealthAnalyticsSettings/effectiveCustomModules/#{effective_custom_module}"
|
154
|
+
end),
|
155
|
+
"effective_custom_module:folder" => (proc do |folder:, effective_custom_module:|
|
156
|
+
raise ::ArgumentError, "folder cannot contain /" if folder.to_s.include? "/"
|
157
|
+
|
158
|
+
"folders/#{folder}/securityHealthAnalyticsSettings/effectiveCustomModules/#{effective_custom_module}"
|
159
|
+
end),
|
160
|
+
"effective_custom_module:project" => (proc do |project:, effective_custom_module:|
|
161
|
+
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
162
|
+
|
163
|
+
"projects/#{project}/securityHealthAnalyticsSettings/effectiveCustomModules/#{effective_custom_module}"
|
164
|
+
end)
|
165
|
+
}
|
166
|
+
|
167
|
+
resource = resources[args.keys.sort.join(":")]
|
168
|
+
raise ::ArgumentError, "no resource found for values #{args.keys}" if resource.nil?
|
169
|
+
resource.call(**args)
|
170
|
+
end
|
171
|
+
|
79
172
|
##
|
80
173
|
# Create a fully-qualified ExternalSystem resource string.
|
81
174
|
#
|
@@ -358,6 +451,101 @@ module Google
|
|
358
451
|
"projects/#{project}"
|
359
452
|
end
|
360
453
|
|
454
|
+
##
|
455
|
+
# Create a fully-qualified SecurityHealthAnalyticsCustomModule resource string.
|
456
|
+
#
|
457
|
+
# @overload security_health_analytics_custom_module_path(organization:, custom_module:)
|
458
|
+
# The resource will be in the following format:
|
459
|
+
#
|
460
|
+
# `organizations/{organization}/securityHealthAnalyticsSettings/customModules/{custom_module}`
|
461
|
+
#
|
462
|
+
# @param organization [String]
|
463
|
+
# @param custom_module [String]
|
464
|
+
#
|
465
|
+
# @overload security_health_analytics_custom_module_path(folder:, custom_module:)
|
466
|
+
# The resource will be in the following format:
|
467
|
+
#
|
468
|
+
# `folders/{folder}/securityHealthAnalyticsSettings/customModules/{custom_module}`
|
469
|
+
#
|
470
|
+
# @param folder [String]
|
471
|
+
# @param custom_module [String]
|
472
|
+
#
|
473
|
+
# @overload security_health_analytics_custom_module_path(project:, custom_module:)
|
474
|
+
# The resource will be in the following format:
|
475
|
+
#
|
476
|
+
# `projects/{project}/securityHealthAnalyticsSettings/customModules/{custom_module}`
|
477
|
+
#
|
478
|
+
# @param project [String]
|
479
|
+
# @param custom_module [String]
|
480
|
+
#
|
481
|
+
# @return [::String]
|
482
|
+
def security_health_analytics_custom_module_path **args
|
483
|
+
resources = {
|
484
|
+
"custom_module:organization" => (proc do |organization:, custom_module:|
|
485
|
+
raise ::ArgumentError, "organization cannot contain /" if organization.to_s.include? "/"
|
486
|
+
|
487
|
+
"organizations/#{organization}/securityHealthAnalyticsSettings/customModules/#{custom_module}"
|
488
|
+
end),
|
489
|
+
"custom_module:folder" => (proc do |folder:, custom_module:|
|
490
|
+
raise ::ArgumentError, "folder cannot contain /" if folder.to_s.include? "/"
|
491
|
+
|
492
|
+
"folders/#{folder}/securityHealthAnalyticsSettings/customModules/#{custom_module}"
|
493
|
+
end),
|
494
|
+
"custom_module:project" => (proc do |project:, custom_module:|
|
495
|
+
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
496
|
+
|
497
|
+
"projects/#{project}/securityHealthAnalyticsSettings/customModules/#{custom_module}"
|
498
|
+
end)
|
499
|
+
}
|
500
|
+
|
501
|
+
resource = resources[args.keys.sort.join(":")]
|
502
|
+
raise ::ArgumentError, "no resource found for values #{args.keys}" if resource.nil?
|
503
|
+
resource.call(**args)
|
504
|
+
end
|
505
|
+
|
506
|
+
##
|
507
|
+
# Create a fully-qualified SecurityHealthAnalyticsSettings resource string.
|
508
|
+
#
|
509
|
+
# @overload security_health_analytics_settings_path(organization:)
|
510
|
+
# The resource will be in the following format:
|
511
|
+
#
|
512
|
+
# `organizations/{organization}/securityHealthAnalyticsSettings`
|
513
|
+
#
|
514
|
+
# @param organization [String]
|
515
|
+
#
|
516
|
+
# @overload security_health_analytics_settings_path(folder:)
|
517
|
+
# The resource will be in the following format:
|
518
|
+
#
|
519
|
+
# `folders/{folder}/securityHealthAnalyticsSettings`
|
520
|
+
#
|
521
|
+
# @param folder [String]
|
522
|
+
#
|
523
|
+
# @overload security_health_analytics_settings_path(project:)
|
524
|
+
# The resource will be in the following format:
|
525
|
+
#
|
526
|
+
# `projects/{project}/securityHealthAnalyticsSettings`
|
527
|
+
#
|
528
|
+
# @param project [String]
|
529
|
+
#
|
530
|
+
# @return [::String]
|
531
|
+
def security_health_analytics_settings_path **args
|
532
|
+
resources = {
|
533
|
+
"organization" => (proc do |organization:|
|
534
|
+
"organizations/#{organization}/securityHealthAnalyticsSettings"
|
535
|
+
end),
|
536
|
+
"folder" => (proc do |folder:|
|
537
|
+
"folders/#{folder}/securityHealthAnalyticsSettings"
|
538
|
+
end),
|
539
|
+
"project" => (proc do |project:|
|
540
|
+
"projects/#{project}/securityHealthAnalyticsSettings"
|
541
|
+
end)
|
542
|
+
}
|
543
|
+
|
544
|
+
resource = resources[args.keys.sort.join(":")]
|
545
|
+
raise ::ArgumentError, "no resource found for values #{args.keys}" if resource.nil?
|
546
|
+
resource.call(**args)
|
547
|
+
end
|
548
|
+
|
361
549
|
##
|
362
550
|
# Create a fully-qualified SecurityMarks resource string.
|
363
551
|
#
|
@@ -507,6 +695,47 @@ module Google
|
|
507
695
|
resource.call(**args)
|
508
696
|
end
|
509
697
|
|
698
|
+
##
|
699
|
+
# Create a fully-qualified TableDataProfile resource string.
|
700
|
+
#
|
701
|
+
# @overload table_data_profile_path(project:, table_profile:)
|
702
|
+
# The resource will be in the following format:
|
703
|
+
#
|
704
|
+
# `projects/{project}/tableProfiles/{table_profile}`
|
705
|
+
#
|
706
|
+
# @param project [String]
|
707
|
+
# @param table_profile [String]
|
708
|
+
#
|
709
|
+
# @overload table_data_profile_path(project:, location:, table_profile:)
|
710
|
+
# The resource will be in the following format:
|
711
|
+
#
|
712
|
+
# `projects/{project}/locations/{location}/tableProfiles/{table_profile}`
|
713
|
+
#
|
714
|
+
# @param project [String]
|
715
|
+
# @param location [String]
|
716
|
+
# @param table_profile [String]
|
717
|
+
#
|
718
|
+
# @return [::String]
|
719
|
+
def table_data_profile_path **args
|
720
|
+
resources = {
|
721
|
+
"project:table_profile" => (proc do |project:, table_profile:|
|
722
|
+
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
723
|
+
|
724
|
+
"projects/#{project}/tableProfiles/#{table_profile}"
|
725
|
+
end),
|
726
|
+
"location:project:table_profile" => (proc do |project:, location:, table_profile:|
|
727
|
+
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
728
|
+
raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
|
729
|
+
|
730
|
+
"projects/#{project}/locations/#{location}/tableProfiles/#{table_profile}"
|
731
|
+
end)
|
732
|
+
}
|
733
|
+
|
734
|
+
resource = resources[args.keys.sort.join(":")]
|
735
|
+
raise ::ArgumentError, "no resource found for values #{args.keys}" if resource.nil?
|
736
|
+
resource.call(**args)
|
737
|
+
end
|
738
|
+
|
510
739
|
##
|
511
740
|
# Create a fully-qualified Topic resource string.
|
512
741
|
#
|