Google Cloud Security Command Center V1p1beta1 Client - Class Resource (1.13.1)

Reference documentation and code samples for the Google Cloud Security Command Center V1p1beta1 Client class Resource.

Information related to the Google Cloud resource.

Generated from protobuf message google.cloud.securitycenter.v1p1beta1.Resource

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ name string

The full resource name of the resource. See: https://cloud.google.com/apis/design/resource_names#full_resource_name

↳ project string

The full resource name of project that the resource belongs to.

↳ project_display_name string

The human readable name of project that the resource belongs to.

↳ parent string

The full resource name of resource's parent.

↳ parent_display_name string

The human readable name of resource's parent.

↳ folders array<Google\Cloud\SecurityCenter\V1p1beta1\Folder>

Output only. Contains a Folder message for each folder in the assets ancestry. The first folder is the deepest nested folder, and the last folder is the folder directly under the Organization.

getName

The full resource name of the resource. See: https://cloud.google.com/apis/design/resource_names#full_resource_name

Generated from protobuf field string name = 1;

Returns
TypeDescription
string

setName

The full resource name of the resource. See: https://cloud.google.com/apis/design/resource_names#full_resource_name

Generated from protobuf field string name = 1;

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getProject

The full resource name of project that the resource belongs to.

Generated from protobuf field string project = 2;

Returns
TypeDescription
string

setProject

The full resource name of project that the resource belongs to.

Generated from protobuf field string project = 2;

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getProjectDisplayName

The human readable name of project that the resource belongs to.

Generated from protobuf field string project_display_name = 3;

Returns
TypeDescription
string

setProjectDisplayName

The human readable name of project that the resource belongs to.

Generated from protobuf field string project_display_name = 3;

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getParent

The full resource name of resource's parent.

Generated from protobuf field string parent = 4;

Returns
TypeDescription
string

setParent

The full resource name of resource's parent.

Generated from protobuf field string parent = 4;

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getParentDisplayName

The human readable name of resource's parent.

Generated from protobuf field string parent_display_name = 5;

Returns
TypeDescription
string

setParentDisplayName

The human readable name of resource's parent.

Generated from protobuf field string parent_display_name = 5;

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getFolders

Output only. Contains a Folder message for each folder in the assets ancestry.

The first folder is the deepest nested folder, and the last folder is the folder directly under the Organization.

Generated from protobuf field repeated .google.cloud.securitycenter.v1p1beta1.Folder folders = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
Google\Protobuf\Internal\RepeatedField

setFolders

Output only. Contains a Folder message for each folder in the assets ancestry.

The first folder is the deepest nested folder, and the last folder is the folder directly under the Organization.

Generated from protobuf field repeated .google.cloud.securitycenter.v1p1beta1.Folder folders = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
var array<Google\Cloud\SecurityCenter\V1p1beta1\Folder>
Returns
TypeDescription
$this