-
Notifications
You must be signed in to change notification settings - Fork 2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* bump netty version * add WebSiteBase * redesign WebApps.List * FunctionAppBasic * add test case for WebAppBasic * add WebDeploymentSlotBasic and FunctionDeploymentSlotBasic * simplify FunctionRuntimeStack * changelog * add test for batch flux * delete ReactorMapper
- Loading branch information
1 parent
6af7b5e
commit 0e694ed
Showing
47 changed files
with
4,558 additions
and
2,775 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
37 changes: 37 additions & 0 deletions
37
...c/main/java/com/azure/resourcemanager/appservice/implementation/FunctionAppBasicImpl.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
// Copyright (c) Microsoft Corporation. All rights reserved. | ||
// Licensed under the MIT License. | ||
|
||
package com.azure.resourcemanager.appservice.implementation; | ||
|
||
import com.azure.resourcemanager.appservice.AppServiceManager; | ||
import com.azure.resourcemanager.appservice.fluent.inner.SiteInner; | ||
import com.azure.resourcemanager.appservice.models.FunctionApp; | ||
import com.azure.resourcemanager.appservice.models.FunctionAppBasic; | ||
import com.azure.resourcemanager.resources.fluentcore.arm.models.HasManager; | ||
import reactor.core.publisher.Mono; | ||
|
||
class FunctionAppBasicImpl extends WebSiteBaseImpl implements FunctionAppBasic, HasManager<AppServiceManager> { | ||
|
||
private final AppServiceManager myManager; | ||
|
||
FunctionAppBasicImpl(SiteInner innerObject, AppServiceManager myManager) { | ||
super(innerObject); | ||
this.myManager = myManager; | ||
} | ||
|
||
@Override | ||
public FunctionApp refresh() { | ||
return this.refreshAsync().block(); | ||
} | ||
|
||
@Override | ||
public Mono<FunctionApp> refreshAsync() { | ||
return this.manager().functionApps().getByIdAsync(this.id()) | ||
.doOnNext(site -> this.setInner(site.inner())); | ||
} | ||
|
||
@Override | ||
public AppServiceManager manager() { | ||
return myManager; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.