Reference documentation and code samples for the Google Cloud Security Command Center V2 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.v2.AzureMetadata
Namespace
Google \ Cloud \ SecurityCenter \ V2Methods
__construct
Constructor.
Parameters | |
---|---|
Name | Description |
data |
array
Optional. Data for populating the Message object. |
↳ management_groups |
array<AzureMetadata\AzureManagementGroup>
A list of Azure management groups associated with the resource, ordered from lowest level (closest to the subscription) to highest level. |
↳ subscription |
AzureMetadata\AzureSubscription
The Azure subscription associated with the resource. |
↳ resource_group |
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<AzureMetadata\AzureManagementGroup>
|
Returns | |
---|---|
Type | Description |
$this |
getSubscription
The Azure subscription associated with the resource.
Returns | |
---|---|
Type | Description |
AzureMetadata\AzureSubscription|null |
hasSubscription
clearSubscription
setSubscription
The Azure subscription associated with the resource.
Parameter | |
---|---|
Name | Description |
var |
AzureMetadata\AzureSubscription
|
Returns | |
---|---|
Type | Description |
$this |
getResourceGroup
The Azure resource group associated with the resource.
Returns | |
---|---|
Type | Description |
AzureMetadata\AzureResourceGroup|null |
hasResourceGroup
clearResourceGroup
setResourceGroup
The Azure resource group associated with the resource.
Parameter | |
---|---|
Name | Description |
var |
AzureMetadata\AzureResourceGroup
|
Returns | |
---|---|
Type | Description |
$this |