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.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;
Implementation for ApplicationSecurityGroup and its create and update interfaces.
/** * Implementation for ApplicationSecurityGroup and its create and update interfaces. */
@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(); } }