Class: Google::Cloud::ArtifactRegistry::V1::Repository::MavenRepositoryConfig

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

Overview

MavenRepositoryConfig is maven related repository details. Provides additional configuration details for repositories of the maven format type.

Defined Under Namespace

Modules: VersionPolicy

Instance Attribute Summary collapse

Instance Attribute Details

#allow_snapshot_overwrites::Boolean

Returns The repository with this flag will allow publishing the same snapshot versions.

Returns:

  • (::Boolean)

    The repository with this flag will allow publishing the same snapshot versions.



427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
# File 'proto_docs/google/devtools/artifactregistry/v1/repository.rb', line 427

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

  # VersionPolicy is the version policy for the repository.
  module VersionPolicy
    # VERSION_POLICY_UNSPECIFIED - the version policy is not defined.
    # When the version policy is not defined, no validation is performed
    # for the versions.
    VERSION_POLICY_UNSPECIFIED = 0

    # RELEASE - repository will accept only Release versions.
    RELEASE = 1

    # SNAPSHOT - repository will accept only Snapshot versions.
    SNAPSHOT = 2
  end
end

#version_policy::Google::Cloud::ArtifactRegistry::V1::Repository::MavenRepositoryConfig::VersionPolicy

Returns Version policy defines the versions that the registry will accept.

Returns:



427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
# File 'proto_docs/google/devtools/artifactregistry/v1/repository.rb', line 427

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

  # VersionPolicy is the version policy for the repository.
  module VersionPolicy
    # VERSION_POLICY_UNSPECIFIED - the version policy is not defined.
    # When the version policy is not defined, no validation is performed
    # for the versions.
    VERSION_POLICY_UNSPECIFIED = 0

    # RELEASE - repository will accept only Release versions.
    RELEASE = 1

    # SNAPSHOT - repository will accept only Snapshot versions.
    SNAPSHOT = 2
  end
end