Class: Google::Apis::WorkstationsV1beta::PrivateClusterConfig

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ PrivateClusterConfig

Returns a new instance of PrivateClusterConfig.



1436
1437
1438
# File 'lib/google/apis/workstations_v1beta/classes.rb', line 1436

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

Instance Attribute Details

#allowed_projectsArray<String>

Corresponds to the JSON property allowedProjects

Returns:

  • (Array<String>)


1418
1419
1420
# File 'lib/google/apis/workstations_v1beta/classes.rb', line 1418

def allowed_projects
  @allowed_projects
end

#cluster_hostnameString

Corresponds to the JSON property clusterHostname

Returns:

  • (String)


1423
1424
1425
# File 'lib/google/apis/workstations_v1beta/classes.rb', line 1423

def cluster_hostname
  @cluster_hostname
end

#enable_private_endpointBoolean Also known as: enable_private_endpoint?

Corresponds to the JSON property enablePrivateEndpoint

Returns:

  • (Boolean)


1428
1429
1430
# File 'lib/google/apis/workstations_v1beta/classes.rb', line 1428

def enable_private_endpoint
  @enable_private_endpoint
end

#service_attachment_uriString

Corresponds to the JSON property serviceAttachmentUri

Returns:

  • (String)


1434
1435
1436
# File 'lib/google/apis/workstations_v1beta/classes.rb', line 1434

def service_attachment_uri
  @service_attachment_uri
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1441
1442
1443
1444
1445
1446
# File 'lib/google/apis/workstations_v1beta/classes.rb', line 1441

def update!(**args)
  @allowed_projects = args[:allowed_projects] if args.key?(:allowed_projects)
  @cluster_hostname = args[:cluster_hostname] if args.key?(:cluster_hostname)
  @enable_private_endpoint = args[:enable_private_endpoint] if args.key?(:enable_private_endpoint)
  @service_attachment_uri = args[:service_attachment_uri] if args.key?(:service_attachment_uri)
end