Class: Google::Apis::ArtifactregistryV1beta1::Repository

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/artifactregistry_v1beta1/classes.rb,
lib/google/apis/artifactregistry_v1beta1/representations.rb,
lib/google/apis/artifactregistry_v1beta1/representations.rb

Overview

A Repository for storing artifacts with a specific format.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Repository

Returns a new instance of Repository.



689
690
691
# File 'lib/google/apis/artifactregistry_v1beta1/classes.rb', line 689

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#create_timeString

The time when the repository was created. Corresponds to the JSON property createTime

Returns:

  • (String)


643
644
645
# File 'lib/google/apis/artifactregistry_v1beta1/classes.rb', line 643

def create_time
  @create_time
end

#descriptionString

The user-provided description of the repository. Corresponds to the JSON property description

Returns:

  • (String)


648
649
650
# File 'lib/google/apis/artifactregistry_v1beta1/classes.rb', line 648

def description
  @description
end

#formatString

The format of packages that are stored in the repository. Corresponds to the JSON property format

Returns:

  • (String)


653
654
655
# File 'lib/google/apis/artifactregistry_v1beta1/classes.rb', line 653

def format
  @format
end

#kms_key_nameString

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. Corresponds to the JSON property kmsKeyName

Returns:

  • (String)


661
662
663
# File 'lib/google/apis/artifactregistry_v1beta1/classes.rb', line 661

def kms_key_name
  @kms_key_name
end

#labelsHash<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. Corresponds to the JSON property labels

Returns:

  • (Hash<String,String>)


669
670
671
# File 'lib/google/apis/artifactregistry_v1beta1/classes.rb', line 669

def labels
  @labels
end

#nameString

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

Returns:

  • (String)


675
676
677
# File 'lib/google/apis/artifactregistry_v1beta1/classes.rb', line 675

def name
  @name
end

#size_bytesFixnum

Output only. The size, in bytes, of all artifact storage in this repository. Repositories that are generally available or in public preview use this to calculate storage costs. Corresponds to the JSON property sizeBytes

Returns:

  • (Fixnum)


682
683
684
# File 'lib/google/apis/artifactregistry_v1beta1/classes.rb', line 682

def size_bytes
  @size_bytes
end

#update_timeString

The time when the repository was last updated. Corresponds to the JSON property updateTime

Returns:

  • (String)


687
688
689
# File 'lib/google/apis/artifactregistry_v1beta1/classes.rb', line 687

def update_time
  @update_time
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



694
695
696
697
698
699
700
701
702
703
# File 'lib/google/apis/artifactregistry_v1beta1/classes.rb', line 694

def update!(**args)
  @create_time = args[:create_time] if args.key?(:create_time)
  @description = args[:description] if args.key?(:description)
  @format = args[:format] if args.key?(:format)
  @kms_key_name = args[:kms_key_name] if args.key?(:kms_key_name)
  @labels = args[:labels] if args.key?(:labels)
  @name = args[:name] if args.key?(:name)
  @size_bytes = args[:size_bytes] if args.key?(:size_bytes)
  @update_time = args[:update_time] if args.key?(:update_time)
end