Class: Google::Apis::AutoscalerV1beta2::Autoscaler
- Inherits:
-
Object
- Object
- Google::Apis::AutoscalerV1beta2::Autoscaler
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/autoscaler_v1beta2/classes.rb,
generated/google/apis/autoscaler_v1beta2/representations.rb,
generated/google/apis/autoscaler_v1beta2/representations.rb
Overview
Cloud Autoscaler resource.
Instance Attribute Summary collapse
-
#autoscaling_policy ⇒ Google::Apis::AutoscalerV1beta2::AutoscalingPolicy
Cloud Autoscaler policy.
-
#creation_timestamp ⇒ String
[Output Only] Creation timestamp in RFC3339 text format.
-
#description ⇒ String
An optional textual description of the resource provided by the client.
-
#id ⇒ String
[Output Only] Unique identifier for the resource; defined by the server.
-
#kind ⇒ String
Type of resource.
-
#name ⇒ String
Name of the Autoscaler resource.
-
#self_link ⇒ String
[Output Only] A self-link to the Autoscaler configuration resource.
-
#target ⇒ String
URL to the entity which will be autoscaled.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Autoscaler
constructor
A new instance of Autoscaler.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ Autoscaler
Returns a new instance of Autoscaler
71 72 73 |
# File 'generated/google/apis/autoscaler_v1beta2/classes.rb', line 71 def initialize(**args) update!(**args) end |
Instance Attribute Details
#autoscaling_policy ⇒ Google::Apis::AutoscalerV1beta2::AutoscalingPolicy
Cloud Autoscaler policy.
Corresponds to the JSON property autoscalingPolicy
32 33 34 |
# File 'generated/google/apis/autoscaler_v1beta2/classes.rb', line 32 def autoscaling_policy @autoscaling_policy end |
#creation_timestamp ⇒ String
[Output Only] Creation timestamp in RFC3339 text format.
Corresponds to the JSON property creationTimestamp
37 38 39 |
# File 'generated/google/apis/autoscaler_v1beta2/classes.rb', line 37 def @creation_timestamp end |
#description ⇒ String
An optional textual description of the resource provided by the client.
Corresponds to the JSON property description
42 43 44 |
# File 'generated/google/apis/autoscaler_v1beta2/classes.rb', line 42 def description @description end |
#id ⇒ String
[Output Only] Unique identifier for the resource; defined by the server.
Corresponds to the JSON property id
47 48 49 |
# File 'generated/google/apis/autoscaler_v1beta2/classes.rb', line 47 def id @id end |
#kind ⇒ String
Type of resource.
Corresponds to the JSON property kind
52 53 54 |
# File 'generated/google/apis/autoscaler_v1beta2/classes.rb', line 52 def kind @kind end |
#name ⇒ String
Name of the Autoscaler resource. Must be unique per project and zone.
Corresponds to the JSON property name
57 58 59 |
# File 'generated/google/apis/autoscaler_v1beta2/classes.rb', line 57 def name @name end |
#self_link ⇒ String
[Output Only] A self-link to the Autoscaler configuration resource.
Corresponds to the JSON property selfLink
62 63 64 |
# File 'generated/google/apis/autoscaler_v1beta2/classes.rb', line 62 def self_link @self_link end |
#target ⇒ 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
69 70 71 |
# File 'generated/google/apis/autoscaler_v1beta2/classes.rb', line 69 def target @target end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
76 77 78 79 80 81 82 83 84 85 |
# 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 |