Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the MIT License. See License.txt in the project root for
license information.
/**
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
*/
package com.microsoft.azure.management.storage.implementation;
import com.microsoft.azure.PagedList;
import com.microsoft.azure.management.apigeneration.LangDefinition;
import com.microsoft.azure.management.resources.fluentcore.arm.collection.implementation.ReadableWrappersImpl;
import com.microsoft.azure.management.storage.StorageSku;
import com.microsoft.azure.management.storage.StorageSkus;
import rx.Observable;
The implementation for StorageSkus
. /**
* The implementation for {@link StorageSkus}.
*/
@LangDefinition
class StorageSkusImpl
extends
ReadableWrappersImpl<StorageSku, StorageSkuImpl, SkuInformationInner>
implements
StorageSkus {
private final StorageManager manager;
StorageSkusImpl(StorageManager storageManager) {
this.manager = storageManager;
}
@Override
protected StorageSkuImpl wrapModel(SkuInformationInner inner) {
return new StorageSkuImpl(inner);
}
@Override
public PagedList<StorageSku> list() {
return wrapList(this.inner().list());
}
@Override
public Observable<StorageSku> listAsync() {
return wrapPageAsync(this.inner().listAsync());
}
@Override
public SkusInner inner() {
return this.manager.inner().skus();
}
@Override
public StorageManager manager() {
return this.manager;
}
}