Class: Google::Cloud::ArtifactRegistry::V1beta2::Repository

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

Overview

A Repository for storing artifacts with a specific format.

Defined Under Namespace

Modules: Format Classes: LabelsEntry, MavenRepositoryConfig

Instance Attribute Summary collapse

Instance Attribute Details

#create_time::Google::Protobuf::Timestamp

Returns The time when the repository was created.

Returns:



58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
# File 'proto_docs/google/devtools/artifactregistry/v1beta2/repository.rb', line 58

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

  # MavenRepositoryConfig is maven related repository details.
  # Provides additional configuration details for repositories of the maven
  # format type.
  # @!attribute [rw] allow_snapshot_overwrites
  #   @return [::Boolean]
  #     The repository with this flag will allow publishing
  #     the same snapshot versions.
  # @!attribute [rw] version_policy
  #   @return [::Google::Cloud::ArtifactRegistry::V1beta2::Repository::MavenRepositoryConfig::VersionPolicy]
  #     Version policy defines the versions that the registry will accept.
  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

  # @!attribute [rw] key
  #   @return [::String]
  # @!attribute [rw] value
  #   @return [::String]
  class LabelsEntry
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end

  # A package format.
  module Format
    # Unspecified package format.
    FORMAT_UNSPECIFIED = 0

    # Docker package format.
    DOCKER = 1

    # Maven package format.
    MAVEN = 2

    # NPM package format.
    NPM = 3

    # APT package format.
    APT = 5

    # YUM package format.
    YUM = 6

    # Python package format.
    PYTHON = 8
  end
end

#description::String

Returns The user-provided description of the repository.

Returns:

  • (::String)

    The user-provided description of the repository.



58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
# File 'proto_docs/google/devtools/artifactregistry/v1beta2/repository.rb', line 58

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

  # MavenRepositoryConfig is maven related repository details.
  # Provides additional configuration details for repositories of the maven
  # format type.
  # @!attribute [rw] allow_snapshot_overwrites
  #   @return [::Boolean]
  #     The repository with this flag will allow publishing
  #     the same snapshot versions.
  # @!attribute [rw] version_policy
  #   @return [::Google::Cloud::ArtifactRegistry::V1beta2::Repository::MavenRepositoryConfig::VersionPolicy]
  #     Version policy defines the versions that the registry will accept.
  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

  # @!attribute [rw] key
  #   @return [::String]
  # @!attribute [rw] value
  #   @return [::String]
  class LabelsEntry
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end

  # A package format.
  module Format
    # Unspecified package format.
    FORMAT_UNSPECIFIED = 0

    # Docker package format.
    DOCKER = 1

    # Maven package format.
    MAVEN = 2

    # NPM package format.
    NPM = 3

    # APT package format.
    APT = 5

    # YUM package format.
    YUM = 6

    # Python package format.
    PYTHON = 8
  end
end

#format::Google::Cloud::ArtifactRegistry::V1beta2::Repository::Format

Returns The format of packages that are stored in the repository.

Returns:



58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
# File 'proto_docs/google/devtools/artifactregistry/v1beta2/repository.rb', line 58

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

  # MavenRepositoryConfig is maven related repository details.
  # Provides additional configuration details for repositories of the maven
  # format type.
  # @!attribute [rw] allow_snapshot_overwrites
  #   @return [::Boolean]
  #     The repository with this flag will allow publishing
  #     the same snapshot versions.
  # @!attribute [rw] version_policy
  #   @return [::Google::Cloud::ArtifactRegistry::V1beta2::Repository::MavenRepositoryConfig::VersionPolicy]
  #     Version policy defines the versions that the registry will accept.
  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

  # @!attribute [rw] key
  #   @return [::String]
  # @!attribute [rw] value
  #   @return [::String]
  class LabelsEntry
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end

  # A package format.
  module Format
    # Unspecified package format.
    FORMAT_UNSPECIFIED = 0

    # Docker package format.
    DOCKER = 1

    # Maven package format.
    MAVEN = 2

    # NPM package format.
    NPM = 3

    # APT package format.
    APT = 5

    # YUM package format.
    YUM = 6

    # Python package format.
    PYTHON = 8
  end
