JCLOUDS-1584 : Deployment API fails when ARM Template deploys for creating Azure VM

This commit is contained in:
Rajani-cloud 2021-08-30 06:43:22 -04:00 committed by Andrew Gaul
parent 0b68e8adee
commit 8167513c35
2 changed files with 6 additions and 5 deletions

View File

@ -186,7 +186,7 @@ public abstract class Deployment {
public abstract ContentLink templateLink();
@Nullable
public abstract Map<String, Value> parameters();
public abstract Map<String, JsonBall> parameters();
@Nullable
public abstract ContentLink parametersLink();
@ -209,7 +209,7 @@ public abstract class Deployment {
final List<Dependency> dependencies,
final Map<String, JsonBall> template,
final ContentLink templateLink,
final Map<String, Value> parameters,
final Map<String, JsonBall> parameters,
final ContentLink parametersLink,
final String mode,
final String duration,
@ -222,7 +222,7 @@ public abstract class Deployment {
dependencies == null ? null : copyOf(dependencies),
template == null ? ImmutableMap.<String, JsonBall>builder().build() : ImmutableMap.copyOf(template),
templateLink,
parameters == null ? ImmutableMap.<String, Value>builder().build() : ImmutableMap.copyOf(parameters),
parameters == null ? ImmutableMap.<String, JsonBall>builder().build() : ImmutableMap.copyOf(parameters),
parametersLink,
mode,
duration,

View File

@ -16,6 +16,7 @@
*/
package org.jclouds.azurecompute.arm.domain;
import org.jclouds.javax.annotation.Nullable;
import org.jclouds.json.SerializedNames;
import com.google.auto.value.AutoValue;
@ -31,10 +32,10 @@ public abstract class Value {
/**
* The name of the Value
*/
public abstract String value();
public abstract @Nullable String value();
@SerializedNames({"type", "value"})
public static Value create(final String type, final String value) {
public static Value create(final String type, @Nullable final String value) {
return new AutoValue_Value(type, value);
}