Class: Google::Cloud::Asset::V1::AnalyzerOrgPolicy::Rule

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

Overview

This rule message is a customized version of the one defined in the Organization Policy system. In addition to the fields defined in the original organization policy, it contains additional field(s) under specific circumstances to support analysis results.

Defined Under Namespace

Classes: StringValues

Instance Attribute Summary collapse

Instance Attribute Details

#allow_all::Boolean

Returns Setting this to true means that all values are allowed. This field can be set only in Policies for list constraints.

Note: The following fields are mutually exclusive: allow_all, values, deny_all, enforce. If a field in that set is populated, all other fields in the set will automatically be cleared.

Returns:

  • (::Boolean)

    Setting this to true means that all values are allowed. This field can be set only in Policies for list constraints.

    Note: The following fields are mutually exclusive: allow_all, values, deny_all, enforce. If a field in that set is populated, all other fields in the set will automatically be cleared.



2035
2036
2037
2038
2039
2040
2041
2042
2043
2044
2045
2046
2047
2048
2049
2050
# File 'proto_docs/google/cloud/asset/v1/asset_service.rb', line 2035

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

  # The string values for the list constraints.
  # @!attribute [rw] allowed_values
  #   @return [::Array<::String>]
  #     List of values allowed at this resource.
  # @!attribute [rw] denied_values
  #   @return [::Array<::String>]
  #     List of values denied at this resource.
  class StringValues
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end
end

#condition::Google::Type::Expr

Returns The evaluating condition for this rule.

Returns:



2035
2036
2037
2038
2039
2040
2041
2042
2043
2044
2045
2046
2047
2048
2049
2050
# File 'proto_docs/google/cloud/asset/v1/asset_service.rb', line 2035

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

  # The string values for the list constraints.
  # @!attribute [rw] allowed_values
  #   @return [::Array<::String>]
  #     List of values allowed at this resource.
  # @!attribute [rw] denied_values
  #   @return [::Array<::String>]
  #     List of values denied at this resource.
  class StringValues
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end
end

#condition_evaluation::Google::Cloud::Asset::V1::ConditionEvaluation



2035
2036
2037
2038
2039
2040
2041
2042
2043
2044
2045
2046
2047
2048
2049
2050
# File 'proto_docs/google/cloud/asset/v1/asset_service.rb', line 2035

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

  # The string values for the list constraints.
  # @!attribute [rw] allowed_values
  #   @return [::Array<::String>]
  #     List of values allowed at this resource.
  # @!attribute [rw] denied_values
  #   @return [::Array<::String>]
  #     List of values denied at this resource.
  class StringValues
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end
end

#deny_all::Boolean

Returns Setting this to true means that all values are denied. This field can be set only in Policies for list constraints.

Note: The following fields are mutually exclusive: deny_all, values, allow_all, enforce. If a field in that set is populated, all other fields in the set will automatically be cleared.

Returns:

  • (::Boolean)

    Setting this to true means that all values are denied. This field can be set only in Policies for list constraints.

    Note: The following fields are mutually exclusive: deny_all, values, allow_all, enforce. If a field in that set is populated, all other fields in the set will automatically be cleared.



2035
2036
2037
2038
2039
2040
2041
2042
2043
2044
2045
2046
2047
2048
2049
2050
# File 'proto_docs/google/cloud/asset/v1/asset_service.rb', line 2035

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

  # The string values for the list constraints.
  # @!attribute [rw] allowed_values
  #   @return [::Array<::String>]
  #     List of values allowed at this resource.
  # @!attribute [rw] denied_values
  #   @return [::Array<::String>]
  #     List of values denied at this resource.
  class StringValues
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end
end

#enforce::Boolean

Returns If true, then the Policy is enforced. If false, then any configuration is acceptable. This field can be set only in Policies for boolean constraints.

Note: The following fields are mutually exclusive: enforce, values, allow_all, deny_all. If a field in that set is populated, all other fields in the set will automatically be cleared.

Returns:

  • (::Boolean)

    If true, then the Policy is enforced. If false, then any configuration is acceptable. This field can be set only in Policies for boolean constraints.

    Note: The following fields are mutually exclusive: enforce, values, allow_all, deny_all. If a field in that set is populated, all other fields in the set will automatically be cleared.



2035
2036
2037
2038
2039
2040
2041
2042
2043
2044
2045
2046
2047
2048
2049
2050
# File 'proto_docs/google/cloud/asset/v1/asset_service.rb', line 2035

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

  # The string values for the list constraints.
  # @!attribute [rw] allowed_values
  #   @return [::Array<::String>]
  #     List of values allowed at this resource.
  # @!attribute [rw] denied_values
  #   @return [::Array<::String>]
  #     List of values denied at this resource.
  class StringValues
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end
end

#values::Google::Cloud::Asset::V1::AnalyzerOrgPolicy::Rule::StringValues

Returns List of values to be used for this policy rule. This field can be set only in policies for list constraints.

Note: The following fields are mutually exclusive: values, allow_all, deny_all, enforce. If a field in that set is populated, all other fields in the set will automatically be cleared.

Returns:

  • (::Google::Cloud::Asset::V1::AnalyzerOrgPolicy::Rule::StringValues)

    List of values to be used for this policy rule. This field can be set only in policies for list constraints.

    Note: The following fields are mutually exclusive: values, allow_all, deny_all, enforce. If a field in that set is populated, all other fields in the set will automatically be cleared.



2035
2036
2037
2038
2039
2040
2041
2042
2043
2044
2045
2046
2047
2048
2049
2050
# File 'proto_docs/google/cloud/asset/v1/asset_service.rb', line 2035

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

  # The string values for the list constraints.
  # @!attribute [rw] allowed_values
  #   @return [::Array<::String>]
  #     List of values allowed at this resource.
  # @!attribute [rw] denied_values
  #   @return [::Array<::String>]
  #     List of values denied at this resource.
  class StringValues
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end
end