Class: Google::Apis::SecuritycenterV1beta1::AzureMetadata

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

Azure metadata associated with the resource, only applicable if the finding's cloud provider is Microsoft Azure.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ AzureMetadata

Returns a new instance of AzureMetadata.



653
654
655
# File 'lib/google/apis/securitycenter_v1beta1/classes.rb', line 653

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

Instance Attribute Details

#management_groupsArray<Google::Apis::SecuritycenterV1beta1::AzureManagementGroup>

A list of Azure management groups associated with the resource, ordered from lowest level (closest to the subscription) to highest level. Corresponds to the JSON property managementGroups



641
642
643
# File 'lib/google/apis/securitycenter_v1beta1/classes.rb', line 641

def management_groups
  @management_groups
end

#resource_groupGoogle::Apis::SecuritycenterV1beta1::AzureResourceGroup

Represents an Azure resource group. Corresponds to the JSON property resourceGroup



646
647
648
# File 'lib/google/apis/securitycenter_v1beta1/classes.rb', line 646

def resource_group
  @resource_group
end

#subscriptionGoogle::Apis::SecuritycenterV1beta1::AzureSubscription

Represents an Azure subscription. Corresponds to the JSON property subscription



651
652
653
# File 'lib/google/apis/securitycenter_v1beta1/classes.rb', line 651

def subscription
  @subscription
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



658
659
660
661
662
# File 'lib/google/apis/securitycenter_v1beta1/classes.rb', line 658

def update!(**args)
  @management_groups = args[:management_groups] if args.key?(:management_groups)
  @resource_group = args[:resource_group] if args.key?(:resource_group)
  @subscription = args[:subscription] if args.key?(:subscription)
end