Class: Google::Apis::ArtifactregistryV1::PrewarmPlatform

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

The platform (architecture and OS) of the image. This is a sub-message.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ PrewarmPlatform

Returns a new instance of PrewarmPlatform.



2632
2633
2634
# File 'lib/google/apis/artifactregistry_v1/classes.rb', line 2632

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

Instance Attribute Details

#architectureString

Optional. The architecture of the image or tag. For example, "arm64" or "amd64" . Corresponds to the JSON property architecture

Returns:

  • (String)


2625
2626
2627
# File 'lib/google/apis/artifactregistry_v1/classes.rb', line 2625

def architecture
  @architecture
end

#osString

Optional. The OS of the image or tag. For example, "linux" or "windows". Corresponds to the JSON property os

Returns:

  • (String)


2630
2631
2632
# File 'lib/google/apis/artifactregistry_v1/classes.rb', line 2630

def os
  @os
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2637
2638
2639
2640
# File 'lib/google/apis/artifactregistry_v1/classes.rb', line 2637

def update!(**args)
  @architecture = args[:architecture] if args.key?(:architecture)
  @os = args[:os] if args.key?(:os)
end