Skip to content

Commit

Permalink
Generated from c0f3031b6922d42f5f194bc965adc422fd0679c1 (#263)
Browse files Browse the repository at this point in the history
Adding scoping to error suppressions
  • Loading branch information
AutorestCI authored Mar 13, 2018
1 parent 4a5f576 commit 2e717eb
Show file tree
Hide file tree
Showing 9 changed files with 966 additions and 145 deletions.
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
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");
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
import com.microsoft.azure.management.dns.TxtRecord;
import com.microsoft.azure.management.dns.CnameRecord;
import com.microsoft.azure.management.dns.SoaRecord;
import com.microsoft.azure.management.dns.CaaRecord;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.microsoft.rest.serializer.JsonFlatten;

Expand All @@ -31,19 +32,19 @@ public class RecordSetInner {
/**
* The ID of the record set.
*/
@JsonProperty(value = "id")
@JsonProperty(value = "id", access = JsonProperty.Access.WRITE_ONLY)
private String id;

/**
* The name of the record set.
*/
@JsonProperty(value = "name")
@JsonProperty(value = "name", access = JsonProperty.Access.WRITE_ONLY)
private String name;

/**
* The type of the record set.
*/
@JsonProperty(value = "type")
@JsonProperty(value = "type", access = JsonProperty.Access.WRITE_ONLY)
private String type;

/**
Expand All @@ -64,6 +65,12 @@ public class RecordSetInner {
@JsonProperty(value = "properties.TTL")
private Long tTL;

/**
* Fully qualified domain name of the record set.
*/
@JsonProperty(value = "properties.fqdn", access = JsonProperty.Access.WRITE_ONLY)
private String fqdn;

/**
* The list of A records in the record set.
*/
Expand Down Expand Up @@ -118,6 +125,12 @@ public class RecordSetInner {
@JsonProperty(value = "properties.SOARecord")
private SoaRecord soaRecord;

/**
* The list of CAA records in the record set.
*/
@JsonProperty(value = "properties.caaRecords")
private List<CaaRecord> caaRecords;

/**
* Get the id value.
*
Expand All @@ -127,17 +140,6 @@ public String id() {
return this.id;
}

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

/**
* Get the name value.
*
Expand All @@ -147,17 +149,6 @@ public String name() {
return this.name;
}

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

/**
* Get the type value.
*
Expand All @@ -167,17 +158,6 @@ public String type() {
return this.type;
}

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

/**
* Get the etag value.
*
Expand Down Expand Up @@ -238,6 +218,15 @@ public RecordSetInner withTTL(Long tTL) {
return this;
}

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

/**
* Get the aRecords value.
*
Expand Down Expand Up @@ -418,4 +407,24 @@ public RecordSetInner withSoaRecord(SoaRecord soaRecord) {
return this;
}

/**
* Get the caaRecords value.
*
* @return the caaRecords value
*/
public List<CaaRecord> caaRecords() {
return this.caaRecords;
}

/**
* Set the caaRecords value.
*
* @param caaRecords the caaRecords value to set
* @return the RecordSetInner object itself.
*/
public RecordSetInner withCaaRecords(List<CaaRecord> caaRecords) {
this.caaRecords = caaRecords;
return this;
}

}
Loading

0 comments on commit 2e717eb

Please sign in to comment.