@Override public ExpressRouteCrossConnectionsInner inner() { return manager.inner().expressRouteCrossConnections(); } }
/** * Creates a new ExpressRouteCrossConnectionPeeringsImpl. * * @param parent the Express Route Circuit associated with ExpressRouteCrossConnectionPeering */ ExpressRouteCrossConnectionPeeringsImpl(ExpressRouteCrossConnectionImpl parent) { super(parent.manager().inner().expressRouteCrossConnectionPeerings(), parent.manager()); this.parent = parent; }
/** * Creates a new ExpressRouteCircuitPeeringsImpl. * * @param parent the Express Route Circuit associated with ExpressRouteCircuitPeering */ ExpressRouteCircuitPeeringsImpl(ExpressRouteCircuitImpl parent) { super(parent.manager().inner().expressRouteCircuitPeerings(), parent.manager()); this.parent = parent; }
@Override public Observable<SecurityGroupView> getSecurityGroupViewAsync(final String vmId) { return this.manager().inner().networkWatchers() .getVMSecurityRulesAsync(this.resourceGroupName(), this.name(), vmId) .map(new Func1<SecurityGroupViewResultInner, SecurityGroupView>() { @Override public SecurityGroupView call(SecurityGroupViewResultInner inner) { return new SecurityGroupViewImpl(NetworkWatcherImpl.this, inner, vmId); } }); }
@Override public Observable<FlowLogSettings> getFlowLogSettingsAsync(final String nsgId) { return this.manager().inner().networkWatchers() .getFlowLogStatusAsync(this.resourceGroupName(), this.name(), nsgId) .map(new Func1<FlowLogInformationInner, FlowLogSettings>() { @Override public FlowLogSettings call(FlowLogInformationInner inner) { return new FlowLogSettingsImpl(NetworkWatcherImpl.this, inner, nsgId); } }); }
@Override public Completable resetAsync() { return this.manager().inner().virtualNetworkGateways().resetAsync(resourceGroupName(), name()).map(new Func1<VirtualNetworkGatewayInner, Void>() { @Override public Void call(VirtualNetworkGatewayInner inner) { VirtualNetworkGatewayImpl.this.setInner(inner); return null; } }).toCompletable(); }
@Override protected void initializeChildrenFromInner() { expressRouteCircuitPeerings = new HashMap<>(); if (inner().peerings() != null) { for (ExpressRouteCircuitPeeringInner peering : inner().peerings()) { expressRouteCircuitPeerings.put(peering.name(), new ExpressRouteCircuitPeeringImpl(this, peering, manager().inner().expressRouteCircuitPeerings(), peering.peeringType())); } } }
@Override public Observable<LocalNetworkGateway> applyTagsAsync() { return this.manager().inner().localNetworkGateways().updateTagsAsync(resourceGroupName(), name(), inner().getTags()) .flatMap(new Func1<LocalNetworkGatewayInner, Observable<LocalNetworkGateway>>() { @Override public Observable<LocalNetworkGateway> call(LocalNetworkGatewayInner inner) { setInner(inner); return Observable.just((LocalNetworkGateway) LocalNetworkGatewayImpl.this); } }); }
@Override public Observable<DdosProtectionPlan> createResourceAsync() { return this.manager().inner().ddosProtectionPlans().createOrUpdateAsync(resourceGroupName(), name(), inner()) .map(innerToFluentMap(this)); }
@Override public Observable<NetworkWatcher> applyTagsAsync() { return this.manager().inner().networkWatchers().updateTagsAsync(resourceGroupName(), name(), inner().getTags()) .flatMap(new Func1<NetworkWatcherInner, Observable<NetworkWatcher>>() { @Override public Observable<NetworkWatcher> call(NetworkWatcherInner inner) { setInner(inner); return Observable.just((NetworkWatcher) NetworkWatcherImpl.this); } }); }
@Override public Observable<ApplicationSecurityGroup> createResourceAsync() { return this.manager().inner().applicationSecurityGroups().createOrUpdateAsync(resourceGroupName(), name(), inner()) .map(innerToFluentMap(this)); }
@Override public Observable<LocalNetworkGateway> createResourceAsync() { return this.manager().inner().localNetworkGateways().createOrUpdateAsync(resourceGroupName(), name(), inner()) .map(innerToFluentMap(this)); }
ExpressRouteCrossConnectionPeeringImpl(ExpressRouteCrossConnectionImpl parent, ExpressRouteCrossConnectionPeeringInner innerObject, ExpressRoutePeeringType type) { super(type.toString(), innerObject); this.client = parent.manager().inner().expressRouteCrossConnectionPeerings(); this.parent = parent; inner().withPeeringType(type); }
@Override protected Observable<ExpressRouteCrossConnectionInner> createInner() { return this.manager().inner().expressRouteCrossConnections().createOrUpdateAsync( this.resourceGroupName(), this.name(), this.inner()); }
public FlowLogSettings getFlowLogSettings(String nsgId) { FlowLogInformationInner flowLogInformationInner = this.manager().inner().networkWatchers() .getFlowLogStatus(this.resourceGroupName(), this.name(), nsgId); return new FlowLogSettingsImpl(this, flowLogInformationInner, nsgId); }
@Override protected Observable<NetworkInterfaceInner> getInnerAsync() { return this.manager().inner().networkInterfaces().getVirtualMachineScaleSetNetworkInterfaceAsync( this.resourceGroupName, this.scaleSetName, ResourceUtils.nameFromResourceId(this.virtualMachineId()), this.name()); }
@Override protected Observable<ExpressRouteCircuitInner> createInner() { return this.manager().inner().expressRouteCircuits().createOrUpdateAsync( this.resourceGroupName(), this.name(), this.inner()); }
@Override public SecurityGroupView getSecurityGroupView(String vmId) { SecurityGroupViewResultInner securityGroupViewResultInner = this.manager().inner().networkWatchers() .getVMSecurityRules(this.resourceGroupName(), this.name(), vmId); return new SecurityGroupViewImpl(this, securityGroupViewResultInner, vmId); }
@Override public Observable<FlowLogSettings> applyAsync() { return this.parent().manager().inner().networkWatchers() .setFlowLogConfigurationAsync(parent().resourceGroupName(), parent().name(), this.inner()) .map(new Func1<FlowLogInformationInner, FlowLogSettings>() { @Override public FlowLogSettings call(FlowLogInformationInner flowLogInformationInner) { return new FlowLogSettingsImpl(FlowLogSettingsImpl.this.parent, flowLogInformationInner, nsgId); } }); }
@Override public Completable startAsync() { Observable<Void> startObservable = this.manager().inner().applicationGateways().startAsync(this.resourceGroupName(), this.name()); Observable<ApplicationGateway> refreshObservable = refreshAsync(); // Refresh after start to ensure the app gateway operational state is updated return Observable.concat(startObservable, refreshObservable).toCompletable(); }