end

#kms_key_name::String

Returns The Cloud KMS resource name of the customer managed encryption key that’s used to encrypt the contents of the Repository. Has the form: projects/my-project/locations/my-region/keyRings/my-kr/cryptoKeys/my-key. This value may not be changed after the Repository has been created.

Returns:

  • (::String)

    The Cloud KMS resource name of the customer managed encryption key that’s used to encrypt the contents of the Repository. Has the form: projects/my-project/locations/my-region/keyRings/my-kr/cryptoKeys/my-key. This value may not be changed after the Repository has been created.



58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
# File 'proto_docs/google/devtools/artifactregistry/v1beta2/repository.rb', line 58

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

  # MavenRepositoryConfig is maven related repository details.
  # Provides additional configuration details for repositories of the maven
  # format type.
  # @!attribute [rw] allow_snapshot_overwrites
  #   @return [::Boolean]
  #     The repository with this flag will allow publishing
  #     the same snapshot versions.
  # @!attribute [rw] version_policy
  #   @return [::Google::Cloud::ArtifactRegistry::V1beta2::Repository::MavenRepositoryConfig::VersionPolicy]
  #     Version policy defines the versions that the registry will accept.
  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

  # @!attribute [rw] key
  #   @return [::String]
  # @!attribute [rw] value
  #   @return [::String]
  class LabelsEntry
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end

  # A package format.
  module Format
    # Unspecified package format.
    FORMAT_UNSPECIFIED = 0

    # Docker package format.
    DOCKER = 1

    # Maven package format.
    MAVEN = 2

    # NPM package format.
    NPM = 3

    # APT package format.
    APT = 5

    # YUM package format.
    YUM = 6

    # Python package format.
    PYTHON = 8
  end
end

#labels::Google::Protobuf::Map{::String => ::String}

Returns Labels with user-defined metadata. This field may contain up to 64 entries. Label keys and values may be no longer than 63 characters. Label keys must begin with a lowercase letter and may only contain lowercase letters, numeric characters, underscores, and dashes.

Returns:

  • (::Google::Protobuf::Map{::String => ::String})

    Labels with user-defined metadata. This field may contain up to 64 entries. Label keys and values may be no longer than 63 characters. Label keys must begin with a lowercase letter and may only contain lowercase letters, numeric characters, underscores, and dashes.



58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
# File 'proto_docs/google/devtools/artifactregistry/v1beta2/repository.rb', line 58

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

  # MavenRepositoryConfig is maven related repository details.
  # Provides additional configuration details for repositories of the maven
  # format type.
  # @!attribute [rw] allow_snapshot_overwrites
  #   @return [::Boolean]
  #     The repository with this flag will allow publishing
  #     the same snapshot versions.
  # @!attribute [rw] version_policy
  #   @return [::Google::Cloud::ArtifactRegistry::V1beta2::Repository::MavenRepositoryConfig::VersionPolicy]
  #     Version policy defines the versions that the registry will accept.
  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

  # @!attribute [rw] key
  #   @return [::String]
  # @!attribute [rw] value
  #   @return [::String]
  class LabelsEntry
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end

  # A package format.
  module Format
    # Unspecified package format.
    FORMAT_UNSPECIFIED = 0

    # Docker package format.
    DOCKER = 1

    # Maven package format.
    MAVEN = 2

    # NPM package format.
    NPM = 3

    # APT package format.
    APT = 5

    # YUM package format.
    YUM = 6

    # Python package format.
    PYTHON = 8
  end
end

#maven_config::Google::Cloud::ArtifactRegistry::V1beta2::Repository::MavenRepositoryConfig

