Class: Google::Cloud::ArtifactRegistry::V1::CleanupPolicy

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

Overview

Artifact policy configuration for repository cleanup policies.

Defined Under Namespace

Modules: Action

Instance Attribute Summary collapse

Instance Attribute Details

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

Returns Policy action.



108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
# File 'proto_docs/google/devtools/artifactregistry/v1/repository.rb', line 108

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

  # Action type for a cleanup policy.
  module Action
    # Action not specified.
    ACTION_UNSPECIFIED = 0

    # Delete action.
    DELETE = 1

    # Keep action.
    KEEP = 2
  end
end

#condition::Google::Cloud::ArtifactRegistry::V1::CleanupPolicyCondition

Returns Policy condition for matching versions.

Returns:



108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
# File 'proto_docs/google/devtools/artifactregistry/v1/repository.rb', line 108

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

  # Action type for a cleanup policy.
  module Action
    # Action not specified.
    ACTION_UNSPECIFIED = 0

    # Delete action.
    DELETE = 1

    # Keep action.
    KEEP = 2
  end
end

#id::String

Returns The user-provided ID of the cleanup policy.

Returns:

  • (::String)

    The user-provided ID of the cleanup policy.



108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
# File 'proto_docs/google/devtools/artifactregistry/v1/repository.rb', line 108

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

  # Action type for a cleanup policy.
  module Action
    # Action not specified.
    ACTION_UNSPECIFIED = 0

    # Delete action.
    DELETE = 1

    # Keep action.
    KEEP = 2
  end
end

#most_recent_versions::Google::Cloud::ArtifactRegistry::V1::CleanupPolicyMostRecentVersions

Returns Policy condition for retaining a minimum number of versions. May only be specified with a Keep action.

Returns:



108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
# File 'proto_docs/google/devtools/artifactregistry/v1/repository.rb', line 108

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

  # Action type for a cleanup policy.
  module Action
    # Action not specified.
    ACTION_UNSPECIFIED = 0

    # Delete action.
    DELETE = 1

    # Keep action.
    KEEP = 2
  end
end