共用方式為


GenericResource Interface

Implements

public interface GenericResource
extends GroupableResource<ResourceManager,GenericResourceInner>, Refreshable<GenericResource>, Updatable<Update>

An immutable client-side representation of an Azure generic resource.

Method Summary

Modifier and Type Method and Description
abstract String apiVersion()

Gets the api version of the resource.

abstract Identity identity()

Gets the managed identity of the resource.

abstract String kind()

Gets the kind of the resource.

abstract String managedBy()

Gets the ID of the resource that manages this resource.

abstract String parentResourcePath()

Gets the id of the parent resource if this is a child resource.

abstract Plan plan()

Gets the plan of the resource.

abstract Object properties()

Gets other properties of the resource.

abstract String resourceProviderNamespace()

Gets the namespace of the resource provider.

abstract String resourceType()

Gets the type of the resource.

abstract Sku sku()

Gets the SKU of the resource.

Method Details

apiVersion

public abstract String apiVersion()

Gets the api version of the resource.

Returns:

the api version of the resource

identity

public abstract Identity identity()

Gets the managed identity of the resource.

Returns:

the managed identity of the resource

kind

public abstract String kind()

Gets the kind of the resource.

Returns:

the kind of the resource

managedBy

public abstract String managedBy()

Gets the ID of the resource that manages this resource.

Returns:

the ID of the resource that manages this resource

parentResourcePath

public abstract String parentResourcePath()

Gets the id of the parent resource if this is a child resource.

Returns:

the id of the parent resource if this is a child resource

plan

public abstract Plan plan()

Gets the plan of the resource.

Returns:

the plan of the resource

properties

public abstract Object properties()

Gets other properties of the resource.

Returns:

other properties of the resource

resourceProviderNamespace

public abstract String resourceProviderNamespace()

Gets the namespace of the resource provider.

Returns:

the namespace of the resource provider

resourceType

public abstract String resourceType()

Gets the type of the resource.

Returns:

the type of the resource

sku

public abstract Sku sku()

Gets the SKU of the resource.

Returns:

the SKU of the resource

Applies to