@Override public Observable<StorageAccount> refreshAsync() { return super.refreshAsync().map(new Func1<StorageAccount, StorageAccount>() { @Override public StorageAccount call(StorageAccount storageAccount) { StorageAccountImpl impl = (StorageAccountImpl) storageAccount; impl.clearWrapperProperties(); return impl; } }); }
/** * Creates a new resource group to put the resource in. * <p> * The group will be created in the same location as the resource. * The group's name is automatically derived from the resource's name. * @return the next stage of the definition */ public final FluentModelImplT withNewResourceGroup() { return this.withNewResourceGroup(this.name() + "group"); }
@Override public CdnProfileImpl update() { this.endpoints.enableCommitMode(); return super.update(); }
/** * Creates a new resource group to put the resource in, based on the definition specified. * @param creatable a creatable definition for a new resource group * @return the next stage of the definition */ @SuppressWarnings("unchecked") public final FluentModelImplT withNewResourceGroup(Creatable<ResourceGroup> creatable) { this.groupName = creatable.name(); this.creatableGroup = creatable; this.addDependency(creatable); return (FluentModelImplT) this; }
@Override public String resourceGroupName() { if (this.groupName == null) { return ResourceUtils.groupFromResourceId(this.id()); } else { return this.groupName; } }
@Override public TrafficManagerProfileImpl update() { this.endpoints.enableCommitMode(); return super.update(); }
/** * Creates a new resource group to put the resource in, based on the definition specified. * @param creatable a creatable definition for a new resource group * @return the next stage of the definition */ @SuppressWarnings("unchecked") public final FluentModelImplT withNewResourceGroup(Creatable<ResourceGroup> creatable) { this.groupName = creatable.name(); this.creatableGroup = creatable; this.addDependency(creatable); return (FluentModelImplT) this; }
@Override public String resourceGroupName() { if (this.groupName == null) { return ResourceUtils.groupFromResourceId(this.id()); } else { return this.groupName; } }
@Override public Observable<VirtualMachine> refreshAsync() { return super.refreshAsync().map(new Func1<VirtualMachine, VirtualMachine>() { @Override public VirtualMachine call(VirtualMachine virtualMachine) { reset(virtualMachine.inner()); virtualMachineExtensions.refresh(); return virtualMachine; } }); }
@Override public TrafficManagerProfileImpl update() { this.endpoints.enableCommitMode(); return super.update(); }
/** * Creates a new resource group to put the resource in. * <p> * The group will be created in the same location as the resource. * The group's name is automatically derived from the resource's name. * * @param region the region where resource group needs to be created * @return the next stage of the definition */ public final FluentModelImplT withNewResourceGroup(Region region) { return this.withNewResourceGroup(this.name() + "group", region); }
@Override public Observable<TrafficManagerProfile> refreshAsync() { return super.refreshAsync().map(new Func1<TrafficManagerProfile, TrafficManagerProfile>() { @Override public TrafficManagerProfile call(TrafficManagerProfile trafficManagerProfile) { TrafficManagerProfileImpl impl = (TrafficManagerProfileImpl) trafficManagerProfile; impl.endpoints.refresh(); return impl; } }); }
@Override public RegistryImpl update() { updateParameters = new RegistryUpdateParameters(); return super.update(); }
/** * Creates a new resource group to put the resource in. * <p> * The group will be created in the same location as the resource. * The group's name is automatically derived from the resource's name. * @return the next stage of the definition */ public final FluentModelImplT withNewResourceGroup() { return this.withNewResourceGroup(this.name() + "group"); }
@Override public Observable<AvailabilitySet> refreshAsync() { return super.refreshAsync().map(new Func1<AvailabilitySet, AvailabilitySet>() { @Override public AvailabilitySet call(AvailabilitySet availabilitySet) { AvailabilitySetImpl impl = (AvailabilitySetImpl) availabilitySet; impl.idOfVMsInSet = null; return impl; } }); }
@Override public CdnProfileImpl update() { this.endpoints.enableCommitMode(); return super.update(); }
/** * Creates a new resource group to put the resource in. * <p> * The group will be created in the same location as the resource. * The group's name is automatically derived from the resource's name. * * @param region the region where resource group needs to be created * @return the next stage of the definition */ public final FluentModelImplT withNewResourceGroup(Region region) { return this.withNewResourceGroup(this.name() + "group", region); }
@Override public Observable<DnsZone> refreshAsync() { return super.refreshAsync().map(new Func1<DnsZone, DnsZone>() { @Override public DnsZone call(DnsZone dnsZone) { DnsZoneImpl impl = (DnsZoneImpl) dnsZone; impl.initRecordSets(); return impl; } }); }
@Override public RedisCacheImpl update() { this.updateParameters = new RedisUpdateParameters(); this.patchSchedules.enableCommitMode(); this.firewallRules.enableCommitMode(); return super.update(); }
@Override public Observable<CdnProfile> refreshAsync() { return super.refreshAsync().map(new Func1<CdnProfile, CdnProfile>() { @Override public CdnProfile call(CdnProfile profile) { endpoints.refresh(); return profile; } }); }