Compute V1 Client - Class NetworkProfile (1.22.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] Creation timestamp in RFC3339 text format.

↳ description string

[Output Only] An optional description of this resource.

↳ features NetworkProfileNetworkFeatures

[Output Only] Features supported by the network.

↳ id int|string

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

↳ kind string

[Output Only] Type of the resource. Always compute#networkProfile for network profiles.

↳ location NetworkProfileLocation

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

↳ name string

[Output Only] Name of the resource.

↳ self_link string

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

↳ self_link_with_id string

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

↳ zone string

[Output Only] Zone to which the network is restricted.

getCreationTimestamp

[Output Only] Creation timestamp in RFC3339 text format.

Returns
Type Description
string

hasCreationTimestamp

clearCreationTimestamp

setCreationTimestamp

[Output Only] Creation timestamp in RFC3339 text format.

Parameter
Name Description
var string
Returns
Type Description
$this

getDescription

[Output Only] An optional description of this resource.

Returns
Type Description
string

hasDescription

clearDescription

setDescription

[Output Only] An optional description of this resource.

Parameter
Name Description
var string
Returns
Type Description
$this

getFeatures

[Output Only] Features supported by the network.

Returns
Type Description
NetworkProfileNetworkFeatures|null

hasFeatures

clearFeatures

setFeatures

[Output Only] Features supported by the network.

Parameter
Name Description
var NetworkProfileNetworkFeatures
Returns
Type Description
$this

getId

[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] 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] Type of the resource. Always compute#networkProfile for network profiles.

Returns
Type Description
string

hasKind

clearKind

setKind

[Output Only] Type of the resource. Always compute#networkProfile for network profiles.

Parameter
Name Description
var string
Returns
Type Description
$this

getLocation

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

Returns
Type Description
NetworkProfileLocation|null

hasLocation

clearLocation

setLocation

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

Parameter
Name Description
var NetworkProfileLocation
Returns
Type Description
$this

getName

[Output Only] Name of the resource.

Returns
Type Description
string

hasName

clearName

setName

[Output Only] Name of the resource.

Parameter
Name Description
var string
Returns
Type Description
$this

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

Returns
Type Description
string

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

Parameter
Name Description
var string
Returns
Type Description
$this

getSelfLinkWithId

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

Returns
Type Description
string

hasSelfLinkWithId

clearSelfLinkWithId

setSelfLinkWithId

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

Parameter
Name Description
var string
Returns
Type Description
$this

getZone

[Output Only] Zone to which the network is restricted.

Returns
Type Description
string

hasZone

clearZone

setZone

[Output Only] Zone to which the network is restricted.

Parameter
Name Description
var string
Returns
Type Description
$this