Google Cloud Asset Inventory v1 API - Class Resource (3.5.0)

public sealed class Resource : IMessage<Resource>, IEquatable<Resource>, IDeepCloneable<Resource>, IBufferMessage, IMessage

Reference documentation and code samples for the Google Cloud Asset Inventory v1 API class Resource.

A representation of a Google Cloud resource.

Inheritance

object > Resource

Namespace

GoogleCloudGoogle.Cloud.AssetV1

Assembly

Google.Cloud.Asset.V1.dll

Constructors

Resource()

public Resource()

Resource(Resource)

public Resource(Resource other)
Parameter
NameDescription
otherResource

Properties

Data

public Struct Data { get; set; }

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

Property Value
TypeDescription
Struct

DiscoveryDocumentUri

public string DiscoveryDocumentUri { get; set; }

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.

Property Value
TypeDescription
string

DiscoveryName

public string DiscoveryName { get; set; }

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.

Property Value
TypeDescription
string

Location

public string Location { get; set; }

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

Property Value
TypeDescription
string

Parent

public string Parent { get; set; }

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 IAM policy hierarchy. Example: //cloudresourcemanager.googleapis.com/projects/my_project_123

For third-party assets, this field may be set differently.

Property Value
TypeDescription
string

ResourceUrl

public string ResourceUrl { get; set; }

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.

Property Value
TypeDescription
string

Version

public string Version { get; set; }

The API version. Example: v1

Property Value
TypeDescription
string