Compartilhar via


Resource Class

An azure resource object.

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

Constructor

Resource(*, location: str | None = None, etag: str | None = None, tags: dict[str, str] | None = None, **kwargs: Any)

Keyword-Only Parameters

Name Description
location
str

The location of the resource.

Default value: None
etag
str

This will be used to handle Optimistic Concurrency. If not present, it will always overwrite the existing resource without checking conflict.

Default value: None
tags

Resource tags.

Default value: None

Variables

Name Description
id
str

Azure resource Id.

name
str

Azure resource name. This is GUID value. The display name should be assigned within properties field.

location
str

The location of the resource.

type
str

Azure resource type.

etag
str

This will be used to handle Optimistic Concurrency. If not present, it will always overwrite the existing resource without checking conflict.

tags

Resource tags.