Class: Google::Apis::SecuritycenterV1::Resource

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Resource

Returns a new instance of Resource.



12710
12711
12712
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 12710

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

Instance Attribute Details

#adc_applicationGoogle::Apis::SecuritycenterV1::AdcApplication

Corresponds to the JSON property adcApplication



12613
12614
12615
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 12613

def adc_application
  @adc_application
end

#adc_application_templateGoogle::Apis::SecuritycenterV1::AdcApplicationTemplateRevision

Corresponds to the JSON property adcApplicationTemplate



12618
12619
12620
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 12618

def adc_application_template
  @adc_application_template
end

#adc_shared_templateGoogle::Apis::SecuritycenterV1::AdcSharedTemplateRevision

Corresponds to the JSON property adcSharedTemplate



12623
12624
12625
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 12623

def adc_shared_template
  @adc_shared_template
end

#applicationGoogle::Apis::SecuritycenterV1::GoogleCloudSecuritycenterV1ResourceApplication

Corresponds to the JSON property application



12628
12629
12630
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 12628

def application
  @application
end

#aws_metadataGoogle::Apis::SecuritycenterV1::AwsMetadata

Corresponds to the JSON property awsMetadata



12633
12634
12635
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 12633

def 
  @aws_metadata
end

#azure_metadataGoogle::Apis::SecuritycenterV1::AzureMetadata

Corresponds to the JSON property azureMetadata



12638
12639
12640
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 12638

def 
  @azure_metadata
end

#cloud_providerString

Corresponds to the JSON property cloudProvider

Returns:

  • (String)


12643
12644
12645
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 12643

def cloud_provider
  @cloud_provider
end

#display_nameString

Corresponds to the JSON property displayName

Returns:

  • (String)


12648
12649
12650
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 12648

def display_name
  @display_name
end

#foldersArray<Google::Apis::SecuritycenterV1::Folder>

Corresponds to the JSON property folders



12653
12654
12655
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 12653

def folders
  @folders
end

#locationString

Corresponds to the JSON property location

Returns:

  • (String)


12658
12659
12660
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 12658

def location
  @location
end

#nameString

Corresponds to the JSON property name

Returns:

  • (String)


12663
12664
12665
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 12663

def name
  @name
end

#organizationString

Corresponds to the JSON property organization

Returns:

  • (String)


12668
12669
12670
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 12668

def organization
  @organization
end

#parent_display_nameString

Corresponds to the JSON property parentDisplayName

Returns:

  • (String)


12673
12674
12675
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 12673

def parent_display_name
  @parent_display_name
end

#parent_nameString

Corresponds to the JSON property parentName

Returns:

  • (String)


12678
12679
12680
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 12678

def parent_name
  @parent_name
end

#project_display_nameString

Corresponds to the JSON property projectDisplayName

Returns:

  • (String)


12683
12684
12685
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 12683

def project_display_name
  @project_display_name
end

#project_nameString

Corresponds to the JSON property projectName

Returns:

  • (String)


12688
12689
12690
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 12688

def project_name
  @project_name
end

#resource_pathGoogle::Apis::SecuritycenterV1::ResourcePath

Corresponds to the JSON property resourcePath



12693
12694
12695
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 12693

def resource_path
  @resource_path
end

#resource_path_stringString

Corresponds to the JSON property resourcePathString

Returns:

  • (String)


12698
12699
12700
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 12698

def resource_path_string
  @resource_path_string
end

#serviceString

Corresponds to the JSON property service

Returns:

  • (String)


12703
12704
12705
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 12703

def service
  @service
end

#typeString

Corresponds to the JSON property type

Returns:

  • (String)


12708
12709
12710
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 12708

def type
  @type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



12715
12716
12717
12718
12719
12720
12721
12722
12723
12724
12725
12726
12727
12728
12729
12730
12731
12732
12733
12734
12735
12736
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 12715

def update!(**args)
  @adc_application = args[:adc_application] if args.key?(:adc_application)
  @adc_application_template = args[:adc_application_template] if args.key?(:adc_application_template)
  @adc_shared_template = args[:adc_shared_template] if args.key?(:adc_shared_template)
  @application = args[:application] if args.key?(:application)
  @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)
  @folders = args[:folders] if args.key?(:folders)
  @location = args[:location] if args.key?(:location)
  @name = args[:name] if args.key?(:name)
  @organization = args[:organization] if args.key?(:organization)
  @parent_display_name = args[:parent_display_name] if args.key?(:parent_display_name)
  @parent_name = args[:parent_name] if args.key?(:parent_name)
  @project_display_name = args[:project_display_name] if args.key?(:project_display_name)
  @project_name = args[:project_name] if args.key?(:project_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