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

2.5.1 (latest) 2.5.0 2.4.2 2.3.0 2.2.1 2.1.1 2.0.4 1.32.0 1.31.0 1.30.0 1.29.0 1.28.2 1.21.0 1.20.2 1.19.1 1.18.0 1.17.0 1.16.0 1.15.1 1.14.2 1.13.1 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<https://docs.cloud.google.com/php/docs/reference/cloud-security-center/latest/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` | `https://docs.cloud.google.com/php/docs/reference/cloud-security-center/latest/V1.AzureMetadata.AzureSubscription` The Azure subscription associated with the resource. |
| `↳ resource_group` | `https://docs.cloud.google.com/php/docs/reference/cloud-security-center/latest/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** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/RepeatedField<https://docs.cloud.google.com/php/docs/reference/cloud-security-center/latest/V1.AzureMetadata.AzureManagementGroup>` |   |

### 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<https://docs.cloud.google.com/php/docs/reference/cloud-security-center/latest/V1.AzureMetadata.AzureManagementGroup>` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getSubscription

The Azure subscription associated with the resource.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-security-center/latest/V1.AzureMetadata.AzureSubscription|null` |   |

### hasSubscription

### clearSubscription

### setSubscription

The Azure subscription associated with the resource.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-security-center/latest/V1.AzureMetadata.AzureSubscription` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getResourceGroup

The Azure resource group associated with the resource.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-security-center/latest/V1.AzureMetadata.AzureResourceGroup|null` |   |

### hasResourceGroup

### clearResourceGroup

### setResourceGroup

The Azure resource group associated with the resource.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-security-center/latest/V1.AzureMetadata.AzureResourceGroup` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |