Class: Google::Apis::SecuritycenterV1beta1::GoogleCloudSecuritycenterV2IssueResource

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

A resource associated with the an issue.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudSecuritycenterV2IssueResource

Returns a new instance of GoogleCloudSecuritycenterV2IssueResource.



6647
6648
6649
# File 'lib/google/apis/securitycenter_v1beta1/classes.rb', line 6647

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

Instance Attribute Details

#aws_metadataGoogle::Apis::SecuritycenterV1beta1::GoogleCloudSecuritycenterV2IssueResourceAwsMetadata

The AWS metadata of a resource associated with an issue. Corresponds to the JSON property awsMetadata



6614
6615
6616
# File 'lib/google/apis/securitycenter_v1beta1/classes.rb', line 6614

def 
  @aws_metadata
end

#azure_metadataGoogle::Apis::SecuritycenterV1beta1::GoogleCloudSecuritycenterV2IssueResourceAzureMetadata

The Azure metadata of a resource associated with an issue. Corresponds to the JSON property azureMetadata



6619
6620
6621
# File 'lib/google/apis/securitycenter_v1beta1/classes.rb', line 6619

def 
  @azure_metadata
end

#cloud_providerString

The cloud provider of the resource associated with the issue. Corresponds to the JSON property cloudProvider

Returns:

  • (String)


6624
6625
6626
# File 'lib/google/apis/securitycenter_v1beta1/classes.rb', line 6624

def cloud_provider
  @cloud_provider
end

#display_nameString

The resource-type specific display name of the resource associated with the issue. Corresponds to the JSON property displayName

Returns:

  • (String)


6630
6631
6632
# File 'lib/google/apis/securitycenter_v1beta1/classes.rb', line 6630

def display_name
  @display_name
end

#google_cloud_metadataGoogle::Apis::SecuritycenterV1beta1::GoogleCloudSecuritycenterV2IssueResourceGoogleCloudMetadata

Google Cloud metadata of a resource associated with an issue. Corresponds to the JSON property googleCloudMetadata



6635
6636
6637
# File 'lib/google/apis/securitycenter_v1beta1/classes.rb', line 6635

def 
  @google_cloud_metadata
end

#nameString

The full resource name of the resource associated with the issue. Corresponds to the JSON property name

Returns:

  • (String)


6640
6641
6642
# File 'lib/google/apis/securitycenter_v1beta1/classes.rb', line 6640

def name
  @name
end

#typeString

The type of the resource associated with the issue. Corresponds to the JSON property type

Returns:

  • (String)


6645
6646
6647
# File 'lib/google/apis/securitycenter_v1beta1/classes.rb', line 6645

def type
  @type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



6652
6653
6654
6655
6656
6657
6658
6659
6660
# File 'lib/google/apis/securitycenter_v1beta1/classes.rb', line 6652

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)
  @google_cloud_metadata = args[:google_cloud_metadata] if args.key?(:google_cloud_metadata)
  @name = args[:name] if args.key?(:name)
  @type = args[:type] if args.key?(:type)
end