Class: Google::Cloud::SecurityCenter::V1::SimulateSecurityHealthAnalyticsCustomModuleRequest

Inherits:
Object
  • Object
show all
Extended by:
Protobuf::MessageExts::ClassMethods
Includes:
Protobuf::MessageExts
Defined in:
proto_docs/google/cloud/securitycenter/v1/securitycenter_service.rb

Overview

Request message to simulate a CustomConfig against a given test resource. Maximum size of the request is 4 MB by default.

Defined Under Namespace

Classes: SimulatedResource

Instance Attribute Summary collapse

Instance Attribute Details

#custom_config::Google::Cloud::SecurityCenter::V1::CustomConfig

Returns Required. The custom configuration that you need to test.

Returns:



1632
1633
1634
1635
1636
1637
1638
1639
1640
1641
1642
1643
1644
1645
1646
1647
1648
1649
1650
1651
1652
1653
1654
# File 'proto_docs/google/cloud/securitycenter/v1/securitycenter_service.rb', line 1632

class SimulateSecurityHealthAnalyticsCustomModuleRequest
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # Manually constructed resource name. If the custom module evaluates against
  # only the resource data, you can omit the `iam_policy_data` field. If it
  # evaluates only the `iam_policy_data` field, you can omit the resource data.
  # @!attribute [rw] resource_type
  #   @return [::String]
  #     Required. The type of the resource, for example,
  #     `compute.googleapis.com/Disk`.
  # @!attribute [rw] resource_data
  #   @return [::Google::Protobuf::Struct]
  #     Optional. A representation of the Google Cloud resource. Should match the
  #     Google Cloud resource JSON format.
  # @!attribute [rw] iam_policy_data
  #   @return [::Google::Iam::V1::Policy]
  #     Optional. A representation of the IAM policy.
  class SimulatedResource
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end
end

#parent::String

Returns Required. The relative resource name of the organization, project, or folder. For more information about relative resource names, see Relative Resource Name Example: organizations/{organization_id}.

Returns:

  • (::String)

    Required. The relative resource name of the organization, project, or folder. For more information about relative resource names, see Relative Resource Name Example: organizations/{organization_id}



1632
1633
1634
1635
1636
1637
1638
1639
1640
1641
1642
1643
1644
1645
1646
1647
1648
1649
1650
1651
1652
1653
1654
# File 'proto_docs/google/cloud/securitycenter/v1/securitycenter_service.rb', line 1632

class SimulateSecurityHealthAnalyticsCustomModuleRequest
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # Manually constructed resource name. If the custom module evaluates against
  # only the resource data, you can omit the `iam_policy_data` field. If it
  # evaluates only the `iam_policy_data` field, you can omit the resource data.
  # @!attribute [rw] resource_type
  #   @return [::String]
  #     Required. The type of the resource, for example,
  #     `compute.googleapis.com/Disk`.
  # @!attribute [rw] resource_data
  #   @return [::Google::Protobuf::Struct]
  #     Optional. A representation of the Google Cloud resource. Should match the
  #     Google Cloud resource JSON format.
  # @!attribute [rw] iam_policy_data
  #   @return [::Google::Iam::V1::Policy]
  #     Optional. A representation of the IAM policy.
  class SimulatedResource
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end
end

#resource::Google::Cloud::SecurityCenter::V1::SimulateSecurityHealthAnalyticsCustomModuleRequest::SimulatedResource

Returns Required. Resource data to simulate custom module against.

Returns:



1632
1633
1634
1635
1636
1637
1638
1639
1640
1641
1642
1643
1644
1645
1646
1647
1648
1649
1650
1651
1652
1653
1654
# File 'proto_docs/google/cloud/securitycenter/v1/securitycenter_service.rb', line 1632

class SimulateSecurityHealthAnalyticsCustomModuleRequest
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # Manually constructed resource name. If the custom module evaluates against
  # only the resource data, you can omit the `iam_policy_data` field. If it
  # evaluates only the `iam_policy_data` field, you can omit the resource data.
  # @!attribute [rw] resource_type
  #   @return [::String]
  #     Required. The type of the resource, for example,
  #     `compute.googleapis.com/Disk`.
  # @!attribute [rw] resource_data
  #   @return [::Google::Protobuf::Struct]
  #     Optional. A representation of the Google Cloud resource. Should match the
  #     Google Cloud resource JSON format.
  # @!attribute [rw] iam_policy_data
  #   @return [::Google::Iam::V1::Policy]
  #     Optional. A representation of the IAM policy.
  class SimulatedResource
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end
end