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
Methods
__construct
Constructor.
Parameters | |
---|---|
Name | Description |
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.
Generated from protobuf field optional string kind = 3292052;
Returns | |
---|---|
Type | Description |
string |
hasKind
clearKind
setKind
[Output Only] Type of the resource. Always compute#reference for references.
Generated from protobuf field optional string kind = 3292052;
Parameter | |
---|---|
Name | Description |
var |
string
|
Returns | |
---|---|
Type | Description |
$this |
getReferenceType
A description of the reference type with no implied semantics. Possible values include: 1. MEMBER_OF
Generated from protobuf field optional string reference_type = 247521198;
Returns | |
---|---|
Type | Description |
string |
hasReferenceType
clearReferenceType
setReferenceType
A description of the reference type with no implied semantics. Possible values include: 1. MEMBER_OF
Generated from protobuf field optional string reference_type = 247521198;
Parameter | |
---|---|
Name | Description |
var |
string
|
Returns | |
---|---|
Type | Description |
$this |
getReferrer
URL of the resource which refers to the target.
Generated from protobuf field optional string referrer = 351173663;
Returns | |
---|---|
Type | Description |
string |
hasReferrer
clearReferrer
setReferrer
URL of the resource which refers to the target.
Generated from protobuf field optional string referrer = 351173663;
Parameter | |
---|---|
Name | Description |
var |
string
|
Returns | |
---|---|
Type | Description |
$this |
getTarget
URL of the resource to which this reference points.
Generated from protobuf field optional string target = 192835985;
Returns | |
---|---|
Type | Description |
string |
hasTarget
clearTarget
setTarget
URL of the resource to which this reference points.
Generated from protobuf field optional string target = 192835985;
Parameter | |
---|---|
Name | Description |
var |
string
|
Returns | |
---|---|
Type | Description |
$this |