Class: Google::Cloud::ArtifactRegistry::V1::Rule

Inherits:
Object
  • Object
show all
Extended by:
Protobuf::MessageExts::ClassMethods
Includes:
Protobuf::MessageExts
Defined in:
proto_docs/google/devtools/artifactregistry/v1/rule.rb

Overview

A rule defines the deny or allow action of the operation it applies to and the conditions required for the rule to apply. You can set one rule for an entire repository and one rule for each package within.

Defined Under Namespace

Modules: Action, Operation

Instance Attribute Summary collapse

Instance Attribute Details

#action::Google::Cloud::ArtifactRegistry::V1::Rule::Action

Returns The action this rule takes.

Returns:



44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
# File 'proto_docs/google/devtools/artifactregistry/v1/rule.rb', line 44

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

  # Defines the action of the rule.
  module Action
    # Action not specified.
    ACTION_UNSPECIFIED = 0

    # Allow the operation.
    ALLOW = 1

    # Deny the operation.
    DENY = 2
  end

  # The operation the rule applies to.
  module Operation
    # Operation not specified.
    OPERATION_UNSPECIFIED = 0

    # Download operation.
    DOWNLOAD = 1
  end
end

#condition::Google::Type::Expr

Returns Optional. A CEL expression for conditions that must be met in order for the rule to apply. If not provided, the rule matches all objects.

Returns:

  • (::Google::Type::Expr)

    Optional. A CEL expression for conditions that must be met in order for the rule to apply. If not provided, the rule matches all objects.



44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
# File 'proto_docs/google/devtools/artifactregistry/v1/rule.rb', line 44

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

  # Defines the action of the rule.
  module Action
    # Action not specified.
    ACTION_UNSPECIFIED = 0

    # Allow the operation.
    ALLOW = 1

    # Deny the operation.
    DENY = 2
  end

  # The operation the rule applies to.
  module Operation
    # Operation not specified.
    OPERATION_UNSPECIFIED = 0

    # Download operation.
    DOWNLOAD = 1
  end
end

#name::String

Returns The name of the rule, for example: projects/p1/locations/us-central1/repositories/repo1/rules/rule1.

Returns:

  • (::String)

    The name of the rule, for example: projects/p1/locations/us-central1/repositories/repo1/rules/rule1.



44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
# File 'proto_docs/google/devtools/artifactregistry/v1/rule.rb', line 44

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

  # Defines the action of the rule.
  module Action
    # Action not specified.
    ACTION_UNSPECIFIED = 0

    # Allow the operation.
    ALLOW = 1

    # Deny the operation.
    DENY = 2
  end

  # The operation the rule applies to.
  module Operation
    # Operation not specified.
    OPERATION_UNSPECIFIED = 0

    # Download operation.
    DOWNLOAD = 1
  end
end

#operation::Google::Cloud::ArtifactRegistry::V1::Rule::Operation



44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
# File 'proto_docs/google/devtools/artifactregistry/v1/rule.rb', line 44

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

  # Defines the action of the rule.
  module Action
    # Action not specified.
    ACTION_UNSPECIFIED = 0

    # Allow the operation.
    ALLOW = 1

    # Deny the operation.
    DENY = 2
  end

  # The operation the rule applies to.
  module Operation
    # Operation not specified.
    OPERATION_UNSPECIFIED = 0

    # Download operation.
    DOWNLOAD = 1
  end
end

#package_id::String

Returns The package ID the rule applies to. If empty, this rule applies to all packages inside the repository.

Returns:

  • (::String)

    The package ID the rule applies to. If empty, this rule applies to all packages inside the repository.



44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
# File 'proto_docs/google/devtools/artifactregistry/v1/rule.rb', line 44

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

  # Defines the action of the rule.
  module Action
    # Action not specified.
    ACTION_UNSPECIFIED = 0

    # Allow the operation.
    ALLOW = 1

    # Deny the operation.
    DENY = 2
  end

  # The operation the rule applies to.
  module Operation
    # Operation not specified.
    OPERATION_UNSPECIFIED = 0

    # Download operation.
    DOWNLOAD = 1
  end
end