Class: Google::Apis::BaremetalsolutionV2::ProvisioningConfig

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

Overview

A provisioning configuration.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ ProvisioningConfig

Returns a new instance of ProvisioningConfig.



1614
1615
1616
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 1614

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

Instance Attribute Details

#cloud_console_uriString

Output only. URI to Cloud Console UI view of this provisioning config. Corresponds to the JSON property cloudConsoleUri

Returns:

  • (String)


1548
1549
1550
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 1548

def cloud_console_uri
  @cloud_console_uri
end

#emailString

Email provided to send a confirmation with provisioning config to. Deprecated in favour of email field in request messages. Corresponds to the JSON property email

Returns:

  • (String)


1554
1555
1556
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 1554

def email
  @email
end

#handover_service_accountString

A service account to enable customers to access instance credentials upon handover. Corresponds to the JSON property handoverServiceAccount

Returns:

  • (String)


1560
1561
1562
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 1560

def 
  @handover_service_account
end

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

Instances to be created. Corresponds to the JSON property instances



1565
1566
1567
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 1565

def instances
  @instances
end

#locationString

Optional. Location name of this ProvisioningConfig. It is optional only for Intake UI transition period. Corresponds to the JSON property location

Returns:

  • (String)


1571
1572
1573
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 1571

def location
  @location
end

#nameString

Output only. The name of the provisioning config. Corresponds to the JSON property name

Returns:

  • (String)


1576
1577
1578
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 1576

def name
  @name
end

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

Networks to be created. Corresponds to the JSON property networks



1581
1582
1583
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 1581

def networks
  @networks
end

#stateString

Output only. State of ProvisioningConfig. Corresponds to the JSON property state

Returns:

  • (String)


1586
1587
1588
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 1586

def state
  @state
end

#status_messageString

Optional status messages associated with the FAILED state. Corresponds to the JSON property statusMessage

Returns:

  • (String)


1591
1592
1593
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 1591

def status_message
  @status_message
end

#ticket_idString

A generated ticket id to track provisioning request. Corresponds to the JSON property ticketId

Returns:

  • (String)


1596
1597
1598
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 1596

def ticket_id
  @ticket_id
end

#update_timeString

Output only. Last update timestamp. Corresponds to the JSON property updateTime

Returns:

  • (String)


1601
1602
1603
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 1601

def update_time
  @update_time
end

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

Volumes to be created. Corresponds to the JSON property volumes



1606
1607
1608
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 1606

def volumes
  @volumes
end

#vpc_sc_enabledBoolean Also known as: vpc_sc_enabled?

If true, VPC SC is enabled for the cluster. Corresponds to the JSON property vpcScEnabled

Returns:

  • (Boolean)


1611
1612
1613
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 1611

def vpc_sc_enabled
  @vpc_sc_enabled
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1619
1620
1621
1622
1623
1624
1625
1626
1627
1628
1629
1630
1631
1632
1633
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 1619

def update!(**args)
  @cloud_console_uri = args[:cloud_console_uri] if args.key?(:cloud_console_uri)
  @email = args[:email] if args.key?(:email)
  @handover_service_account = args[:handover_service_account] if args.key?(:handover_service_account)
  @instances = args[:instances] if args.key?(:instances)
  @location = args[:location] if args.key?(:location)
  @name = args[:name] if args.key?(:name)
  @networks = args[:networks] if args.key?(:networks)
  @state = args[:state] if args.key?(:state)
  @status_message = args[:status_message] if args.key?(:status_message)
  @ticket_id = args[:ticket_id] if args.key?(:ticket_id)
  @update_time = args[:update_time] if args.key?(:update_time)
  @volumes = args[:volumes] if args.key?(:volumes)
  @vpc_sc_enabled = args[:vpc_sc_enabled] if args.key?(:vpc_sc_enabled)
end