class Google::Apis::AutoscalerV1beta2::Autoscaler
Cloud Autoscaler resource.
Attributes
Cloud Autoscaler policy. Corresponds to the JSON property `autoscalingPolicy` @return [Google::Apis::AutoscalerV1beta2::AutoscalingPolicy]
- Output Only
-
Creation timestamp in RFC3339 text format.
Corresponds to the JSON property `creationTimestamp` @return [String]
An optional textual description of the resource provided by the client. Corresponds to the JSON property `description` @return [String]
- Output Only
-
Unique identifier for the resource; defined by the server.
Corresponds to the JSON property `id` @return [String]
Type of resource. Corresponds to the JSON property `kind` @return [String]
Name of the Autoscaler resource. Must be unique per project and zone. Corresponds to the JSON property `name` @return [String]
- Output Only
-
A self-link to the Autoscaler configuration resource.
Corresponds to the JSON property `selfLink` @return [String]
URL to the entity which will be autoscaled. Currently the only supported value is ReplicaPool?s URL. Note: it is illegal to specify multiple Autoscalers for the same target. Corresponds to the JSON property `target` @return [String]
Public Class Methods
# File generated/google/apis/autoscaler_v1beta2/classes.rb, line 71 def initialize(**args) update!(**args) end
Public Instance Methods
Update properties of this object
# File generated/google/apis/autoscaler_v1beta2/classes.rb, line 76 def update!(**args) @autoscaling_policy = args[:autoscaling_policy] if args.key?(:autoscaling_policy) @creation_timestamp = args[:creation_timestamp] if args.key?(:creation_timestamp) @description = args[:description] if args.key?(:description) @id = args[:id] if args.key?(:id) @kind = args[:kind] if args.key?(:kind) @name = args[:name] if args.key?(:name) @self_link = args[:self_link] if args.key?(:self_link) @target = args[:target] if args.key?(:target) end