Class: Google::Cloud::Asset::V1::AnalyzerOrgPolicyConstraint::CustomConstraint

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

The definition of a custom constraint.

Defined Under Namespace

Modules: ActionType, MethodType

Instance Attribute Summary collapse

Instance Attribute Details

#action_type::Google::Cloud::Asset::V1::AnalyzerOrgPolicyConstraint::CustomConstraint::ActionType



2175
2176
2177
2178
2179
2180
2181
2182
2183
2184
2185
2186
2187
2188
2189
2190
2191
2192
2193
2194
2195
2196
2197
2198
2199
2200
2201
2202
2203
2204
2205
2206
2207
2208
# File 'proto_docs/google/cloud/asset/v1/asset_service.rb', line 2175

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

  # The operation in which this constraint will be applied. For example:
  # If the constraint applies only when create VMs, the method_types will be
  # "CREATE" only. If the constraint applied when create or delete VMs, the
  # method_types will be "CREATE" and "DELETE".
  module MethodType
    # Unspecified. Will results in user error.
    METHOD_TYPE_UNSPECIFIED = 0

    # Constraint applied when creating the resource.
    CREATE = 1

    # Constraint applied when updating the resource.
    UPDATE = 2

    # Constraint applied when deleting the resource.
    DELETE = 3
  end

  # Allow or deny type.
  module ActionType
    # Unspecified. Will results in user error.
    ACTION_TYPE_UNSPECIFIED = 0

    # Allowed action type.
    ALLOW = 1

    # Deny action type.
    DENY = 2
  end
end

#condition::String



2175
2176
2177
2178
2179
2180
2181
2182
2183
2184
2185
2186
2187
2188
2189
2190
2191
2192
2193
2194
2195
2196
2197
2198
2199
2200
2201
2202
2203
2204
2205
2206
2207
2208
# File 'proto_docs/google/cloud/asset/v1/asset_service.rb', line 2175

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

  # The operation in which this constraint will be applied. For example:
  # If the constraint applies only when create VMs, the method_types will be
  # "CREATE" only. If the constraint applied when create or delete VMs, the
  # method_types will be "CREATE" and "DELETE".
  module MethodType
    # Unspecified. Will results in user error.
    METHOD_TYPE_UNSPECIFIED = 0

    # Constraint applied when creating the resource.
    CREATE = 1

    # Constraint applied when updating the resource.
    UPDATE = 2

    # Constraint applied when deleting the resource.
    DELETE = 3
  end

  # Allow or deny type.
  module ActionType
    # Unspecified. Will results in user error.
    ACTION_TYPE_UNSPECIFIED = 0

    # Allowed action type.
    ALLOW = 1

    # Deny action type.
    DENY = 2
  end
end

#description::String



2175
2176
2177
2178
2179
2180
2181
2182
2183
2184
2185
2186
2187
2188
2189
2190
2191
2192
2193
2194
2195
2196
2197
2198
2199
2200
2201
2202
2203
2204
2205
2206
2207
2208
# File 'proto_docs/google/cloud/asset/v1/asset_service.rb', line 2175

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

  # The operation in which this constraint will be applied. For example:
  # If the constraint applies only when create VMs, the method_types will be
  # "CREATE" only. If the constraint applied when create or delete VMs, the
  # method_types will be "CREATE" and "DELETE".
  module MethodType
    # Unspecified. Will results in user error.
    METHOD_TYPE_UNSPECIFIED = 0

    # Constraint applied when creating the resource.
    CREATE = 1

    # Constraint applied when updating the resource.
    UPDATE = 2

    # Constraint applied when deleting the resource.
    DELETE = 3
  end

  # Allow or deny type.
  module ActionType
    # Unspecified. Will results in user error.
    ACTION_TYPE_UNSPECIFIED = 0

    # Allowed action type.
    ALLOW = 1

    # Deny action type.
    DENY = 2
  end
end

#display_name::String



