Class: Google::Apis::SecuritycenterV1beta2::GoogleCloudSecuritycenterV2Resource
- Inherits:
-
Object
- Object
- Google::Apis::SecuritycenterV1beta2::GoogleCloudSecuritycenterV2Resource
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/securitycenter_v1beta2/classes.rb,
lib/google/apis/securitycenter_v1beta2/representations.rb,
lib/google/apis/securitycenter_v1beta2/representations.rb
Overview
Information related to the Google Cloud resource.
Instance Attribute Summary collapse
-
#aws_metadata ⇒ Google::Apis::SecuritycenterV1beta2::GoogleCloudSecuritycenterV2AwsMetadata
AWS metadata associated with the resource, only applicable if the finding's cloud provider is Amazon Web Services.
-
#azure_metadata ⇒ Google::Apis::SecuritycenterV1beta2::GoogleCloudSecuritycenterV2AzureMetadata
Azure metadata associated with the resource, only applicable if the finding's cloud provider is Microsoft Azure.
-
#cloud_provider ⇒ String
Indicates which cloud provider the finding is from.
-
#display_name ⇒ String
The human readable name of the resource.
-
#gcp_metadata ⇒ Google::Apis::SecuritycenterV1beta2::GcpMetadata
GCP metadata associated with the resource, only applicable if the finding's cloud provider is Google Cloud Platform.
-
#location ⇒ String
The region or location of the service (if applicable).
-
#name ⇒ String
The full resource name of the resource.
-
#resource_path ⇒ Google::Apis::SecuritycenterV1beta2::GoogleCloudSecuritycenterV2ResourcePath
Represents the path of resources leading up to the resource this finding is about.
-
#resource_path_string ⇒ String
A string representation of the resource path.
-
#service ⇒ String
The service or resource provider associated with the resource.
-
#type ⇒ String
The full resource type of the resource.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudSecuritycenterV2Resource
constructor
A new instance of GoogleCloudSecuritycenterV2Resource.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudSecuritycenterV2Resource
Returns a new instance of GoogleCloudSecuritycenterV2Resource.
6846 6847 6848 |
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 6846 def initialize(**args) update!(**args) end |
Instance Attribute Details
#aws_metadata ⇒ Google::Apis::SecuritycenterV1beta2::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
6782 6783 6784 |
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 6782 def @aws_metadata end |
#azure_metadata ⇒ Google::Apis::SecuritycenterV1beta2::GoogleCloudSecuritycenterV2AzureMetadata
Azure metadata associated with the resource, only applicable if the finding's
cloud provider is Microsoft Azure.
Corresponds to the JSON property azureMetadata
6788 6789 6790 |
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 6788 def @azure_metadata end |
#cloud_provider ⇒ String
Indicates which cloud provider the finding is from.
Corresponds to the JSON property cloudProvider
6793 6794 6795 |
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 6793 def cloud_provider @cloud_provider end |
#display_name ⇒ String
The human readable name of the resource.
Corresponds to the JSON property displayName
6798 6799 6800 |
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 6798 def display_name @display_name end |
#gcp_metadata ⇒ Google::Apis::SecuritycenterV1beta2::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
6804 6805 6806 |
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 6804 def @gcp_metadata end |
#location ⇒ String
The region or location of the service (if applicable).
Corresponds to the JSON property location
6809 6810 6811 |
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 6809 def location @location end |
#name ⇒ String
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
6815 6816 6817 |
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 6815 def name @name end |
#resource_path ⇒ Google::Apis::SecuritycenterV1beta2::GoogleCloudSecuritycenterV2ResourcePath
Represents the path of resources leading up to the resource this finding is
about.
Corresponds to the JSON property resourcePath
6821 6822 6823 |
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 6821 def resource_path @resource_path end |
#resource_path_string ⇒ 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_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`
6834 6835 6836 |
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 6834 def resource_path_string @resource_path_string end |
#service ⇒ String
The service or resource provider associated with the resource.
Corresponds to the JSON property service
6839 6840 6841 |
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 6839 def service @service end |
#type ⇒ String
The full resource type of the resource.
Corresponds to the JSON property type
6844 6845 6846 |
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 6844 def type @type end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
6851 6852 6853 6854 6855 6856 6857 6858 6859 6860 6861 6862 6863 |
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 6851 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 |