Resource Class

An azure resource object.

Variables are only populated by the server, and will be ignored when sending a request.

All required parameters must be populated in order to send to Azure.

Inheritance
Resource

Constructor

Resource(*, location: str, tags: Optional[Dict[str, str]] = None, **kwargs)

Variables

id
str

Azure resource Id.

name
str

Azure resource name.

type
str

Azure resource type.

location
str

Required. Resource location.

tags
dict[str, str]

A set of tags. Resource tags.

kind
str

Metadata used by portal/tooling/etc to render different UX experiences for resources of the same type; e.g. ApiApps are a kind of Microsoft.Web/sites type. If supported, the resource provider must validate and persist this value.

etag
str

The etag field is not required. If it is provided in the response body, it must also be provided as a header per the normal etag convention. Entity tags are used for comparing two or more entities from the same requested resource. HTTP/1.1 uses entity tags in the etag (section 14.19), If-Match (section 14.24), If-None-Match (section 14.26), and If-Range (section 14.27) header fields.