2175
2176
2177
2178
2179
2180
2181
2182
2183
2184
2185
2186
2187
2188
2189
2190
2191
2192
2193
2194
2195
2196
2197
2198
2199
2200
2201
2202
2203
2204
2205
2206
2207
2208
# File 'proto_docs/google/cloud/asset/v1/asset_service.rb', line 2175

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

  # The operation in which this constraint will be applied. For example:
  # If the constraint applies only when create VMs, the method_types will be
  # "CREATE" only. If the constraint applied when create or delete VMs, the
  # method_types will be "CREATE" and "DELETE".
  module MethodType
    # Unspecified. Will results in user error.
    METHOD_TYPE_UNSPECIFIED = 0

    # Constraint applied when creating the resource.
    CREATE = 1

    # Constraint applied when updating the resource.
    UPDATE = 2

    # Constraint applied when deleting the resource.
    DELETE = 3
  end

  # Allow or deny type.
  module ActionType
    # Unspecified. Will results in user error.
    ACTION_TYPE_UNSPECIFIED = 0

    # Allowed action type.
    ALLOW = 1

    # Deny action type.
    DENY = 2
  end
end

#method_types::Array<::Google::Cloud::Asset::V1::AnalyzerOrgPolicyConstraint::CustomConstraint::MethodType>



2175
2176
2177
2178
2179
2180
2181
2182
2183
2184
2185
2186
2187
2188
2189
2190
2191
2192
2193
2194
2195
2196
2197
2198
2199
2200
2201
2202
2203
2204
2205
2206
2207
2208
# File 'proto_docs/google/cloud/asset/v1/asset_service.rb', line 2175

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

  # The operation in which this constraint will be applied. For example:
  # If the constraint applies only when create VMs, the method_types will be
  # "CREATE" only. If the constraint applied when create or delete VMs, the
  # method_types will be "CREATE" and "DELETE".
  module MethodType
    # Unspecified. Will results in user error.
    METHOD_TYPE_UNSPECIFIED = 0

    # Constraint applied when creating the resource.
    CREATE = 1

    # Constraint applied when updating the resource.
    UPDATE = 2

    # Constraint applied when deleting the resource.
    DELETE = 3
  end

  # Allow or deny type.
  module ActionType
    # Unspecified. Will results in user error.
    ACTION_TYPE_UNSPECIFIED = 0

    # Allowed action type.
    ALLOW = 1

    # Deny action type.
    DENY = 2
  end
end

#name::String



2175
2176
2177
2178
2179
2180
2181
2182
2183
2184
2185
2186
2187
2188
2189
2190
2191
2192
2193
2194
2195
2196
2197
2198
2199
2200
2201
2202
2203
2204
2205
2206
2207
2208
# File 'proto_docs/google/cloud/asset/v1/asset_service.rb', line 2175

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

  # The operation in which this constraint will be applied. For example:
  # If the constraint applies only when create VMs, the method_types will be
  # "CREATE" only. If the constraint applied when create or delete VMs, the
  # method_types will be "CREATE" and "DELETE".
  module MethodType
    # Unspecified. Will results in user error.
    METHOD_TYPE_UNSPECIFIED = 0

    # Constraint applied when creating the resource.
    CREATE = 1

    # Constraint applied when updating the resource.
    UPDATE = 2

    # Constraint applied when deleting the resource.
    DELETE = 3
  end

  # Allow or deny type.
  module ActionType
    # Unspecified. Will results in user error.
    ACTION_TYPE_UNSPECIFIED = 0

    # Allowed action type.
    ALLOW = 1

    # Deny action type.
    DENY = 2
  end
end

#resource_types::Array<::String>



2175
2176
2177
2178
2179
2180
2181
2182
2183
2184
2185
2186
2187
2188
2189
2190
2191
2192
2193
2194
2195
2196
2197
2198
2199
2200
2201
2202
2203
2204
2205
2206
2207
2208
# File 'proto_docs/google/cloud/asset/v1/asset_service.rb', line 2175

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

  # The operation in which this constraint will be applied. For example:
  # If the constraint applies only when create VMs, the method_types will be
  # "CREATE" only. If the constraint applied when create or delete VMs, the
  # method_types will be "CREATE" and "DELETE".
  module MethodType
    # Unspecified. Will results in user error.
    METHOD_TYPE_UNSPECIFIED = 0

    # Constraint applied when creating the resource.
    CREATE = 1

    # Constraint applied when updating the resource.
    UPDATE = 2

    # Constraint applied when deleting the resource.
    DELETE = 3
  end

  # Allow or deny type.
  module ActionType
    # Unspecified. Will results in user error.
    ACTION_TYPE_UNSPECIFIED = 0

    # Allowed action type.
    ALLOW = 1

    # Deny action type.
    DENY = 2
  end
end