Google Cloud Security Command Center V1 Client - Class AzureMetadata (1.32.0)

Reference documentation and code samples for the Google Cloud Security Command Center V1 Client class AzureMetadata.

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

Generated from protobuf message google.cloud.securitycenter.v1.AzureMetadata

Namespace

Google \ Cloud \ SecurityCenter \ V1

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ management_groups array<Google\Cloud\SecurityCenter\V1\AzureMetadata\AzureManagementGroup>

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

↳ subscription Google\Cloud\SecurityCenter\V1\AzureMetadata\AzureSubscription

The Azure subscription associated with the resource.

↳ resource_group Google\Cloud\SecurityCenter\V1\AzureMetadata\AzureResourceGroup

The Azure resource group associated with the resource.

getManagementGroups

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

Returns
Type Description
Google\Protobuf\Internal\RepeatedField

setManagementGroups

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

Parameter
Name Description
var array<Google\Cloud\SecurityCenter\V1\AzureMetadata\AzureManagementGroup>
Returns
Type Description
$this

getSubscription

The Azure subscription associated with the resource.

Returns
Type Description
Google\Cloud\SecurityCenter\V1\AzureMetadata\AzureSubscription|null

hasSubscription

clearSubscription

setSubscription

The Azure subscription associated with the resource.

Parameter
Name Description
var Google\Cloud\SecurityCenter\V1\AzureMetadata\AzureSubscription
Returns
Type Description
$this

getResourceGroup

The Azure resource group associated with the resource.

Returns
Type Description
Google\Cloud\SecurityCenter\V1\AzureMetadata\AzureResourceGroup|null

hasResourceGroup

clearResourceGroup

setResourceGroup

The Azure resource group associated with the resource.

Parameter
Name Description
var Google\Cloud\SecurityCenter\V1\AzureMetadata\AzureResourceGroup
Returns
Type Description
$this