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.



112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
# File 'proto_docs/google/devtools/artifactregistry/v1/repository.rb', line 112

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.

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

Returns:



112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
# File 'proto_docs/google/devtools/artifactregistry/v1/repository.rb', line 112

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.



112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
# File 'proto_docs/google/devtools/artifactregistry/v1/repository.rb', line 112

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.

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

Returns:

  • (::Google::Cloud::ArtifactRegistry::V1::CleanupPolicyMostRecentVersions)

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

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



112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
# File 'proto_docs/google/devtools/artifactregistry/v1/repository.rb', line 112

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