Interface OSPolicy.ResourceGroupOrBuilder (2.5.2)

Stay organized with collections Save and categorize content based on your preferences.
public static interface OSPolicy.ResourceGroupOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

getInventoryFilters(int index)

public abstract OSPolicy.InventoryFilter getInventoryFilters(int index)

List of inventory filters for the resource group. The resources in this resource group are applied to the target VM if it satisfies at least one of the following inventory filters. For example, to apply this resource group to VMs running either RHEL or CentOS operating systems, specify 2 items for the list with following values: inventory_filters[0].os_short_name='rhel' and inventory_filters[1].os_short_name='centos' If the list is empty, this resource group will be applied to the target VM unconditionally.

repeated .google.cloud.osconfig.v1.OSPolicy.InventoryFilter inventory_filters = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
OSPolicy.InventoryFilter

getInventoryFiltersCount()

public abstract int getInventoryFiltersCount()

List of inventory filters for the resource group. The resources in this resource group are applied to the target VM if it satisfies at least one of the following inventory filters. For example, to apply this resource group to VMs running either RHEL or CentOS operating systems, specify 2 items for the list with following values: inventory_filters[0].os_short_name='rhel' and inventory_filters[1].os_short_name='centos' If the list is empty, this resource group will be applied to the target VM unconditionally.

repeated .google.cloud.osconfig.v1.OSPolicy.InventoryFilter inventory_filters = 1;

Returns
TypeDescription
int

getInventoryFiltersList()

public abstract List<OSPolicy.InventoryFilter> getInventoryFiltersList()

List of inventory filters for the resource group. The resources in this resource group are applied to the target VM if it satisfies at least one of the following inventory filters. For example, to apply this resource group to VMs running either RHEL or CentOS operating systems, specify 2 items for the list with following values: inventory_filters[0].os_short_name='rhel' and inventory_filters[1].os_short_name='centos' If the list is empty, this resource group will be applied to the target VM unconditionally.

repeated .google.cloud.osconfig.v1.OSPolicy.InventoryFilter inventory_filters = 1;

Returns
TypeDescription
List<InventoryFilter>

getInventoryFiltersOrBuilder(int index)

public abstract OSPolicy.InventoryFilterOrBuilder getInventoryFiltersOrBuilder(int index)

List of inventory filters for the resource group. The resources in this resource group are applied to the target VM if it satisfies at least one of the following inventory filters. For example, to apply this resource group to VMs running either RHEL or CentOS operating systems, specify 2 items for the list with following values: inventory_filters[0].os_short_name='rhel' and inventory_filters[1].os_short_name='centos' If the list is empty, this resource group will be applied to the target VM unconditionally.

repeated .google.cloud.osconfig.v1.OSPolicy.InventoryFilter inventory_filters = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
OSPolicy.InventoryFilterOrBuilder

getInventoryFiltersOrBuilderList()

public abstract List<? extends OSPolicy.InventoryFilterOrBuilder> getInventoryFiltersOrBuilderList()

List of inventory filters for the resource group. The resources in this resource group are applied to the target VM if it satisfies at least one of the following inventory filters. For example, to apply this resource group to VMs running either RHEL or CentOS operating systems, specify 2 items for the list with following values: inventory_filters[0].os_short_name='rhel' and inventory_filters[1].os_short_name='centos' If the list is empty, this resource group will be applied to the target VM unconditionally.

repeated .google.cloud.osconfig.v1.OSPolicy.InventoryFilter inventory_filters = 1;

Returns
TypeDescription
List<? extends com.google.cloud.osconfig.v1.OSPolicy.InventoryFilterOrBuilder>

getResources(int index)

public abstract OSPolicy.Resource getResources(int index)

Required. List of resources configured for this resource group. The resources are executed in the exact order specified here.

repeated .google.cloud.osconfig.v1.OSPolicy.Resource resources = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
indexint
Returns
TypeDescription
OSPolicy.Resource

getResourcesCount()

public abstract int getResourcesCount()

Required. List of resources configured for this resource group. The resources are executed in the exact order specified here.

repeated .google.cloud.osconfig.v1.OSPolicy.Resource resources = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
int

getResourcesList()

public abstract List<OSPolicy.Resource> getResourcesList()

Required. List of resources configured for this resource group. The resources are executed in the exact order specified here.

repeated .google.cloud.osconfig.v1.OSPolicy.Resource resources = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
List<Resource>

getResourcesOrBuilder(int index)

public abstract OSPolicy.ResourceOrBuilder getResourcesOrBuilder(int index)

Required. List of resources configured for this resource group. The resources are executed in the exact order specified here.

repeated .google.cloud.osconfig.v1.OSPolicy.Resource resources = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
indexint
Returns
TypeDescription
OSPolicy.ResourceOrBuilder

getResourcesOrBuilderList()

public abstract List<? extends OSPolicy.ResourceOrBuilder> getResourcesOrBuilderList()

Required. List of resources configured for this resource group. The resources are executed in the exact order specified here.

repeated .google.cloud.osconfig.v1.OSPolicy.Resource resources = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
List<? extends com.google.cloud.osconfig.v1.OSPolicy.ResourceOrBuilder>