Compute V1 Client - Class NetworkProfile (2.4.0)

Reference documentation and code samples for the Compute V1 Client class NetworkProfile.

NetworkProfile represents a Google managed network profile resource.

Generated from protobuf message google.cloud.compute.v1.NetworkProfile

Namespace

Google \ Cloud \ Compute \ V1

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ creation_timestamp string

Output only. [Output Only] Creation timestamp inRFC3339 text format.

↳ description string

Output only. [Output Only] An optional description of this resource.

↳ features NetworkProfileNetworkFeatures

Output only. [Output Only] Features supported by the network.

↳ id int|string

Output only. [Output Only] The unique identifier for the resource. This identifier is defined by the server.

↳ kind string

Output only. [Output Only] Type of the resource. Alwayscompute#networkProfile for network profiles.

↳ location NetworkProfileLocation

Output only. [Output Only] Location to which the network is restricted.

↳ name string

Output only. [Output Only] Name of the resource.

↳ profile_type NetworkProfileProfileType

Output only. [Output Only] Type of the network profile.

↳ self_link string

Output only. [Output Only] Server-defined URL for the resource.

↳ self_link_with_id string

Output only. [Output Only] Server-defined URL for this resource with the resource id.

↳ zone string

getCreationTimestamp

Output only. [Output Only] Creation timestamp inRFC3339 text format.

Returns
Type Description
string

hasCreationTimestamp

clearCreationTimestamp

setCreationTimestamp

Output only. [Output Only] Creation timestamp inRFC3339 text format.

Parameter
Name Description
var string
Returns
Type Description
$this

getDescription

Output only. [Output Only] An optional description of this resource.

Returns
Type Description
string

hasDescription

clearDescription

setDescription

Output only. [Output Only] An optional description of this resource.

Parameter
Name Description
var string
Returns
Type Description
$this

getFeatures

Output only. [Output Only] Features supported by the network.

Returns
Type Description
NetworkProfileNetworkFeatures|null

hasFeatures

clearFeatures

setFeatures

Output only. [Output Only] Features supported by the network.

Parameter
Name Description
var NetworkProfileNetworkFeatures
Returns
Type Description
$this

getId

Output only. [Output Only] The unique identifier for the resource. This identifier is defined by the server.

Returns
Type Description
int|string

hasId

clearId

setId

Output only. [Output Only] The unique identifier for the resource. This identifier is defined by the server.

Parameter
Name Description
var int|string
Returns
Type Description
$this

getKind

Output only. [Output Only] Type of the resource. Alwayscompute#networkProfile for network profiles.

Returns
Type Description
string

hasKind

clearKind

setKind

Output only. [Output Only] Type of the resource. Alwayscompute#networkProfile for network profiles.

Parameter
Name Description
var string
Returns
Type Description
$this

getLocation

Output only. [Output Only] Location to which the network is restricted.

Returns
Type Description
NetworkProfileLocation|null

hasLocation

clearLocation

setLocation

Output only. [Output Only] Location to which the network is restricted.

Parameter
Name Description
var NetworkProfileLocation
Returns
Type Description
$this

getName

Output only. [Output Only] Name of the resource.

Returns
Type Description
string

hasName

clearName

setName

Output only. [Output Only] Name of the resource.

Parameter
Name Description
var string
Returns
Type Description
$this

getProfileType

Output only. [Output Only] Type of the network profile.

Returns
Type Description
NetworkProfileProfileType|null

hasProfileType

clearProfileType

setProfileType

Output only. [Output Only] Type of the network profile.

Parameter
Name Description
var NetworkProfileProfileType
Returns
Type Description
$this

Output only. [Output Only] Server-defined URL for the resource.

Returns
Type Description
string

Output only. [Output Only] Server-defined URL for the resource.

Parameter
Name Description
var string
Returns
Type Description
$this

getSelfLinkWithId

Output only. [Output Only] Server-defined URL for this resource with the resource id.

Returns
Type Description
string

hasSelfLinkWithId

clearSelfLinkWithId

setSelfLinkWithId

Output only. [Output Only] Server-defined URL for this resource with the resource id.

Parameter
Name Description
var string
Returns
Type Description
$this

getZone

Generated from protobuf field optional string zone = 3744684;

Returns
Type Description
string

hasZone

clearZone

setZone

Generated from protobuf field optional string zone = 3744684;

Parameter
Name Description
var string
Returns
Type Description
$this