Google Cloud Ai Platform V1 Client - Class NetworkSpec (1.12.0)

Reference documentation and code samples for the Google Cloud Ai Platform V1 Client class NetworkSpec.

Network spec.

Generated from protobuf message google.cloud.aiplatform.v1.NetworkSpec

Namespace

Google \ Cloud \ AIPlatform \ V1

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ enable_internet_access bool

Whether to enable public internet access. Default false.

↳ network string

The full name of the Google Compute Engine network

↳ subnetwork string

The name of the subnet that this instance is in. Format: projects/{project_id_or_number}/regions/{region}/subnetworks/{subnetwork_id}

getEnableInternetAccess

Whether to enable public internet access. Default false.

Returns
Type Description
bool

setEnableInternetAccess

Whether to enable public internet access. Default false.

Parameter
Name Description
var bool
Returns
Type Description
$this

getNetwork

The full name of the Google Compute Engine network

Returns
Type Description
string

setNetwork

The full name of the Google Compute Engine network

Parameter
Name Description
var string
Returns
Type Description
$this

getSubnetwork

The name of the subnet that this instance is in.

Format: projects/{project_id_or_number}/regions/{region}/subnetworks/{subnetwork_id}

Returns
Type Description
string

setSubnetwork

The name of the subnet that this instance is in.

Format: projects/{project_id_or_number}/regions/{region}/subnetworks/{subnetwork_id}

Parameter
Name Description
var string
Returns
Type Description
$this