GoogleApi.CloudAsset.V1.Model.Resource (google_api_cloud_asset v0.31.2) View Source

A representation of a Google Cloud resource.

Attributes

  • data (type: map(), default: nil) - The content of the resource, in which some sensitive fields are removed and may not be present.
  • discoveryDocumentUri (type: String.t, default: nil) - 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.
  • discoveryName (type: String.t, default: nil) - 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.
  • location (type: String.t, default: nil) - The location of the resource in Google Cloud, such as its zone and region. For more information, see https://cloud.google.com/about/locations/.
  • parent (type: String.t, default: nil) - 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.
  • resourceUrl (type: String.t, default: nil) - 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.
  • version (type: String.t, default: nil) - The API version. Example: v1

Link to this section Summary

Functions

Unwrap a decoded JSON object into its complex fields.

Link to this section Types

Specs

t() :: %GoogleApi.CloudAsset.V1.Model.Resource{
  data: map() | nil,
  discoveryDocumentUri: String.t() | nil,
  discoveryName: String.t() | nil,
  location: String.t() | nil,
  parent: String.t() | nil,
  resourceUrl: String.t() | nil,
  version: String.t() | nil
}

Link to this section Functions

Specs

decode(struct(), keyword()) :: struct()

Unwrap a decoded JSON object into its complex fields.