你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

ResourceModelWithAllowedPropertySet 类

定义

包含资源的完整允许属性集的资源模型定义。 除属性包外,此集之外不能有顶级属性。

public class ResourceModelWithAllowedPropertySet : Microsoft.Rest.Azure.IResource
type ResourceModelWithAllowedPropertySet = class
    interface IResource
Public Class ResourceModelWithAllowedPropertySet
Implements IResource
继承
ResourceModelWithAllowedPropertySet
实现

构造函数

ResourceModelWithAllowedPropertySet()

初始化 ResourceModelWithAllowedPropertySet 类的新实例。

ResourceModelWithAllowedPropertySet(String, String, String, String, String, String, String, IDictionary<String,String>, ResourceModelWithAllowedPropertySetIdentity, ResourceModelWithAllowedPropertySetSku, ResourceModelWithAllowedPropertySetPlan)

初始化 ResourceModelWithAllowedPropertySet 类的新实例。

属性

Etag

获取 etag 字段不 是必需的。 如果在响应正文中提供,则还必须根据正常的 etag 约定将其作为标头提供。 实体标记用于比较同一请求资源中的两个或多个实体。 HTTP/1.1 使用 etag (节 14.19) 、If-Match (第 14.24 节) 、If-None-Match (第 14.26 节) 和If-Range (第 14.27 节) 标头字段中的实体标记。

Id

获取资源的完全限定资源 ID。 例如 - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}

Identity

包含资源的完整允许属性集的资源模型定义。 除属性包外,此集之外不能有顶级属性。

Kind

获取或设置门户/工具/等用于呈现相同类型资源的不同 UX 体验的元数据;例如,ApiApps 是一种 Microsoft.Web/sites 类型。 如果支持,资源提供程序必须验证并保留此值。

Location

获取或设置资源所在的地理位置

ManagedBy

获取或设置管理此资源的资源的完全限定资源 ID。 指示此资源是否由另一个 Azure 资源管理。 如果存在这种情况,如果从模板中删除资源,则完整模式部署不会删除该资源,因为它由其他资源管理。

Name

获取资源的名称

Plan

包含资源的完整允许属性集的资源模型定义。 除属性包外,此集之外不能有顶级属性。

Sku

包含资源的完整允许属性集的资源模型定义。 除属性包外,此集之外不能有顶级属性。

Tags

获取或设置资源标记。

Type

获取资源的类型。 例如“Microsoft.Compute/virtualMachines”或“Microsoft.Storage/storageAccounts”

方法

Validate()

验证 对象。

适用于