package com.microsoft.azure.management.network.implementation;
import com.microsoft.azure.management.apigeneration.LangDefinition;
import com.microsoft.azure.management.network.ApplicationSecurityGroup;
import com.microsoft.azure.management.network.ProvisioningState;
import com.microsoft.azure.management.resources.fluentcore.arm.models.implementation.GroupableResourceImpl;
import rx.Observable;
@LangDefinition
class ApplicationSecurityGroupImpl
extends GroupableResourceImpl<
ApplicationSecurityGroup,
ApplicationSecurityGroupInner,
ApplicationSecurityGroupImpl,
NetworkManager>
implements
ApplicationSecurityGroup,
ApplicationSecurityGroup.Definition,
ApplicationSecurityGroup.Update {
ApplicationSecurityGroupImpl(
final String name,
final ApplicationSecurityGroupInner innerModel,
final NetworkManager networkManager) {
super(name, innerModel, networkManager);
}
@Override
protected Observable<ApplicationSecurityGroupInner> getInnerAsync() {
return this.manager().inner().applicationSecurityGroups().getByResourceGroupAsync(this.resourceGroupName(), this.name());
}
@Override
public Observable<ApplicationSecurityGroup> createResourceAsync() {
return this.manager().inner().applicationSecurityGroups().createOrUpdateAsync(resourceGroupName(), name(), inner())
.map(innerToFluentMap(this));
}
@Override
public String resourceGuid() {
return inner().resourceGuid();
}
@Override
public ProvisioningState provisioningState() {
return inner().provisioningState();
}
}