Class: Google::Apis::AutoscalerV1beta2::Zone

Inherits:
Object
  • Object
show all
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

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ Zone

Returns a new instance of Zone.



648
649
650
# File 'generated/google/apis/autoscaler_v1beta2/classes.rb', line 648

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#creation_timestampString

Corresponds to the JSON property creationTimestamp

Returns:

  • (String)


606
607
608
# File 'generated/google/apis/autoscaler_v1beta2/classes.rb', line 606

def creation_timestamp
  @creation_timestamp
end

#deprecatedGoogle::Apis::AutoscalerV1beta2::DeprecationStatus

Corresponds to the JSON property deprecated



611
612
613
# File 'generated/google/apis/autoscaler_v1beta2/classes.rb', line 611

def deprecated
  @deprecated
end

#descriptionString

Corresponds to the JSON property description

Returns:

  • (String)


616
617
618
# File 'generated/google/apis/autoscaler_v1beta2/classes.rb', line 616

def description
  @description
end

#idString

Corresponds to the JSON property id

Returns:

  • (String)


621
622
623
# File 'generated/google/apis/autoscaler_v1beta2/classes.rb', line 621

def id
  @id
end

#kindString

[Output Only] Type of the resource. Always compute#zone for zones. Corresponds to the JSON property kind

Returns:

  • (String)


626
627
628
# File 'generated/google/apis/autoscaler_v1beta2/classes.rb', line 626

def kind
  @kind
end

#nameString

Corresponds to the JSON property name

Returns:

  • (String)


631
632
633
# File 'generated/google/apis/autoscaler_v1beta2/classes.rb', line 631

def name
  @name
end

#regionString

Corresponds to the JSON property region

Returns:

  • (String)


636
637
638
# File 'generated/google/apis/autoscaler_v1beta2/classes.rb', line 636

def region
  @region
end

Corresponds to the JSON property selfLink

Returns:

  • (String)


641
642
643
# File 'generated/google/apis/autoscaler_v1beta2/classes.rb', line 641

def self_link
  @self_link
end

#statusString

Corresponds to the JSON property status

Returns:

  • (String)


646
647
648
# File 'generated/google/apis/autoscaler_v1beta2/classes.rb', line 646

def status
  @status
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



653
654
655
656
657
658
659
660
661
662
663
# File 'generated/google/apis/autoscaler_v1beta2/classes.rb', line 653

def update!(**args)
  @creation_timestamp = args[:creation_timestamp] if args.key?(:creation_timestamp)
  @deprecated = args[:deprecated] if args.key?(:deprecated)
  @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)
  @region = args[:region] if args.key?(:region)
  @self_link = args[:self_link] if args.key?(:self_link)
  @status = args[:status] if args.key?(:status)
end