Compute V1 Client - Class Reference (1.12.1)

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

Represents a reference to a resource.

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

Namespace

Google \ Cloud \ Compute \ V1

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ kind string

[Output Only] Type of the resource. Always compute#reference for references.

↳ reference_type string

A description of the reference type with no implied semantics. Possible values include: 1. MEMBER_OF

↳ referrer string

URL of the resource which refers to the target.

↳ target string

URL of the resource to which this reference points.

getKind

[Output Only] Type of the resource. Always compute#reference for references.

Returns
TypeDescription
string

hasKind

clearKind

setKind

[Output Only] Type of the resource. Always compute#reference for references.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getReferenceType

A description of the reference type with no implied semantics. Possible values include: 1. MEMBER_OF

Returns
TypeDescription
string

hasReferenceType

clearReferenceType

setReferenceType

A description of the reference type with no implied semantics. Possible values include: 1. MEMBER_OF

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getReferrer

URL of the resource which refers to the target.

Returns
TypeDescription
string

hasReferrer

clearReferrer

setReferrer

URL of the resource which refers to the target.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getTarget

URL of the resource to which this reference points.

Returns
TypeDescription
string

hasTarget

clearTarget

setTarget

URL of the resource to which this reference points.

Parameter
NameDescription
var string
Returns
TypeDescription
$this