@Override protected StorageAccountImpl wrapModel(String name) { return new StorageAccountImpl(name, new StorageAccountInner(), this.manager()); }
@Override public AccessTier accessTier() { return inner().accessTier(); }
@Override public DateTime creationTime() { return this.inner().creationTime(); }
@Override public StorageAccountSkuType skuType() { // We deprecated the sku() getter. When we remove it we wanted to rename this // 'beta' getter skuType() to sku(). // return StorageAccountSkuType.fromSkuName(this.inner().sku().name()); }
@Override @Deprecated public Encryption encryption() { return inner().encryption(); }
@Override public Kind kind() { return inner().kind(); }
@Override public Observable<StorageAccount> updateResourceAsync() { this.networkRulesHelper.setDefaultActionIfRequired(); updateParameters.withTags(this.inner().getTags()); return this.manager().inner().storageAccounts().updateAsync( resourceGroupName(), name(), updateParameters) .map(innerToFluentMap(this)) .doOnNext(new Action1<StorageAccount>() { @Override public void call(StorageAccount storageAccount) { clearWrapperProperties(); } }); } }
@Override public DateTime lastGeoFailoverTime() { return this.inner().lastGeoFailoverTime(); }
@Override public CustomDomain customDomain() { return this.inner().customDomain(); }
@Override @Deprecated public Sku sku() { return new Sku().withName(this.inner().sku().name()); }
@Override @Deprecated public Encryption encryption() { return inner().encryption(); }
@Override public Kind kind() { return inner().kind(); }
@Override public Observable<StorageAccount> updateResourceAsync() { this.networkRulesHelper.setDefaultActionIfRequired(); updateParameters.withTags(this.inner().getTags()); return this.manager().inner().storageAccounts().updateAsync( resourceGroupName(), name(), updateParameters) .map(innerToFluentMap(this)) .doOnNext(new Action1<StorageAccount>() { @Override public void call(StorageAccount storageAccount) { clearWrapperProperties(); } }); } }
@Override public DateTime lastGeoFailoverTime() { return this.inner().lastGeoFailoverTime(); }
@Override public CustomDomain customDomain() { return this.inner().customDomain(); }
@Override public StorageAccountSkuType skuType() { // We deprecated the sku() getter. When we remove it we wanted to rename this // 'beta' getter skuType() to sku(). // return StorageAccountSkuType.fromSkuName(this.inner().sku().name()); }
/** * Gets the encryption key source. * * @param inner the storage account * @return the encryption key source type */ static StorageAccountEncryptionKeySource encryptionKeySource(StorageAccountInner inner) { if (inner.encryption() == null || inner.encryption().keySource() == null) { return null; } return StorageAccountEncryptionKeySource.fromString(inner.encryption().keySource().toString()); }