Class: Google::Apis::WorkloadmanagerV1::Layer

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/workloadmanager_v1/classes.rb,
lib/google/apis/workloadmanager_v1/representations.rb,
lib/google/apis/workloadmanager_v1/representations.rb

Overview

The database layer

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Layer

Returns a new instance of Layer.



628
629
630
# File 'lib/google/apis/workloadmanager_v1/classes.rb', line 628

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

Instance Attribute Details

#application_typeString

the application layer Corresponds to the JSON property applicationType

Returns:

  • (String)


611
612
613
# File 'lib/google/apis/workloadmanager_v1/classes.rb', line 611

def application_type
  @application_type
end

#database_typeString

Optional. the database layer Corresponds to the JSON property databaseType

Returns:

  • (String)


616
617
618
# File 'lib/google/apis/workloadmanager_v1/classes.rb', line 616

def database_type
  @database_type
end

#instancesArray<Google::Apis::WorkloadmanagerV1::Instance>

Optional. instances in a layer Corresponds to the JSON property instances



621
622
623
# File 'lib/google/apis/workloadmanager_v1/classes.rb', line 621

def instances
  @instances
end

#sidString

Output only. system identification of a layer Corresponds to the JSON property sid

Returns:

  • (String)


626
627
628
# File 'lib/google/apis/workloadmanager_v1/classes.rb', line 626

def sid
  @sid
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



633
634
635
636
637
638
# File 'lib/google/apis/workloadmanager_v1/classes.rb', line 633

def update!(**args)
  @application_type = args[:application_type] if args.key?(:application_type)
  @database_type = args[:database_type] if args.key?(:database_type)
  @instances = args[:instances] if args.key?(:instances)
  @sid = args[:sid] if args.key?(:sid)
end