Share via


PolicyTokenOperationInfo Class

Definition

The resource operation to acquire a token for.

public class PolicyTokenOperationInfo : System.ClientModel.Primitives.IJsonModel<Azure.ResourceManager.Resources.Policy.Models.PolicyTokenOperationInfo>, System.ClientModel.Primitives.IPersistableModel<Azure.ResourceManager.Resources.Policy.Models.PolicyTokenOperationInfo>
type PolicyTokenOperationInfo = class
    interface IJsonModel<PolicyTokenOperationInfo>
    interface IPersistableModel<PolicyTokenOperationInfo>
Public Class PolicyTokenOperationInfo
Implements IJsonModel(Of PolicyTokenOperationInfo), IPersistableModel(Of PolicyTokenOperationInfo)
Inheritance
PolicyTokenOperationInfo
Implements

Constructors

Name Description
PolicyTokenOperationInfo(String, String)

Initializes a new instance of PolicyTokenOperationInfo.

Properties

Name Description
Content

The payload of the resource operation.

To assign an object to this property use FromObjectAsJson<T>(T, JsonSerializerOptions).

To assign an already formatted json string to this property use FromString(String).

Examples:

  • BinaryData.FromObjectAsJson("foo"). : Creates a payload of "foo".
  • BinaryData.FromString("\"foo\""). : Creates a payload of "foo".
  • BinaryData.FromObjectAsJson(new { key = "value" }). : Creates a payload of { "key": "value" }.
  • BinaryData.FromString("{\"key\": \"value\"}"). : Creates a payload of { "key": "value" }.

HttpMethod

The http method of the resource operation.

Uri

The request URI of the resource operation.

Methods

Name Description
JsonModelCreateCore(Utf8JsonReader, ModelReaderWriterOptions)
JsonModelWriteCore(Utf8JsonWriter, ModelReaderWriterOptions)
PersistableModelCreateCore(BinaryData, ModelReaderWriterOptions)
PersistableModelWriteCore(ModelReaderWriterOptions)

Explicit Interface Implementations

Name Description
IJsonModel<PolicyTokenOperationInfo>.Create(Utf8JsonReader, ModelReaderWriterOptions)
IJsonModel<PolicyTokenOperationInfo>.Write(Utf8JsonWriter, ModelReaderWriterOptions)
IPersistableModel<PolicyTokenOperationInfo>.Create(BinaryData, ModelReaderWriterOptions)
IPersistableModel<PolicyTokenOperationInfo>.GetFormatFromOptions(ModelReaderWriterOptions)
IPersistableModel<PolicyTokenOperationInfo>.Write(ModelReaderWriterOptions)

Applies to