com.azure.resourcemanager.storage.implementation.StorageSkusImpl Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of azure-resourcemanager-storage Show documentation
Show all versions of azure-resourcemanager-storage Show documentation
This package contains Microsoft Azure Storage Management SDK.
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
package com.azure.resourcemanager.storage.implementation;
import com.azure.core.http.rest.PagedFlux;
import com.azure.core.http.rest.PagedIterable;
import com.azure.resourcemanager.storage.StorageManager;
import com.azure.resourcemanager.storage.fluent.SkusClient;
import com.azure.resourcemanager.storage.models.StorageSku;
import com.azure.resourcemanager.storage.models.StorageSkus;
import com.azure.resourcemanager.resources.fluentcore.utils.PagedConverter;
/** The implementation for {@link StorageSkus}. */
public class StorageSkusImpl implements StorageSkus {
private final StorageManager manager;
public StorageSkusImpl(StorageManager storageManager) {
this.manager = storageManager;
}
@Override
public StorageManager manager() {
return this.manager;
}
@Override
public PagedIterable list() {
return PagedConverter.mapPage(this.inner().list(), StorageSkuImpl::new);
}
@Override
public PagedFlux listAsync() {
return PagedConverter.mapPage(this.inner().listAsync(), StorageSkuImpl::new);
}
public SkusClient inner() {
return manager.serviceClient().getSkus();
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy