Class: Google::Apis::ArtifactregistryV1::GoogleDevtoolsArtifactregistryV1File

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

Overview

Files store content that is potentially associated with Packages or Versions.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleDevtoolsArtifactregistryV1File

Returns a new instance of GoogleDevtoolsArtifactregistryV1File.



831
832
833
# File 'lib/google/apis/artifactregistry_v1/classes.rb', line 831

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

Instance Attribute Details

#annotationsHash<String,String>

Optional. Client specified annotations. Corresponds to the JSON property annotations

Returns:

  • (Hash<String,String>)


791
792
793
# File 'lib/google/apis/artifactregistry_v1/classes.rb', line 791

def annotations
  @annotations
end

#create_timeString

Output only. The time when the File was created. Corresponds to the JSON property createTime

Returns:

  • (String)


796
797
798
# File 'lib/google/apis/artifactregistry_v1/classes.rb', line 796

def create_time
  @create_time
end

#fetch_timeString

Output only. The time when the last attempt to refresh the file's data was made. Only set when the repository is remote. Corresponds to the JSON property fetchTime

Returns:

  • (String)


802
803
804
# File 'lib/google/apis/artifactregistry_v1/classes.rb', line 802

def fetch_time
  @fetch_time
end

#hashesArray<Google::Apis::ArtifactregistryV1::HashProp>

The hashes of the file content. Corresponds to the JSON property hashes



807
808
809
# File 'lib/google/apis/artifactregistry_v1/classes.rb', line 807

def hashes
  @hashes
end

#nameString

The name of the file, for example: projects/p1/locations/us-central1/ repositories/repo1/files/a%2Fb%2Fc.txt. If the file ID part contains slashes, they are escaped. Corresponds to the JSON property name

Returns:

  • (String)


814
815
816
# File 'lib/google/apis/artifactregistry_v1/classes.rb', line 814

def name
  @name
end

#ownerString

The name of the Package or Version that owns this file, if any. Corresponds to the JSON property owner

Returns:

  • (String)


819
820
821
# File 'lib/google/apis/artifactregistry_v1/classes.rb', line 819

def owner
  @owner
end

#size_bytesFixnum

The size of the File in bytes. Corresponds to the JSON property sizeBytes

Returns:

  • (Fixnum)


824
825
826
# File 'lib/google/apis/artifactregistry_v1/classes.rb', line 824

def size_bytes
  @size_bytes
end

#update_timeString

Output only. The time when the File was last updated. Corresponds to the JSON property updateTime

Returns:

  • (String)


829
830
831
# File 'lib/google/apis/artifactregistry_v1/classes.rb', line 829

def update_time
  @update_time
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



836
837
838
839
840
841
842
843
844
845
# File 'lib/google/apis/artifactregistry_v1/classes.rb', line 836

def update!(**args)
  @annotations = args[:annotations] if args.key?(:annotations)
  @create_time = args[:create_time] if args.key?(:create_time)
  @fetch_time = args[:fetch_time] if args.key?(:fetch_time)
  @hashes = args[:hashes] if args.key?(:hashes)
  @name = args[:name] if args.key?(:name)
  @owner = args[:owner] if args.key?(:owner)
  @size_bytes = args[:size_bytes] if args.key?(:size_bytes)
  @update_time = args[:update_time] if args.key?(:update_time)
end