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.
2646 2647 2648 |
# File 'lib/google/apis/artifactregistry_v1/classes.rb', line 2646 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
2639 2640 2641 |
# File 'lib/google/apis/artifactregistry_v1/classes.rb', line 2639 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
2644 2645 2646 |
# File 'lib/google/apis/artifactregistry_v1/classes.rb', line 2644 def os @os end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2651 2652 2653 2654 |
# File 'lib/google/apis/artifactregistry_v1/classes.rb', line 2651 def update!(**args) @architecture = args[:architecture] if args.key?(:architecture) @os = args[:os] if args.key?(:os) end |