mirror of https://github.com/apache/jclouds.git
JCLOUDS-1584 : Deployment API fails when ARM Template deploys for creating Azure VM
This commit is contained in:
parent
0b68e8adee
commit
8167513c35
|
@ -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,
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue