Class: Google::Apis::ArtifactregistryV1::PrewarmedArtifact

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

PrewarmedArtifact represents a streamed artifact. This is not a request message, so field_behavior annotations are not required.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ PrewarmedArtifact

Returns a new instance of PrewarmedArtifact.



2665
2666
2667
# File 'lib/google/apis/artifactregistry_v1/classes.rb', line 2665

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

Instance Attribute Details

#expiration_timeString

The expiration time of the prewarmed artifact. Corresponds to the JSON property expirationTime

Returns:

  • (String)


2651
2652
2653
# File 'lib/google/apis/artifactregistry_v1/classes.rb', line 2651

def expiration_time
  @expiration_time
end

#locationString

The location of the prewarmed artifact. Corresponds to the JSON property location

Returns:

  • (String)


2656
2657
2658
# File 'lib/google/apis/artifactregistry_v1/classes.rb', line 2656

def location
  @location
end

#uriString

URL to access the image. Example: us-west4-docker.pkg.dev/test-project/test- repo/nginx@sha256: e9954c1fc875017be1c3e36eca16be2d9e9bccc4bf072163515467d6a823c7cf Corresponds to the JSON property uri

Returns:

  • (String)


2663
2664
2665
# File 'lib/google/apis/artifactregistry_v1/classes.rb', line 2663

def uri
  @uri
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2670
2671
2672
2673
2674
# File 'lib/google/apis/artifactregistry_v1/classes.rb', line 2670

def update!(**args)
  @expiration_time = args[:expiration_time] if args.key?(:expiration_time)
  @location = args[:location] if args.key?(:location)
  @uri = args[:uri] if args.key?(:uri)
end