class Google::Apis::AutoscalerV1beta2::Autoscaler

Cloud Autoscaler resource.

Attributes

autoscaling_policy[RW]

Cloud Autoscaler policy. Corresponds to the JSON property `autoscalingPolicy` @return [Google::Apis::AutoscalerV1beta2::AutoscalingPolicy]

creation_timestamp[RW]
Output Only

Creation timestamp in RFC3339 text format.

Corresponds to the JSON property `creationTimestamp` @return [String]

description[RW]

An optional textual description of the resource provided by the client. Corresponds to the JSON property `description` @return [String]

id[RW]
Output Only

Unique identifier for the resource; defined by the server.

Corresponds to the JSON property `id` @return [String]

kind[RW]

Type of resource. Corresponds to the JSON property `kind` @return [String]

name[RW]

Name of the Autoscaler resource. Must be unique per project and zone. Corresponds to the JSON property `name` @return [String]

target[RW]

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

new(**args) click to toggle source
# File generated/google/apis/autoscaler_v1beta2/classes.rb, line 71
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

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