Class Resource (2.11.0)

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

A representation of a Google Cloud resource.

Inheritance

Object > Resource

Namespace

Google.Cloud.Asset.V1

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 Cloud 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