Returns Maven repository config contains repository level configuration for the repositories of maven type.

Returns:



58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
# File 'proto_docs/google/devtools/artifactregistry/v1beta2/repository.rb', line 58

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

  # MavenRepositoryConfig is maven related repository details.
  # Provides additional configuration details for repositories of the maven
  # format type.
  # @!attribute [rw] allow_snapshot_overwrites
  #   @return [::Boolean]
  #     The repository with this flag will allow publishing
  #     the same snapshot versions.
  # @!attribute [rw] version_policy
  #   @return [::Google::Cloud::ArtifactRegistry::V1beta2::Repository::MavenRepositoryConfig::VersionPolicy]
  #     Version policy defines the versions that the registry will accept.
  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

  # @!attribute [rw] key
  #   @return [::String]
  # @!attribute [rw] value
  #   @return [::String]
  class LabelsEntry
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end

  # A package format.
  module Format
    # Unspecified package format.
    FORMAT_UNSPECIFIED = 0

    # Docker package format.
    DOCKER = 1

    # Maven package format.
    MAVEN = 2

    # NPM package format.
    NPM = 3

    # APT package format.
    APT = 5

    # YUM package format.
    YUM = 6

    # Python package format.
    PYTHON = 8
  end
end

#name::String

Returns The name of the repository, for example: "projects/p1/locations/us-central1/repositories/repo1".

Returns:

  • (::String)

    The name of the repository, for example: "projects/p1/locations/us-central1/repositories/repo1".



58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
# File 'proto_docs/google/devtools/artifactregistry/v1beta2/repository.rb', line 58

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

  # MavenRepositoryConfig is maven related repository details.
  # Provides additional configuration details for repositories of the maven
  # format type.
  # @!attribute [rw] allow_snapshot_overwrites
  #   @return [::Boolean]
  #     The repository with this flag will allow publishing
  #     the same snapshot versions.
  # @!attribute [rw] version_policy
  #   @return [::Google::Cloud::ArtifactRegistry::V1beta2::Repository::MavenRepositoryConfig::VersionPolicy]
  #     Version policy defines the versions that the registry will accept.
  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

  # @!attribute [rw] key
  #   @return [::String]
  # @!attribute [rw] value
  #   @return [::String]
  class LabelsEntry
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end

  # A package format.
  module Format
    # Unspecified package format.
    FORMAT_UNSPECIFIED = 0

    # Docker package format.
    DOCKER = 1

    # Maven package format.
    MAVEN = 2

    # NPM package format.
    NPM = 3

    # APT package format.
    APT = 5

    # YUM package format.
    YUM = 6

    # Python package format.
    PYTHON = 8
  end
end

#update_time::Google::Protobuf::Timestamp

Returns The time when the repository was last updated.

Returns:



58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
# File 'proto_docs/google/devtools/artifactregistry/v1beta2/repository.rb', line 58

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

  # MavenRepositoryConfig is maven related repository details.
  # Provides additional configuration details for repositories of the maven
  # format type.
  # @!attribute [rw] allow_snapshot_overwrites
  #   @return [::Boolean]
  #     The repository with this flag will allow publishing
  #     the same snapshot versions.
  # @!attribute [rw] version_policy
  #   @return [::Google::Cloud::ArtifactRegistry::V1beta2::Repository::MavenRepositoryConfig::VersionPolicy]
  #     Version policy defines the versions that the registry will accept.
  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

  # @!attribute [rw] key
  #   @return [::String]
  # @!attribute [rw] value
  #   @return [::String]
  class LabelsEntry
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end

  # A package format.
  module Format
    # Unspecified package format.
    FORMAT_UNSPECIFIED = 0

    # Docker package format.
    DOCKER = 1

    # Maven package format.
    MAVEN = 2

    # NPM package format.
    NPM = 3

    # APT package format.
    APT = 5

    # YUM package format.
    YUM = 6

    # Python package format.
    PYTHON = 8
  end
end