Cloud Security Command Center V1 API - Class Google::Cloud::SecurityCenter::V1::Resource (v1.3.0)

Reference documentation and code samples for the Cloud Security Command Center V1 API class Google::Cloud::SecurityCenter::V1::Resource.

Information related to the Google Cloud resource.

Inherits

Extended By

  • Google::Protobuf::MessageExts::ClassMethods

Includes

  • Google::Protobuf::MessageExts

Methods

#aws_metadata

def aws_metadata() -> ::Google::Cloud::SecurityCenter::V1::AwsMetadata
Returns

#aws_metadata=

def aws_metadata=(value) -> ::Google::Cloud::SecurityCenter::V1::AwsMetadata
Parameter
Returns

#azure_metadata

def azure_metadata() -> ::Google::Cloud::SecurityCenter::V1::AzureMetadata
Returns

#azure_metadata=

def azure_metadata=(value) -> ::Google::Cloud::SecurityCenter::V1::AzureMetadata
Parameter
Returns

#cloud_provider

def cloud_provider() -> ::Google::Cloud::SecurityCenter::V1::CloudProvider
Returns

#cloud_provider=

def cloud_provider=(value) -> ::Google::Cloud::SecurityCenter::V1::CloudProvider
Parameter
Returns

#display_name

def display_name() -> ::String
Returns
  • (::String) — The human readable name of the resource.

#display_name=

def display_name=(value) -> ::String
Parameter
  • value (::String) — The human readable name of the resource.
Returns
  • (::String) — The human readable name of the resource.

#folders

def folders() -> ::Array<::Google::Cloud::SecurityCenter::V1::Folder>
Returns
  • (::Array<::Google::Cloud::SecurityCenter::V1::Folder>) — Output only. Contains a Folder message for each folder in the assets ancestry. The first folder is the deepest nested folder, and the last folder is the folder directly under the Organization.

#location

def location() -> ::String
Returns
  • (::String) — The region or location of the service (if applicable).

#location=

def location=(value) -> ::String
Parameter
  • value (::String) — The region or location of the service (if applicable).
Returns
  • (::String) — The region or location of the service (if applicable).

#name

def name() -> ::String
Returns
  • (::String) — The full resource name of the resource. See: https://cloud.google.com/apis/design/resource_names#full_resource_name

#name=

def name=(value) -> ::String
Parameter
  • value (::String) — The full resource name of the resource. See: https://cloud.google.com/apis/design/resource_names#full_resource_name
Returns
  • (::String) — The full resource name of the resource. See: https://cloud.google.com/apis/design/resource_names#full_resource_name

#organization

def organization() -> ::String
Returns
  • (::String) — Indicates which organization or tenant in the cloud provider the finding applies to.

#organization=

def organization=(value) -> ::String
Parameter
  • value (::String) — Indicates which organization or tenant in the cloud provider the finding applies to.
Returns
  • (::String) — Indicates which organization or tenant in the cloud provider the finding applies to.

#parent

def parent() -> ::String
Returns
  • (::String) — The full resource name of resource's parent.

#parent=

def parent=(value) -> ::String
Parameter
  • value (::String) — The full resource name of resource's parent.
Returns
  • (::String) — The full resource name of resource's parent.

#parent_display_name

def parent_display_name() -> ::String
Returns
  • (::String) — The human readable name of resource's parent.

#parent_display_name=

def parent_display_name=(value) -> ::String
Parameter
  • value (::String) — The human readable name of resource's parent.
Returns
  • (::String) — The human readable name of resource's parent.

#project

def project() -> ::String
Returns
  • (::String) — The full resource name of project that the resource belongs to.

#project=

def project=(value) -> ::String
Parameter
  • value (::String) — The full resource name of project that the resource belongs to.
Returns
  • (::String) — The full resource name of project that the resource belongs to.

#project_display_name

def project_display_name() -> ::String
Returns
  • (::String) — The project ID that the resource belongs to.

#project_display_name=

def project_display_name=(value) -> ::String
Parameter
  • value (::String) — The project ID that the resource belongs to.
Returns
  • (::String) — The project ID that the resource belongs to.

#resource_path

def resource_path() -> ::Google::Cloud::SecurityCenter::V1::ResourcePath
Returns

#resource_path=

def resource_path=(value) -> ::Google::Cloud::SecurityCenter::V1::ResourcePath
Parameter
Returns

#resource_path_string

def resource_path_string() -> ::String
Returns
  • (::String) — A string representation of the resource path. For Google Cloud, it has the format of organizations/{organization_id}/folders/{folder_id}/folders/{folder_id}/projects/{project_id} where there can be any number of folders. For AWS, it has the format of org/{organization_id}/ou/{organizational_unit_id}/ou/{organizational_unit_id}/account/{account_id} where there can be any number of organizational units. For Azure, it has the format of mg/{management_group_id}/mg/{management_group_id}/subscription/{subscription_id}/rg/{resource_group_name} where there can be any number of management groups.

#resource_path_string=

def resource_path_string=(value) -> ::String
Parameter
  • value (::String) — A string representation of the resource path. For Google Cloud, it has the format of organizations/{organization_id}/folders/{folder_id}/folders/{folder_id}/projects/{project_id} where there can be any number of folders. For AWS, it has the format of org/{organization_id}/ou/{organizational_unit_id}/ou/{organizational_unit_id}/account/{account_id} where there can be any number of organizational units. For Azure, it has the format of mg/{management_group_id}/mg/{management_group_id}/subscription/{subscription_id}/rg/{resource_group_name} where there can be any number of management groups.
Returns
  • (::String) — A string representation of the resource path. For Google Cloud, it has the format of organizations/{organization_id}/folders/{folder_id}/folders/{folder_id}/projects/{project_id} where there can be any number of folders. For AWS, it has the format of org/{organization_id}/ou/{organizational_unit_id}/ou/{organizational_unit_id}/account/{account_id} where there can be any number of organizational units. For Azure, it has the format of mg/{management_group_id}/mg/{management_group_id}/subscription/{subscription_id}/rg/{resource_group_name} where there can be any number of management groups.

#service

def service() -> ::String
Returns
  • (::String) — The parent service or product from which the resource is provided, for example, GKE or SNS.

#service=

def service=(value) -> ::String
Parameter
  • value (::String) — The parent service or product from which the resource is provided, for example, GKE or SNS.
Returns
  • (::String) — The parent service or product from which the resource is provided, for example, GKE or SNS.

#type

def type() -> ::String
Returns
  • (::String) — The full resource type of the resource.

#type=

def type=(value) -> ::String
Parameter
  • value (::String) — The full resource type of the resource.
Returns
  • (::String) — The full resource type of the resource.