共用方式為


ServiceResource Class

Definition

The resource representation of a service in a service topology.

[Microsoft.Rest.Serialization.JsonTransformation]
public class ServiceResource : Microsoft.Azure.Management.DeploymentManager.Models.TrackedResource
[<Microsoft.Rest.Serialization.JsonTransformation>]
type ServiceResource = class
    inherit TrackedResource
Public Class ServiceResource
Inherits TrackedResource
Inheritance
ServiceResource
Attributes

Constructors

ServiceResource()

Initializes a new instance of the ServiceResource class.

ServiceResource(String, String, String, String, String, String, IDictionary<String,String>)

Initializes a new instance of the ServiceResource class.

Properties

Id

Gets fully qualified resource Id for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}

(Inherited from Resource)
Location

Gets or sets the geo-location where the resource lives

(Inherited from TrackedResource)
Name

Gets the name of the resource

(Inherited from Resource)
Tags

Gets or sets resource tags.

(Inherited from TrackedResource)
TargetLocation

Gets or sets the Azure location to which the resources in the service belong to or should be deployed to.

TargetSubscriptionId

Gets or sets the subscription to which the resources in the service belong to or should be deployed to.

Type

Gets the type of the resource. Ex- Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts.

(Inherited from Resource)

Methods

Validate()

Validate the object.

Applies to