lib/google/apis/securitycenter_v1beta2/classes.rb in google-apis-securitycenter_v1beta2-0.19.0 vs lib/google/apis/securitycenter_v1beta2/classes.rb in google-apis-securitycenter_v1beta2-0.20.0

- old
+ new

@@ -400,10 +400,15 @@ # The class of the finding. # Corresponds to the JSON property `findingClass` # @return [String] attr_accessor :finding_class + # Represents IAM bindings associated with the Finding. + # Corresponds to the JSON property `iamBindings` + # @return [Array<Google::Apis::SecuritycenterV1beta2::IamBinding>] + attr_accessor :iam_bindings + # Represents what's commonly known as an Indicator of compromise (IoC) in # computer forensics. This is an artifact observed on a network or in an # operating system that, with high confidence, indicates a computer intrusion. # Reference: https://en.wikipedia.org/wiki/Indicator_of_compromise # Corresponds to the JSON property `indicator` @@ -441,10 +446,15 @@ # organization_id`/sources/`source_id`/findings/`finding_id`" # Corresponds to the JSON property `name` # @return [String] attr_accessor :name + # Next steps associate to the finding. + # Corresponds to the JSON property `nextSteps` + # @return [String] + attr_accessor :next_steps + # The relative resource name of the source the finding belongs to. See: https:// # cloud.google.com/apis/design/resource_names#relative_resource_name This field # is immutable after creation time. For example: "organizations/`organization_id` # /sources/`source_id`" # Corresponds to the JSON property `parent` @@ -504,16 +514,18 @@ @create_time = args[:create_time] if args.key?(:create_time) @event_time = args[:event_time] if args.key?(:event_time) @external_systems = args[:external_systems] if args.key?(:external_systems) @external_uri = args[:external_uri] if args.key?(:external_uri) @finding_class = args[:finding_class] if args.key?(:finding_class) + @iam_bindings = args[:iam_bindings] if args.key?(:iam_bindings) @indicator = args[:indicator] if args.key?(:indicator) @mitre_attack = args[:mitre_attack] if args.key?(:mitre_attack) @mute = args[:mute] if args.key?(:mute) @mute_initiator = args[:mute_initiator] if args.key?(:mute_initiator) @mute_update_time = args[:mute_update_time] if args.key?(:mute_update_time) @name = args[:name] if args.key?(:name) + @next_steps = args[:next_steps] if args.key?(:next_steps) @parent = args[:parent] if args.key?(:parent) @resource_name = args[:resource_name] if args.key?(:resource_name) @security_marks = args[:security_marks] if args.key?(:security_marks) @severity = args[:severity] if args.key?(:severity) @source_properties = args[:source_properties] if args.key?(:source_properties) @@ -1230,10 +1242,44 @@ @marks = args[:marks] if args.key?(:marks) @name = args[:name] if args.key?(:name) end end + # Represents a particular IAM binding, which captures a member's role addition, + # removal, or state. + class IamBinding + include Google::Apis::Core::Hashable + + # The action that was performed on a Binding. + # Corresponds to the JSON property `action` + # @return [String] + attr_accessor :action + + # A single identity requesting access for a Cloud Platform resource, e.g. "foo@ + # google.com". + # Corresponds to the JSON property `member` + # @return [String] + attr_accessor :member + + # Role that is assigned to "members". For example, "roles/viewer", "roles/editor" + # , or "roles/owner". + # Corresponds to the JSON property `role` + # @return [String] + attr_accessor :role + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @action = args[:action] if args.key?(:action) + @member = args[:member] if args.key?(:member) + @role = args[:role] if args.key?(:role) + end + end + # Represents what's commonly known as an Indicator of compromise (IoC) in # computer forensics. This is an artifact observed on a network or in an # operating system that, with high confidence, indicates a computer intrusion. # Reference: https://en.wikipedia.org/wiki/Indicator_of_compromise class Indicator @@ -1305,9 +1351,37 @@ @additional_tactics = args[:additional_tactics] if args.key?(:additional_tactics) @additional_techniques = args[:additional_techniques] if args.key?(:additional_techniques) @primary_tactic = args[:primary_tactic] if args.key?(:primary_tactic) @primary_techniques = args[:primary_techniques] if args.key?(:primary_techniques) @version = args[:version] if args.key?(:version) + end + end + + # Resource capturing onboarding information for a given CRM resource. + class OnboardingState + include Google::Apis::Core::Hashable + + # The resource name of the OnboardingState. Format: organizations/`organization`/ + # onboardingState Format: folders/`folder`/onboardingState Format: projects/` + # project`/onboardingState + # Corresponds to the JSON property `name` + # @return [String] + attr_accessor :name + + # Describes the level a given organization, folder, or project is onboarded with + # SCC. If the resource wasn't onboarded, NOT_FOUND would have been thrown. + # Corresponds to the JSON property `onboardingLevel` + # @return [String] + attr_accessor :onboarding_level + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @name = args[:name] if args.key?(:name) + @onboarding_level = args[:onboarding_level] if args.key?(:onboarding_level) end end # Additional Links class Reference