Class: Google::Apis::ArtifactregistryV1::PrewarmPlatform
- Inherits:
-
Object
- Object
- Google::Apis::ArtifactregistryV1::PrewarmPlatform
- 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
-
#architecture ⇒ String
Optional.
-
#os ⇒ String
Optional.
Instance Method Summary collapse
-
#initialize(**args) ⇒ PrewarmPlatform
constructor
A new instance of PrewarmPlatform.
-
#update!(**args) ⇒ Object
Update properties of this object.
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
#architecture ⇒ String
Optional. The architecture of the image or tag. For example, "arm64" or "amd64"
.
Corresponds to the JSON property architecture
2625 2626 2627 |
# File 'lib/google/apis/artifactregistry_v1/classes.rb', line 2625 def architecture @architecture end |
#os ⇒ String
Optional. The OS of the image or tag. For example, "linux" or "windows".
Corresponds to the JSON property os
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 |