Class: Google::Apis::WorkstationsV1beta::GceInstance

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

Overview

A runtime using a Compute Engine instance.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GceInstance

Returns a new instance of GceInstance.



373
374
375
# File 'lib/google/apis/workstations_v1beta/classes.rb', line 373

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

Instance Attribute Details

#boot_disk_size_gbFixnum

Size of the boot disk in GB. Corresponds to the JSON property bootDiskSizeGb

Returns:

  • (Fixnum)


332
333
334
# File 'lib/google/apis/workstations_v1beta/classes.rb', line 332

def boot_disk_size_gb
  @boot_disk_size_gb
end

#confidential_instance_configGoogle::Apis::WorkstationsV1beta::GceConfidentialInstanceConfig

A set of Compute Engine Confidential VM instance options. Corresponds to the JSON property confidentialInstanceConfig



337
338
339
# File 'lib/google/apis/workstations_v1beta/classes.rb', line 337

def confidential_instance_config
  @confidential_instance_config
end

#disable_public_ip_addressesBoolean Also known as: disable_public_ip_addresses?

Whether instances have no public IP address. Corresponds to the JSON property disablePublicIpAddresses

Returns:

  • (Boolean)


342
343
344
# File 'lib/google/apis/workstations_v1beta/classes.rb', line 342

def disable_public_ip_addresses
  @disable_public_ip_addresses
end

#machine_typeString

The name of a Compute Engine machine type. Corresponds to the JSON property machineType

Returns:

  • (String)


348
349
350
# File 'lib/google/apis/workstations_v1beta/classes.rb', line 348

def machine_type
  @machine_type
end

#pool_sizeFixnum

Number of instances to pool for faster workstation starup. Corresponds to the JSON property poolSize

Returns:

  • (Fixnum)


353
354
355
# File 'lib/google/apis/workstations_v1beta/classes.rb', line 353

def pool_size
  @pool_size
end

#service_accountString

Email address of the service account that will be used on VM instances used to support this config. This service account must have permission to pull the specified container image. If not set, VMs will run without a service account, in which case the image must be publicly accessible. Corresponds to the JSON property serviceAccount

Returns:

  • (String)


361
362
363
# File 'lib/google/apis/workstations_v1beta/classes.rb', line 361

def 
  @service_account
end

#shielded_instance_configGoogle::Apis::WorkstationsV1beta::GceShieldedInstanceConfig

A set of Compute Engine Shielded instance options. Corresponds to the JSON property shieldedInstanceConfig



366
367
368
# File 'lib/google/apis/workstations_v1beta/classes.rb', line 366

def shielded_instance_config
  @shielded_instance_config
end

#tagsArray<String>

Network tags to add to the Compute Engine machines backing the Workstations. Corresponds to the JSON property tags

Returns:

  • (Array<String>)


371
372
373
# File 'lib/google/apis/workstations_v1beta/classes.rb', line 371

def tags
  @tags
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



378
379
380
381
382
383
384
385
386
387
# File 'lib/google/apis/workstations_v1beta/classes.rb', line 378

def update!(**args)
  @boot_disk_size_gb = args[:boot_disk_size_gb] if args.key?(:boot_disk_size_gb)
  @confidential_instance_config = args[:confidential_instance_config] if args.key?(:confidential_instance_config)
  @disable_public_ip_addresses = args[:disable_public_ip_addresses] if args.key?(:disable_public_ip_addresses)
  @machine_type = args[:machine_type] if args.key?(:machine_type)
  @pool_size = args[:pool_size] if args.key?(:pool_size)
  @service_account = args[:service_account] if args.key?(:service_account)
  @shielded_instance_config = args[:shielded_instance_config] if args.key?(:shielded_instance_config)
  @tags = args[:tags] if args.key?(:tags)
end