google_api_cloud_asset v0.4.0 GoogleApi.CloudAsset.V1.Model.Resource View Source

Representation of a cloud resource.

Attributes

  • data (type: map(), default: nil) - The content of the resource, in which some sensitive fields are scrubbed away and may not be present.

  • discoveryDocumentUri (type: String.t, default: nil) - 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.

  • discoveryName (type: String.t, default: nil) - 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.

  • parent (type: String.t, default: nil) - 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.

  • resourceUrl (type: String.t, default: nil) - 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.

  • 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

Link to this type

t()

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

Link to this section Functions

Link to this function

decode(value, options)

View Source
decode(struct(), keyword()) :: struct()

Unwrap a decoded JSON object into its complex fields.