Class: Google::Apis::SecuritycenterV1beta1::GoogleCloudSecuritycenterV2Resource

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/securitycenter_v1beta1/classes.rb,
lib/google/apis/securitycenter_v1beta1/representations.rb,
lib/google/apis/securitycenter_v1beta1/representations.rb

Overview

Information related to the Google Cloud resource.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudSecuritycenterV2Resource

Returns a new instance of GoogleCloudSecuritycenterV2Resource.



7787
7788
7789
# File 'lib/google/apis/securitycenter_v1beta1/classes.rb', line 7787

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#aws_metadataGoogle::Apis::SecuritycenterV1beta1::GoogleCloudSecuritycenterV2AwsMetadata

AWS metadata associated with the resource, only applicable if the finding's cloud provider is Amazon Web Services. Corresponds to the JSON property awsMetadata



7723
7724
7725
# File 'lib/google/apis/securitycenter_v1beta1/classes.rb', line 7723

def 
  @aws_metadata
end

#azure_metadataGoogle::Apis::SecuritycenterV1beta1::GoogleCloudSecuritycenterV2AzureMetadata

Azure metadata associated with the resource, only applicable if the finding's cloud provider is Microsoft Azure. Corresponds to the JSON property azureMetadata



7729
7730
7731
# File 'lib/google/apis/securitycenter_v1beta1/classes.rb', line 7729

def 
  @azure_metadata
end

#cloud_providerString

Indicates which cloud provider the finding is from. Corresponds to the JSON property cloudProvider

Returns:

  • (String)


7734
7735
7736
# File 'lib/google/apis/securitycenter_v1beta1/classes.rb', line 7734

def cloud_provider
  @cloud_provider
end

#display_nameString

The human readable name of the resource. Corresponds to the JSON property displayName

Returns:

  • (String)


7739
7740
7741
# File 'lib/google/apis/securitycenter_v1beta1/classes.rb', line 7739

def display_name
  @display_name
end

#gcp_metadataGoogle::Apis::SecuritycenterV1beta1::GcpMetadata

GCP metadata associated with the resource, only applicable if the finding's cloud provider is Google Cloud Platform. Corresponds to the JSON property gcpMetadata



7745
7746
7747
# File 'lib/google/apis/securitycenter_v1beta1/classes.rb', line 7745

def 
  @gcp_metadata
end

#locationString

The region or location of the service (if applicable). Corresponds to the JSON property location

Returns:

  • (String)


7750
7751
7752
# File 'lib/google/apis/securitycenter_v1beta1/classes.rb', line 7750

def location
  @location
end

#nameString

The full resource name of the resource. See: https://cloud.google.com/apis/ design/resource_names#full_resource_name Corresponds to the JSON property name

Returns:

  • (String)


7756
7757
7758
# File 'lib/google/apis/securitycenter_v1beta1/classes.rb', line 7756

def name
  @name
end

#resource_pathGoogle::Apis::SecuritycenterV1beta1::GoogleCloudSecuritycenterV2ResourcePath

Represents the path of resources leading up to the resource this finding is about. Corresponds to the JSON property resourcePath



7762
7763
7764
# File 'lib/google/apis/securitycenter_v1beta1/classes.rb', line 7762

def resource_path
  @resource_path
end

#resource_path_stringString

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_idwhere 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. Corresponds to the JSON propertyresourcePathString`

Returns:

  • (String)


7775
7776
7777
# File 'lib/google/apis/securitycenter_v1beta1/classes.rb', line 7775

def resource_path_string
  @resource_path_string
end

#serviceString

The service or resource provider associated with the resource. Corresponds to the JSON property service

Returns:

  • (String)


7780
7781
7782
# File 'lib/google/apis/securitycenter_v1beta1/classes.rb', line 7780

def service
  @service
end

#typeString

The full resource type of the resource. Corresponds to the JSON property type

Returns:

  • (String)


7785
7786
7787
# File 'lib/google/apis/securitycenter_v1beta1/classes.rb', line 7785

def type
  @type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



7792
7793
7794
7795
7796
7797
7798
7799
7800
7801
7802
7803
7804
# File 'lib/google/apis/securitycenter_v1beta1/classes.rb', line 7792

def update!(**args)
  @aws_metadata = args[:aws_metadata] if args.key?(:aws_metadata)
  @azure_metadata = args[:azure_metadata] if args.key?(:azure_metadata)
  @cloud_provider = args[:cloud_provider] if args.key?(:cloud_provider)
  @display_name = args[:display_name] if args.key?(:display_name)
  @gcp_metadata = args[:gcp_metadata] if args.key?(:gcp_metadata)
  @location = args[:location] if args.key?(:location)
  @name = args[:name] if args.key?(:name)
  @resource_path = args[:resource_path] if args.key?(:resource_path)
  @resource_path_string = args[:resource_path_string] if args.key?(:resource_path_string)
  @service = args[:service] if args.key?(:service)
  @type = args[:type] if args.key?(:type)
end