Google Cloud Asset V1 Client - Class Resource (1.9.2)

Reference documentation and code samples for the Google Cloud Asset V1 Client class Resource.

A representation of a Google Cloud resource.

Generated from protobuf message google.cloud.asset.v1.Resource

Methods

__construct

Constructor.

Parameters
Name
Description
data
array

Optional. Data for populating the Message object.

↳ version
string

The API version. Example: v1

↳ discovery_document_uri
string

The URL of the discovery document containing the resource's JSON schema. Example: https://www.googleapis.com/discovery/v1/apis/compute/v1/rest This value is unspecified for resources that do not have an API based on a discovery document, such as Cloud Bigtable.

↳ discovery_name
string

The JSON schema name listed in the discovery document. Example: Project This value is unspecified for resources that do not have an API based on a discovery document, such as Cloud Bigtable.

↳ resource_url
string

The REST URL for accessing the resource. An HTTP GET request using this URL returns the resource itself. Example: https://cloudresourcemanager.googleapis.com/v1/projects/my-project-123 This value is unspecified for resources without a REST API.

↳ parent
string

The full name of the immediate parent of this resource. See Resource Names for more information. For Google Cloud assets, this value is the parent resource defined in the Cloud IAM policy hierarchy . Example: //cloudresourcemanager.googleapis.com/projects/my_project_123 For third-party assets, this field may be set differently.

↳ data
Google\Protobuf\Struct

The content of the resource, in which some sensitive fields are removed and may not be present.

↳ location
string

The location of the resource in Google Cloud, such as its zone and region. For more information, see https://cloud.google.com/about/locations/ .

getVersion

The API version. Example: v1

Generated from protobuf field string version = 1;

Returns
Type
Description
string

setVersion

The API version. Example: v1

Generated from protobuf field string version = 1;

Parameter
Name
Description
var
string
Returns
Type
Description
$this

getDiscoveryDocumentUri

The URL of the discovery document containing the resource's JSON schema.

Example: https://www.googleapis.com/discovery/v1/apis/compute/v1/rest This value is unspecified for resources that do not have an API based on a discovery document, such as Cloud Bigtable.

Generated from protobuf field string discovery_document_uri = 2;

Returns
Type
Description
string

setDiscoveryDocumentUri

The URL of the discovery document containing the resource's JSON schema.

Example: https://www.googleapis.com/discovery/v1/apis/compute/v1/rest This value is unspecified for resources that do not have an API based on a discovery document, such as Cloud Bigtable.

Generated from protobuf field string discovery_document_uri = 2;

Parameter
Name
Description
var
string
Returns
Type
Description
$this

getDiscoveryName

The JSON schema name listed in the discovery document. Example: Project This value is unspecified for resources that do not have an API based on a discovery document, such as Cloud Bigtable.

Generated from protobuf field string discovery_name = 3;

Returns
Type
Description
string

setDiscoveryName

The JSON schema name listed in the discovery document. Example: Project This value is unspecified for resources that do not have an API based on a discovery document, such as Cloud Bigtable.

Generated from protobuf field string discovery_name = 3;

Parameter
Name
Description
var
string
Returns
Type
Description
$this

getResourceUrl

The REST URL for accessing the resource. An HTTP GET request using this URL returns the resource itself. Example: https://cloudresourcemanager.googleapis.com/v1/projects/my-project-123 This value is unspecified for resources without a REST API.

Generated from protobuf field string resource_url = 4;

Returns
Type
Description
string

setResourceUrl

The REST URL for accessing the resource. An HTTP GET request using this URL returns the resource itself. Example: https://cloudresourcemanager.googleapis.com/v1/projects/my-project-123 This value is unspecified for resources without a REST API.

Generated from protobuf field string resource_url = 4;

Parameter
Name
Description
var
string
Returns
Type
Description
$this

getParent

The full name of the immediate parent of this resource. See Resource Names for more information.

For Google Cloud assets, this value is the parent resource defined in the Cloud IAM policy hierarchy . Example: //cloudresourcemanager.googleapis.com/projects/my_project_123 For third-party assets, this field may be set differently.

Generated from protobuf field string parent = 5;

Returns
Type
Description
string

setParent

The full name of the immediate parent of this resource. See Resource Names for more information.

For Google Cloud assets, this value is the parent resource defined in the Cloud IAM policy hierarchy . Example: //cloudresourcemanager.googleapis.com/projects/my_project_123 For third-party assets, this field may be set differently.

Generated from protobuf field string parent = 5;

Parameter
Name
Description
var
string
Returns
Type
Description
$this

getData

The content of the resource, in which some sensitive fields are removed and may not be present.

Generated from protobuf field .google.protobuf.Struct data = 6;

Returns
Type
Description
Google\Protobuf\Struct|null

hasData

clearData

setData

The content of the resource, in which some sensitive fields are removed and may not be present.

Generated from protobuf field .google.protobuf.Struct data = 6;

Parameter
Name
Description
var
Google\Protobuf\Struct
Returns
Type
Description
$this

getLocation

The location of the resource in Google Cloud, such as its zone and region.

For more information, see https://cloud.google.com/about/locations/ .

Generated from protobuf field string location = 8;

Returns
Type
Description
string

setLocation

The location of the resource in Google Cloud, such as its zone and region.

For more information, see https://cloud.google.com/about/locations/ .

Generated from protobuf field string location = 8;

Parameter
Name
Description
var
string
Returns
Type
Description
$this
Design a Mobile Site
View Site in Mobile | Classic
Share by: