Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
/**
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
*/

package com.microsoft.azure.management.appservice.v2018_02_01;

import com.microsoft.azure.arm.model.HasInner;
import com.microsoft.azure.arm.resources.models.HasManager;
import com.microsoft.azure.management.appservice.v2018_02_01.implementation.CertificateRegistrationManager;
import com.microsoft.azure.management.appservice.v2018_02_01.implementation.NetworkTraceInner;

/**
* Type representing NetworkTrace.
*/
public interface NetworkTrace extends HasInner<NetworkTraceInner>, HasManager<CertificateRegistrationManager> {
/**
* @return the message value.
*/
String message();

/**
* @return the path value.
*/
String path();

/**
* @return the status value.
*/
String status();

}
Original file line number Diff line number Diff line change
Expand Up @@ -515,6 +515,29 @@ public interface WebApps {
*/
Observable<Operation> migrateMySqlAsync(String resourceGroupName, String name, MigrateMySqlRequest migrationRequestEnvelope);

/**
* Gets a named operation for a network trace capturing (or deployment slot, if specified).
* Gets a named operation for a network trace capturing (or deployment slot, if specified).
*
* @param resourceGroupName Name of the resource group to which the resource belongs.
* @param name Name of the app.
* @param operationId GUID of the operation.
* @throws IllegalArgumentException thrown if parameters fail the validation
* @return the observable for the request
*/
Completable getNetworkTraceOperationAsync(String resourceGroupName, String name, String operationId);

/**
* Start capturing network packets for the site (To be deprecated).
* Start capturing network packets for the site (To be deprecated).
*
* @param resourceGroupName Name of the resource group to which the resource belongs.
* @param name The name of the web app.
* @throws IllegalArgumentException thrown if parameters fail the validation
* @return the observable for the request
*/
Completable startWebSiteNetworkTraceAsync(String resourceGroupName, String name);

/**
* Start capturing network packets for the site.
* Start capturing network packets for the site.
Expand All @@ -524,7 +547,7 @@ public interface WebApps {
* @throws IllegalArgumentException thrown if parameters fail the validation
* @return the observable for the request
*/
Completable startWebSiteNetworkTraceAsync(String resourceGroupName, String name);
Completable startWebSiteNetworkTraceOperationAsync(String resourceGroupName, String name);

/**
* Stop ongoing capturing network packets for the site.
Expand All @@ -537,6 +560,18 @@ public interface WebApps {
*/
Completable stopWebSiteNetworkTraceAsync(String resourceGroupName, String name);

/**
* Gets a named operation for a network trace capturing (or deployment slot, if specified).
* Gets a named operation for a network trace capturing (or deployment slot, if specified).
*
* @param resourceGroupName Name of the resource group to which the resource belongs.
* @param name Name of the app.
* @param operationId GUID of the operation.
* @throws IllegalArgumentException thrown if parameters fail the validation
* @return the observable for the request
*/
Observable<NetworkTrace> getNetworkTracesAsync(String resourceGroupName, String name, String operationId);

/**
* Generates a new publishing password for an app (or deployment slot, if specified).
* Generates a new publishing password for an app (or deployment slot, if specified).
Expand Down Expand Up @@ -3329,6 +3364,31 @@ public interface WebApps {
*/
Observable<FunctionSecrets> listSyncFunctionTriggersSlotAsync(String resourceGroupName, String name, String slot);

/**
* Gets a named operation for a network trace capturing (or deployment slot, if specified).
* Gets a named operation for a network trace capturing (or deployment slot, if specified).
*
* @param resourceGroupName Name of the resource group to which the resource belongs.
* @param name Name of the app.
* @param operationId GUID of the operation.
* @param slot Name of the deployment slot. If a slot is not specified, the API will get an operation for the production slot.
* @throws IllegalArgumentException thrown if parameters fail the validation
* @return the observable for the request
*/
Completable getNetworkTraceOperationSlotAsync(String resourceGroupName, String name, String operationId, String slot);

/**
* Start capturing network packets for the site (To be deprecated).
* Start capturing network packets for the site (To be deprecated).
*
* @param resourceGroupName Name of the resource group to which the resource belongs.
* @param name The name of the web app.
* @param slot The name of the slot for this web app.
* @throws IllegalArgumentException thrown if parameters fail the validation
* @return the observable for the request
*/
Completable startWebSiteNetworkTraceSlotAsync(String resourceGroupName, String name, String slot);

/**
* Start capturing network packets for the site.
* Start capturing network packets for the site.
Expand All @@ -3339,7 +3399,7 @@ public interface WebApps {
* @throws IllegalArgumentException thrown if parameters fail the validation
* @return the observable for the request
*/
Completable startWebSiteNetworkTraceSlotAsync(String resourceGroupName, String name, String slot);
Completable startWebSiteNetworkTraceOperationSlotAsync(String resourceGroupName, String name, String slot);

/**
* Stop ongoing capturing network packets for the site.
Expand All @@ -3353,6 +3413,19 @@ public interface WebApps {
*/
Completable stopWebSiteNetworkTraceSlotAsync(String resourceGroupName, String name, String slot);

/**
* Gets a named operation for a network trace capturing (or deployment slot, if specified).
* Gets a named operation for a network trace capturing (or deployment slot, if specified).
*
* @param resourceGroupName Name of the resource group to which the resource belongs.
* @param name Name of the app.
* @param operationId GUID of the operation.
* @param slot Name of the deployment slot. If a slot is not specified, the API will get an operation for the production slot.
* @throws IllegalArgumentException thrown if parameters fail the validation
* @return the observable for the request
*/
Observable<NetworkTrace> getNetworkTracesSlotAsync(String resourceGroupName, String name, String operationId, String slot);

/**
* Generates a new publishing password for an app (or deployment slot, if specified).
* Generates a new publishing password for an app (or deployment slot, if specified).
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
/**
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
*/

package com.microsoft.azure.management.appservice.v2018_02_01.implementation;

import com.microsoft.azure.management.appservice.v2018_02_01.NetworkTrace;
import com.microsoft.azure.arm.model.implementation.WrapperImpl;

class NetworkTraceImpl extends WrapperImpl<NetworkTraceInner> implements NetworkTrace {
private final CertificateRegistrationManager manager;
NetworkTraceImpl(NetworkTraceInner inner, CertificateRegistrationManager manager) {
super(inner);
this.manager = manager;
}

@Override
public CertificateRegistrationManager manager() {
return this.manager;
}

@Override
public String message() {
return this.inner().message();
}

@Override
public String path() {
return this.inner().path();
}

@Override
public String status() {
return this.inner().status();
}

}
Original file line number Diff line number Diff line change
@@ -0,0 +1,97 @@
/**
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
*/

package com.microsoft.azure.management.appservice.v2018_02_01.implementation;

import com.fasterxml.jackson.annotation.JsonProperty;

/**
* Network trace.
*/
public class NetworkTraceInner {
/**
* Local file path for the captured network trace file.
*/
@JsonProperty(value = "path")
private String path;

/**
* Current status of the network trace operation, same as Operation.Status
* (InProgress/Succeeded/Failed).
*/
@JsonProperty(value = "status")
private String status;

/**
* Detailed message of a network trace operation, e.g. error message in
* case of failure.
*/
@JsonProperty(value = "message")
private String message;

/**
* Get local file path for the captured network trace file.
*
* @return the path value
*/
public String path() {
return this.path;
}

/**
* Set local file path for the captured network trace file.
*
* @param path the path value to set
* @return the NetworkTraceInner object itself.
*/
public NetworkTraceInner withPath(String path) {
this.path = path;
return this;
}

/**
* Get current status of the network trace operation, same as Operation.Status (InProgress/Succeeded/Failed).
*
* @return the status value
*/
public String status() {
return this.status;
}

/**
* Set current status of the network trace operation, same as Operation.Status (InProgress/Succeeded/Failed).
*
* @param status the status value to set
* @return the NetworkTraceInner object itself.
*/
public NetworkTraceInner withStatus(String status) {
this.status = status;
return this;
}

/**
* Get detailed message of a network trace operation, e.g. error message in case of failure.
*
* @return the message value
*/
public String message() {
return this.message;
}

/**
* Set detailed message of a network trace operation, e.g. error message in case of failure.
*
* @param message the message value to set
* @return the NetworkTraceInner object itself.
*/
public NetworkTraceInner withMessage(String message) {
this.message = message;
return this;
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ public Observable<ServiceResponse<Page<ApplicationStackInner>>> call(Response<Re
* Get available application frameworks and their versions.
* Get available application frameworks and their versions.
*
* @param osTypeSelected Possible values include: 'Windows', 'Linux'
* @param osTypeSelected Possible values include: 'Windows', 'Linux', 'WindowsFunctions', 'LinuxFunctions'
* @throws IllegalArgumentException thrown if parameters fail the validation
* @throws DefaultErrorResponseException thrown if the request is rejected by server
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent
Expand All @@ -209,7 +209,7 @@ public Page<ApplicationStackInner> nextPage(String nextPageLink) {
* Get available application frameworks and their versions.
* Get available application frameworks and their versions.
*
* @param osTypeSelected Possible values include: 'Windows', 'Linux'
* @param osTypeSelected Possible values include: 'Windows', 'Linux', 'WindowsFunctions', 'LinuxFunctions'
* @param serviceCallback the async ServiceCallback to handle successful and failed responses.
* @throws IllegalArgumentException thrown if parameters fail the validation
* @return the {@link ServiceFuture} object
Expand All @@ -230,7 +230,7 @@ public Observable<ServiceResponse<Page<ApplicationStackInner>>> call(String next
* Get available application frameworks and their versions.
* Get available application frameworks and their versions.
*
* @param osTypeSelected Possible values include: 'Windows', 'Linux'
* @param osTypeSelected Possible values include: 'Windows', 'Linux', 'WindowsFunctions', 'LinuxFunctions'
* @throws IllegalArgumentException thrown if parameters fail the validation
* @return the observable to the PagedList&lt;ApplicationStackInner&gt; object
*/
Expand All @@ -248,7 +248,7 @@ public Page<ApplicationStackInner> call(ServiceResponse<Page<ApplicationStackInn
* Get available application frameworks and their versions.
* Get available application frameworks and their versions.
*
* @param osTypeSelected Possible values include: 'Windows', 'Linux'
* @param osTypeSelected Possible values include: 'Windows', 'Linux', 'WindowsFunctions', 'LinuxFunctions'
* @throws IllegalArgumentException thrown if parameters fail the validation
* @return the observable to the PagedList&lt;ApplicationStackInner&gt; object
*/
Expand All @@ -270,7 +270,7 @@ public Observable<ServiceResponse<Page<ApplicationStackInner>>> call(ServiceResp
* Get available application frameworks and their versions.
* Get available application frameworks and their versions.
*
ServiceResponse<PageImpl<ApplicationStackInner>> * @param osTypeSelected Possible values include: 'Windows', 'Linux'
ServiceResponse<PageImpl<ApplicationStackInner>> * @param osTypeSelected Possible values include: 'Windows', 'Linux', 'WindowsFunctions', 'LinuxFunctions'
* @throws IllegalArgumentException thrown if parameters fail the validation
* @return the PagedList&lt;ApplicationStackInner&gt; object wrapped in {@link ServiceResponse} if successful.
*/
Expand Down Expand Up @@ -518,7 +518,7 @@ public Observable<ServiceResponse<Page<ApplicationStackInner>>> call(Response<Re
* Get available application frameworks and their versions.
* Get available application frameworks and their versions.
*
* @param osTypeSelected Possible values include: 'Windows', 'Linux'
* @param osTypeSelected Possible values include: 'Windows', 'Linux', 'WindowsFunctions', 'LinuxFunctions'
* @throws IllegalArgumentException thrown if parameters fail the validation
* @throws DefaultErrorResponseException thrown if the request is rejected by server
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent
Expand All @@ -538,7 +538,7 @@ public Page<ApplicationStackInner> nextPage(String nextPageLink) {
* Get available application frameworks and their versions.
* Get available application frameworks and their versions.
*
* @param osTypeSelected Possible values include: 'Windows', 'Linux'
* @param osTypeSelected Possible values include: 'Windows', 'Linux', 'WindowsFunctions', 'LinuxFunctions'
* @param serviceCallback the async ServiceCallback to handle successful and failed responses.
* @throws IllegalArgumentException thrown if parameters fail the validation
* @return the {@link ServiceFuture} object
Expand All @@ -559,7 +559,7 @@ public Observable<ServiceResponse<Page<ApplicationStackInner>>> call(String next
* Get available application frameworks and their versions.
* Get available application frameworks and their versions.
*
* @param osTypeSelected Possible values include: 'Windows', 'Linux'
* @param osTypeSelected Possible values include: 'Windows', 'Linux', 'WindowsFunctions', 'LinuxFunctions'
* @throws IllegalArgumentException thrown if parameters fail the validation
* @return the observable to the PagedList&lt;ApplicationStackInner&gt; object
*/
Expand All @@ -577,7 +577,7 @@ public Page<ApplicationStackInner> call(ServiceResponse<Page<ApplicationStackInn
* Get available application frameworks and their versions.
* Get available application frameworks and their versions.
*
* @param osTypeSelected Possible values include: 'Windows', 'Linux'
* @param osTypeSelected Possible values include: 'Windows', 'Linux', 'WindowsFunctions', 'LinuxFunctions'
* @throws IllegalArgumentException thrown if parameters fail the validation
* @return the observable to the PagedList&lt;ApplicationStackInner&gt; object
*/
Expand All @@ -599,7 +599,7 @@ public Observable<ServiceResponse<Page<ApplicationStackInner>>> call(ServiceResp
* Get available application frameworks and their versions.
* Get available application frameworks and their versions.
*
ServiceResponse<PageImpl<ApplicationStackInner>> * @param osTypeSelected Possible values include: 'Windows', 'Linux'
ServiceResponse<PageImpl<ApplicationStackInner>> * @param osTypeSelected Possible values include: 'Windows', 'Linux', 'WindowsFunctions', 'LinuxFunctions'
* @throws IllegalArgumentException thrown if parameters fail the validation
* @return the PagedList&lt;ApplicationStackInner&gt; object wrapped in {@link ServiceResponse} if successful.
*/
Expand Down
Loading