Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,95 @@
/**
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
*/

package com.microsoft.azure.management.dns;

import com.fasterxml.jackson.annotation.JsonProperty;

/**
* A CAA record.
*/
public class CaaRecord {
/**
* The flags for this CAA record as an integer between 0 and 255.
*/
@JsonProperty(value = "flags")
private Integer flags;

/**
* The tag for this CAA record.
*/
@JsonProperty(value = "tag")
private String tag;

/**
* The value for this CAA record.
*/
@JsonProperty(value = "value")
private String value;

/**
* Get the flags value.
*
* @return the flags value
*/
public Integer flags() {
return this.flags;
}

/**
* Set the flags value.
*
* @param flags the flags value to set
* @return the CaaRecord object itself.
*/
public CaaRecord withFlags(Integer flags) {
this.flags = flags;
return this;
}

/**
* Get the tag value.
*
* @return the tag value
*/
public String tag() {
return this.tag;
}

/**
* Set the tag value.
*
* @param tag the tag value to set
* @return the CaaRecord object itself.
*/
public CaaRecord withTag(String tag) {
this.tag = tag;
return this;
}

/**
* Get the value value.
*
* @return the value value
*/
public String value() {
return this.value;
}

/**
* Set the value value.
*
* @param value the value value to set
* @return the CaaRecord object itself.
*/
public CaaRecord withValue(String value) {
this.value = value;
return this;
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@ public enum RecordType {
/** Enum value AAAA. */
AAAA("AAAA"),

/** Enum value CAA. */
CAA("CAA"),

/** Enum value CNAME. */
CNAME("CNAME"),

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
/**
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
*/

package com.microsoft.azure.management.dns;

import com.fasterxml.jackson.annotation.JsonProperty;

/**
* A reference to a another resource.
*/
public class SubResource {
/**
* Resource Id.
*/
@JsonProperty(value = "id")
private String id;

/**
* Get the id value.
*
* @return the id value
*/
public String id() {
return this.id;
}

/**
* Set the id value.
*
* @param id the id value to set
* @return the SubResource object itself.
*/
public SubResource withId(String id) {
this.id = id;
return this;
}

}
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
/**
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
*/

package com.microsoft.azure.management.dns;

import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue;

/**
* Defines values for ZoneType.
*/
public enum ZoneType {
/** Enum value Public. */
PUBLIC("Public"),

/** Enum value Private. */
PRIVATE("Private");

/** The actual serialized value for a ZoneType instance. */
private String value;

ZoneType(String value) {
this.value = value;
}

/**
* Parses a serialized value to a ZoneType instance.
*
* @param value the serialized value to parse.
* @return the parsed ZoneType object, or null if unable to parse.
*/
@JsonCreator
public static ZoneType fromString(String value) {
ZoneType[] items = ZoneType.values();
for (ZoneType item : items) {
if (item.toString().equalsIgnoreCase(value)) {
return item;
}
}
return null;
}

@JsonValue
@Override
public String toString() {
return this.value;
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
/**
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
*/

package com.microsoft.azure.management.dns;

import java.util.Map;
import com.fasterxml.jackson.annotation.JsonProperty;

/**
* Describes a request to update a DNS zone.
*/
public class ZoneUpdate {
/**
* Resource tags.
*/
@JsonProperty(value = "tags")
private Map<String, String> tags;

/**
* Get the tags value.
*
* @return the tags value
*/
public Map<String, String> tags() {
return this.tags;
}

/**
* Set the tags value.
*
* @param tags the tags value to set
* @return the ZoneUpdate object itself.
*/
public ZoneUpdate withTags(Map<String, String> tags) {
this.tags = tags;
return this;
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ public DnsManagementClientImpl(RestClient restClient) {
}

protected void initialize() {
this.apiVersion = "2016-04-01";
this.apiVersion = "2018-03-01-preview";
this.acceptLanguage = "en-US";
this.longRunningOperationRetryTimeout = 30;
this.generateClientRequestId = true;
Expand All @@ -205,6 +205,6 @@ protected void initialize() {
*/
@Override
public String userAgent() {
return String.format("%s (%s, %s)", super.userAgent(), "DnsManagementClient", "2016-04-01");
return String.format("%s (%s, %s)", super.userAgent(), "DnsManagementClient", "2018-03-01-preview");
}
}
Loading