Beispiel #1
0
 void IUtf8JsonSerializable.Write(Utf8JsonWriter writer)
 {
     writer.WriteStartObject();
     writer.WritePropertyName("type");
     writer.WriteStringValue(AzureResourceType.ToString());
     writer.WriteEndObject();
 }
Beispiel #2
0
 void IUtf8JsonSerializable.Write(Utf8JsonWriter writer)
 {
     writer.WriteStartObject();
     if (Optional.IsDefined(ConnectAsKubernetesCsiDriver))
     {
         writer.WritePropertyName("connectAsKubernetesCsiDriver");
         writer.WriteBooleanValue(ConnectAsKubernetesCsiDriver.Value);
     }
     writer.WritePropertyName("type");
     writer.WriteStringValue(AzureResourceType.ToString());
     writer.WriteEndObject();
 }