Class: Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1NetworkSpec

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

Overview

Network spec.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudAiplatformV1beta1NetworkSpec

Returns a new instance of GoogleCloudAiplatformV1beta1NetworkSpec.



18985
18986
18987
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 18985

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

Instance Attribute Details

#enable_internet_accessBoolean Also known as: enable_internet_access?

Whether to enable public internet access. Default false. Corresponds to the JSON property enableInternetAccess

Returns:

  • (Boolean)


18970
18971
18972
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 18970

def enable_internet_access
  @enable_internet_access
end

#networkString

The full name of the Google Compute Engine network Corresponds to the JSON property network

Returns:

  • (String)


18977
18978
18979
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 18977

def network
  @network
end

#subnetworkString

The name of the subnet that this instance is in. Format: projects/ project_id_or_number/regions/region/subnetworks/subnetwork_id` Corresponds to the JSON propertysubnetwork`

Returns:

  • (String)


18983
18984
18985
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 18983

def subnetwork
  @subnetwork
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



18990
18991
18992
18993
18994
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 18990

def update!(**args)
  @enable_internet_access = args[:enable_internet_access] if args.key?(:enable_internet_access)
  @network = args[:network] if args.key?(:network)
  @subnetwork = args[:subnetwork] if args.key?(:subnetwork)
end