Skip to content

Commit

Permalink
Merge pull request #1262 from anuchandy/dns-fluent-2
Browse files Browse the repository at this point in the history
[Ready for review] Dns Zone fluent implementation
  • Loading branch information
Martin Sawicki authored Nov 11, 2016
2 parents dbfe336 + 0783930 commit bbc94d8
Show file tree
Hide file tree
Showing 57 changed files with 4,272 additions and 156 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
import com.microsoft.azure.management.apigeneration.LangDefinition;
import com.microsoft.azure.management.batch.Application;
import com.microsoft.azure.management.batch.ApplicationPackage;
import com.microsoft.azure.management.resources.fluentcore.arm.collection.implementation.ExternalChildResourcesImpl;
import com.microsoft.azure.management.resources.fluentcore.arm.collection.implementation.ExternalChildResourcesCachedImpl;

import java.util.List;
import java.util.Map;
Expand All @@ -22,7 +22,7 @@
*/
@LangDefinition
class ApplicationPackagesImpl extends
ExternalChildResourcesImpl<ApplicationPackageImpl,
ExternalChildResourcesCachedImpl<ApplicationPackageImpl,
ApplicationPackage,
ApplicationPackageInner,
ApplicationImpl,
Expand All @@ -34,7 +34,7 @@ class ApplicationPackagesImpl extends
super(parent, "ApplicationPackage");
this.client = client;
this.parent = parent;
this.initializeCollection();
this.cacheCollection();
}

public ApplicationPackageImpl define(String name) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
import com.microsoft.azure.management.apigeneration.LangDefinition;
import com.microsoft.azure.management.batch.Application;
import com.microsoft.azure.management.batch.BatchAccount;
import com.microsoft.azure.management.resources.fluentcore.arm.collection.implementation.ExternalChildResourcesImpl;
import com.microsoft.azure.management.resources.fluentcore.arm.collection.implementation.ExternalChildResourcesCachedImpl;

import java.util.ArrayList;
import java.util.Collections;
Expand All @@ -23,7 +23,7 @@
*/
@LangDefinition
class ApplicationsImpl extends
ExternalChildResourcesImpl<ApplicationImpl,
ExternalChildResourcesCachedImpl<ApplicationImpl,
Application,
ApplicationInner,
BatchAccountImpl,
Expand All @@ -35,7 +35,7 @@ class ApplicationsImpl extends
super(parent, "Application");
this.client = client;
this.applicationPackagesClient = applicationPackagesClient;
this.initializeCollection();
this.cacheCollection();
}

public Map<String, Application> asMap() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
import com.microsoft.azure.management.compute.VirtualMachine;
import com.microsoft.azure.management.compute.VirtualMachineExtension;
import com.microsoft.azure.management.resources.fluentcore.arm.ResourceUtils;
import com.microsoft.azure.management.resources.fluentcore.arm.collection.implementation.ExternalChildResourcesImpl;
import com.microsoft.azure.management.resources.fluentcore.arm.collection.implementation.ExternalChildResourcesCachedImpl;

import java.util.ArrayList;
import java.util.Collections;
Expand All @@ -14,11 +14,11 @@
* Represents a extension collection associated with a virtual machine.
*/
class VirtualMachineExtensionsImpl extends
ExternalChildResourcesImpl<VirtualMachineExtensionImpl,
VirtualMachineExtension,
VirtualMachineExtensionInner,
VirtualMachineImpl,
VirtualMachine> {
ExternalChildResourcesCachedImpl<VirtualMachineExtensionImpl,
VirtualMachineExtension,
VirtualMachineExtensionInner,
VirtualMachineImpl,
VirtualMachine> {
private final VirtualMachineExtensionsInner client;

/**
Expand All @@ -30,7 +30,7 @@ class VirtualMachineExtensionsImpl extends
VirtualMachineExtensionsImpl(VirtualMachineExtensionsInner client, VirtualMachineImpl parent) {
super(parent, "VirtualMachineExtension");
this.client = client;
this.initializeCollection();
this.cacheCollection();
}

/**
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
package com.microsoft.azure.management.dns;

import java.util.List;

/**
* An immutable client-side representation of a A (Ipv4) record set in Azure Dns Zone.
*/
public interface ARecordSet extends DnsRecordSet {
/**
* @return the Ipv4 addresses of A records in this record set
*/
List<String> ipv4Addresses();
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
package com.microsoft.azure.management.dns;

import com.microsoft.azure.management.apigeneration.Fluent;
import com.microsoft.azure.management.resources.fluentcore.arm.collection.SupportsGettingByName;
import com.microsoft.azure.management.resources.fluentcore.collection.SupportsListing;

/**
* Entry point to A record sets in a Dns zone.
*/
@Fluent
public interface ARecordSets extends
SupportsListing<ARecordSet>,
SupportsGettingByName<ARecordSet> {
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
package com.microsoft.azure.management.dns;

import java.util.List;

/**
* An immutable client-side representation of a Aaaa (Ipv6) record set in Azure Dns Zone.
*/
public interface AaaaRecordSet extends DnsRecordSet {
/**
* @return the IPv6 addresses of Aaaa records in this record set
*/
List<String> ipv6Addresses();
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
package com.microsoft.azure.management.dns;

import com.microsoft.azure.management.apigeneration.Fluent;
import com.microsoft.azure.management.resources.fluentcore.arm.collection.SupportsGettingByName;
import com.microsoft.azure.management.resources.fluentcore.collection.SupportsListing;

/**
* Entry point to Aaaa record sets in a Dns zone.
*/
@Fluent
public interface AaaaRecordSets extends
SupportsListing<AaaaRecordSet>,
SupportsGettingByName<AaaaRecordSet> {
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
package com.microsoft.azure.management.dns;

/**
* An immutable client-side representation of a CName (canonical name) record set in Azure Dns Zone.
*/
public interface CnameRecordSet extends DnsRecordSet {
/**
* @return the canonical name (without a terminating dot) of CName record in this record set
*/
String canonicalName();
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
package com.microsoft.azure.management.dns;

import com.microsoft.azure.management.apigeneration.Fluent;
import com.microsoft.azure.management.resources.fluentcore.arm.collection.SupportsGettingByName;
import com.microsoft.azure.management.resources.fluentcore.collection.SupportsListing;

/**
* Entry point to Cname record sets in a Dns zone.
*/
@Fluent
public interface CnameRecordSets extends
SupportsListing<CnameRecordSet>,
SupportsGettingByName<CnameRecordSet> {
}
Loading

0 comments on commit bbc94d8

Please sign in to comment.