Class Resource
Representation of a cloud resource.
Inheritance
Inherited Members
Namespace: Google.Cloud.Asset.V1Beta1
Assembly: Google.Cloud.Asset.V1Beta1.dll
Syntax
public sealed class Resource : IMessage<Resource>, IMessage, IEquatable<Resource>, IDeepCloneable<Resource>
Constructors
Resource()
Declaration
public Resource()
Resource(Resource)
Declaration
public Resource(Resource other)
Parameters
Type | Name | Description |
---|---|---|
Resource | other |
Properties
Data
The content of the resource, in which some sensitive fields are scrubbed away and may not be present.
Declaration
public Struct Data { get; set; }
Property Value
Type | Description |
---|---|
Struct |
DiscoveryDocumentUri
The URL of the discovery document containing the resource's JSON schema.
For example:
"https://www.googleapis.com/discovery/v1/apis/compute/v1/rest"
.
It will be left unspecified for resources without a discovery-based API,
such as Cloud Bigtable.
Declaration
public string DiscoveryDocumentUri { get; set; }
Property Value
Type | Description |
---|---|
System.String |
DiscoveryName
The JSON schema name listed in the discovery document. Example: "Project". It will be left unspecified for resources (such as Cloud Bigtable) without a discovery-based API.
Declaration
public string DiscoveryName { get; set; }
Property Value
Type | Description |
---|---|
System.String |
Parent
The full name of the immediate parent of this resource. See Resource Names for more information.
For GCP assets, it is the parent resource defined in the Cloud IAM policy
hierarchy.
For example:
"//cloudresourcemanager.googleapis.com/projects/my_project_123"
.
For third-party assets, it is up to the users to define.
Declaration
public string Parent { get; set; }
Property Value
Type | Description |
---|---|
System.String |
ResourceUrl
The REST URL for accessing the resource. An HTTP GET operation using this
URL returns the resource itself.
Example:
https://cloudresourcemanager.googleapis.com/v1/projects/my-project-123
.
It will be left unspecified for resources without a REST API.
Declaration
public string ResourceUrl { get; set; }
Property Value
Type | Description |
---|---|
System.String |
Version
The API version. Example: "v1".
Declaration
public string Version { get; set; }
Property Value
Type | Description |
---|---|
System.String |