google-cloud-security_center-v2 0.1.0 → 0.3.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.
- checksums.yaml +4 -4
- data/lib/google/cloud/security_center/v2/security_center/client.rb +87 -48
- data/lib/google/cloud/security_center/v2/security_center/operations.rb +13 -5
- data/lib/google/cloud/security_center/v2/security_center/paths.rb +118 -23
- data/lib/google/cloud/security_center/v2/security_center/rest/client.rb +87 -48
- data/lib/google/cloud/security_center/v2/security_center/rest/operations.rb +11 -4
- data/lib/google/cloud/security_center/v2/security_center/rest/service_stub.rb +65 -0
- data/lib/google/cloud/security_center/v2/version.rb +1 -1
- data/lib/google/cloud/securitycenter/v2/attack_path_pb.rb +1 -1
- data/lib/google/cloud/securitycenter/v2/cloud_armor_pb.rb +49 -0
- data/lib/google/cloud/securitycenter/v2/finding_pb.rb +9 -1
- data/lib/google/cloud/securitycenter/v2/folder_pb.rb +42 -0
- data/lib/google/cloud/securitycenter/v2/group_membership_pb.rb +43 -0
- data/lib/google/cloud/securitycenter/v2/mitre_attack_pb.rb +1 -1
- data/lib/google/cloud/securitycenter/v2/notebook_pb.rb +45 -0
- data/lib/google/cloud/securitycenter/v2/resource_pb.rb +16 -1
- data/lib/google/cloud/securitycenter/v2/resource_value_config_pb.rb +2 -1
- data/lib/google/cloud/securitycenter/v2/securitycenter_service_pb.rb +3 -1
- data/lib/google/cloud/securitycenter/v2/simulation_pb.rb +2 -1
- data/lib/google/cloud/securitycenter/v2/toxic_combination_pb.rb +42 -0
- data/lib/google/cloud/securitycenter/v2/valued_resource_pb.rb +1 -1
- data/proto_docs/google/cloud/securitycenter/v2/cloud_armor.rb +128 -0
- data/proto_docs/google/cloud/securitycenter/v2/finding.rb +22 -0
- data/proto_docs/google/cloud/securitycenter/v2/folder.rb +40 -0
- data/proto_docs/google/cloud/securitycenter/v2/group_membership.rb +48 -0
- data/proto_docs/google/cloud/securitycenter/v2/mitre_attack.rb +13 -1
- data/proto_docs/google/cloud/securitycenter/v2/notebook.rb +46 -0
- data/proto_docs/google/cloud/securitycenter/v2/resource.rb +247 -0
- data/proto_docs/google/cloud/securitycenter/v2/resource_value_config.rb +22 -18
- data/proto_docs/google/cloud/securitycenter/v2/securitycenter_service.rb +37 -8
- data/proto_docs/google/cloud/securitycenter/v2/simulation.rb +3 -0
- data/proto_docs/google/cloud/securitycenter/v2/toxic_combination.rb +46 -0
- metadata +12 -2
@@ -587,6 +587,27 @@ module Google
|
|
587
587
|
"organizations/#{organization}/locations/#{location}"
|
588
588
|
end
|
589
589
|
|
590
|
+
##
|
591
|
+
# Create a fully-qualified OrganizationValuedResource resource string.
|
592
|
+
#
|
593
|
+
# The resource will be in the following format:
|
594
|
+
#
|
595
|
+
# `organizations/{organization}/locations/{location}/simulations/{simulation}/valuedResources/{valued_resource}`
|
596
|
+
#
|
597
|
+
# @param organization [String]
|
598
|
+
# @param location [String]
|
599
|
+
# @param simulation [String]
|
600
|
+
# @param valued_resource [String]
|
601
|
+
#
|
602
|
+
# @return [::String]
|
603
|
+
def organization_valued_resource_path organization:, location:, simulation:, valued_resource:
|
604
|
+
raise ::ArgumentError, "organization cannot contain /" if organization.to_s.include? "/"
|
605
|
+
raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
|
606
|
+
raise ::ArgumentError, "simulation cannot contain /" if simulation.to_s.include? "/"
|
607
|
+
|
608
|
+
"organizations/#{organization}/locations/#{location}/simulations/#{simulation}/valuedResources/#{valued_resource}"
|
609
|
+
end
|
610
|
+
|
590
611
|
##
|
591
612
|
# Create a fully-qualified Policy resource string.
|
592
613
|
#
|
@@ -656,18 +677,42 @@ module Google
|
|
656
677
|
##
|
657
678
|
# Create a fully-qualified ResourceValueConfig resource string.
|
658
679
|
#
|
659
|
-
#
|
680
|
+
# @overload resource_value_config_path(organization:, resource_value_config:)
|
681
|
+
# The resource will be in the following format:
|
660
682
|
#
|
661
|
-
#
|
683
|
+
# `organizations/{organization}/resourceValueConfigs/{resource_value_config}`
|
662
684
|
#
|
663
|
-
#
|
664
|
-
#
|
685
|
+
# @param organization [String]
|
686
|
+
# @param resource_value_config [String]
|
687
|
+
#
|
688
|
+
# @overload resource_value_config_path(organization:, location:, resource_value_config:)
|
689
|
+
# The resource will be in the following format:
|
690
|
+
#
|
691
|
+
# `organizations/{organization}/locations/{location}/resourceValueConfigs/{resource_value_config}`
|
692
|
+
#
|
693
|
+
# @param organization [String]
|
694
|
+
# @param location [String]
|
695
|
+
# @param resource_value_config [String]
|
665
696
|
#
|
666
697
|
# @return [::String]
|
667
|
-
def resource_value_config_path
|
668
|
-
|
698
|
+
def resource_value_config_path **args
|
699
|
+
resources = {
|
700
|
+
"organization:resource_value_config" => (proc do |organization:, resource_value_config:|
|
701
|
+
raise ::ArgumentError, "organization cannot contain /" if organization.to_s.include? "/"
|
702
|
+
|
703
|
+
"organizations/#{organization}/resourceValueConfigs/#{resource_value_config}"
|
704
|
+
end),
|
705
|
+
"location:organization:resource_value_config" => (proc do |organization:, location:, resource_value_config:|
|
706
|
+
raise ::ArgumentError, "organization cannot contain /" if organization.to_s.include? "/"
|
707
|
+
raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
|
708
|
+
|
709
|
+
"organizations/#{organization}/locations/#{location}/resourceValueConfigs/#{resource_value_config}"
|
710
|
+
end)
|
711
|
+
}
|
669
712
|
|
670
|
-
"
|
713
|
+
resource = resources[args.keys.sort.join(":")]
|
714
|
+
raise ::ArgumentError, "no resource found for values #{args.keys}" if resource.nil?
|
715
|
+
resource.call(**args)
|
671
716
|
end
|
672
717
|
|
673
718
|
##
|
@@ -821,18 +866,42 @@ module Google
|
|
821
866
|
##
|
822
867
|
# Create a fully-qualified Simulation resource string.
|
823
868
|
#
|
824
|
-
#
|
869
|
+
# @overload simulation_path(organization:, simulation:)
|
870
|
+
# The resource will be in the following format:
|
825
871
|
#
|
826
|
-
#
|
872
|
+
# `organizations/{organization}/simulations/{simulation}`
|
827
873
|
#
|
828
|
-
#
|
829
|
-
#
|
874
|
+
# @param organization [String]
|
875
|
+
# @param simulation [String]
|
876
|
+
#
|
877
|
+
# @overload simulation_path(organization:, location:, simluation:)
|
878
|
+
# The resource will be in the following format:
|
879
|
+
#
|
880
|
+
# `organizations/{organization}/locations/{location}/simulations/{simluation}`
|
881
|
+
#
|
882
|
+
# @param organization [String]
|
883
|
+
# @param location [String]
|
884
|
+
# @param simluation [String]
|
830
885
|
#
|
831
886
|
# @return [::String]
|
832
|
-
def simulation_path
|
833
|
-
|
887
|
+
def simulation_path **args
|
888
|
+
resources = {
|
889
|
+
"organization:simulation" => (proc do |organization:, simulation:|
|
890
|
+
raise ::ArgumentError, "organization cannot contain /" if organization.to_s.include? "/"
|
891
|
+
|
892
|
+
"organizations/#{organization}/simulations/#{simulation}"
|
893
|
+
end),
|
894
|
+
"location:organization:simluation" => (proc do |organization:, location:, simluation:|
|
895
|
+
raise ::ArgumentError, "organization cannot contain /" if organization.to_s.include? "/"
|
896
|
+
raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
|
897
|
+
|
898
|
+
"organizations/#{organization}/locations/#{location}/simulations/#{simluation}"
|
899
|
+
end)
|
900
|
+
}
|
834
901
|
|
835
|
-
"
|
902
|
+
resource = resources[args.keys.sort.join(":")]
|
903
|
+
raise ::ArgumentError, "no resource found for values #{args.keys}" if resource.nil?
|
904
|
+
resource.call(**args)
|
836
905
|
end
|
837
906
|
|
838
907
|
##
|
@@ -948,20 +1017,46 @@ module Google
|
|
948
1017
|
##
|
949
1018
|
# Create a fully-qualified ValuedResource resource string.
|
950
1019
|
#
|
951
|
-
#
|
1020
|
+
# @overload valued_resource_path(organization:, simulation:, valued_resource:)
|
1021
|
+
# The resource will be in the following format:
|
952
1022
|
#
|
953
|
-
#
|
1023
|
+
# `organizations/{organization}/simulations/{simulation}/valuedResources/{valued_resource}`
|
954
1024
|
#
|
955
|
-
#
|
956
|
-
#
|
957
|
-
#
|
1025
|
+
# @param organization [String]
|
1026
|
+
# @param simulation [String]
|
1027
|
+
# @param valued_resource [String]
|
1028
|
+
#
|
1029
|
+
# @overload valued_resource_path(organization:, location:, simluation:, valued_resource:)
|
1030
|
+
# The resource will be in the following format:
|
1031
|
+
#
|
1032
|
+
# `organizations/{organization}/locations/{location}/simulations/{simluation}/valuedResources/{valued_resource}`
|
1033
|
+
#
|
1034
|
+
# @param organization [String]
|
1035
|
+
# @param location [String]
|
1036
|
+
# @param simluation [String]
|
1037
|
+
# @param valued_resource [String]
|
958
1038
|
#
|
959
1039
|
# @return [::String]
|
960
|
-
def valued_resource_path
|
961
|
-
|
962
|
-
|
1040
|
+
def valued_resource_path **args
|
1041
|
+
resources = {
|
1042
|
+
"organization:simulation:valued_resource" => (proc do |organization:, simulation:, valued_resource:|
|
1043
|
+
raise ::ArgumentError, "organization cannot contain /" if organization.to_s.include? "/"
|
1044
|
+
raise ::ArgumentError, "simulation cannot contain /" if simulation.to_s.include? "/"
|
1045
|
+
|
1046
|
+
"organizations/#{organization}/simulations/#{simulation}/valuedResources/#{valued_resource}"
|
1047
|
+
end),
|
1048
|
+
"location:organization:simluation:valued_resource" => (proc do |organization:, location:, simluation:, valued_resource:|
|
1049
|
+
raise ::ArgumentError, "organization cannot contain /" if organization.to_s.include? "/"
|
1050
|
+
raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
|
1051
|
+
raise ::ArgumentError, "simluation cannot contain /" if simluation.to_s.include? "/"
|
963
1052
|
|
964
|
-
|
1053
|
+
"organizations/#{organization}/locations/#{location}/simulations/#{simluation}/valuedResources/#{valued_resource}"
|
1054
|
+
end)
|
1055
|
+
}
|
1056
|
+
|
1057
|
+
resource = resources[args.keys.sort.join(":")]
|
1058
|
+
raise ::ArgumentError, "no resource found for values #{args.keys}" if resource.nil?
|
1059
|
+
resource.call(**args)
|
965
1060
|
end
|
966
1061
|
|
967
1062
|
extend self
|