Class: Google::Apis::BaremetalsolutionV1alpha1::ProvisioningConfig

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

Overview

An provisioning configuration.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ ProvisioningConfig

Returns a new instance of ProvisioningConfig.



688
689
690
# File 'lib/google/apis/baremetalsolution_v1alpha1/classes.rb', line 688

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

Instance Attribute Details

#instancesArray<Google::Apis::BaremetalsolutionV1alpha1::InstanceConfig>

Instances to be created. Corresponds to the JSON property instances



671
672
673
# File 'lib/google/apis/baremetalsolution_v1alpha1/classes.rb', line 671

def instances
  @instances
end

#networksArray<Google::Apis::BaremetalsolutionV1alpha1::NetworkConfig>

Networks to be created. Corresponds to the JSON property networks



676
677
678
# File 'lib/google/apis/baremetalsolution_v1alpha1/classes.rb', line 676

def networks
  @networks
end

#ticket_idString

A reference to track the request. Corresponds to the JSON property ticketId

Returns:

  • (String)


681
682
683
# File 'lib/google/apis/baremetalsolution_v1alpha1/classes.rb', line 681

def ticket_id
  @ticket_id
end

#volumesArray<Google::Apis::BaremetalsolutionV1alpha1::VolumeConfig>

Volumes to be created. Corresponds to the JSON property volumes



686
687
688
# File 'lib/google/apis/baremetalsolution_v1alpha1/classes.rb', line 686

def volumes
  @volumes
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



693
694
695
696
697
698
# File 'lib/google/apis/baremetalsolution_v1alpha1/classes.rb', line 693

def update!(**args)
  @instances = args[:instances] if args.key?(:instances)
  @networks = args[:networks] if args.key?(:networks)
  @ticket_id = args[:ticket_id] if args.key?(:ticket_id)
  @volumes = args[:volumes] if args.key?(:volumes)
end