DiagnosticSettingsInner Class

public class DiagnosticSettingsInner implements InnerSupportsDelete

An instance of this class provides access to all the operations defined in DiagnosticSettings.

Constructor Summary

Constructor Description
DiagnosticSettingsInner(Retrofit retrofit, MonitorManagementClientImpl client)

Initializes an instance of DiagnosticSettingsInner.

Method Summary

Modifier and Type Method and Description
DiagnosticSettingsResourceInner createOrUpdate(String resourceUri, String name, DiagnosticSettingsResourceInner parameters)

Creates or updates diagnostic settings for the specified resource.

Observable<DiagnosticSettingsResourceInner> createOrUpdateAsync(String resourceUri, String name, DiagnosticSettingsResourceInner parameters)

Creates or updates diagnostic settings for the specified resource.

ServiceFuture<DiagnosticSettingsResourceInner> createOrUpdateAsync(String resourceUri, String name, DiagnosticSettingsResourceInner parameters, final ServiceCallback<DiagnosticSettingsResourceInner> serviceCallback)

Creates or updates diagnostic settings for the specified resource.

Observable<ServiceResponse<DiagnosticSettingsResourceInner>> createOrUpdateWithServiceResponseAsync(String resourceUri, String name, DiagnosticSettingsResourceInner parameters)

Creates or updates diagnostic settings for the specified resource.

void delete(String resourceUri, String name)

Deletes existing diagnostic settings for the specified resource.

Observable<Void> deleteAsync(String resourceUri, String name)

Deletes existing diagnostic settings for the specified resource.

ServiceFuture<Void> deleteAsync(String resourceUri, String name, final ServiceCallback<Void> serviceCallback)

Deletes existing diagnostic settings for the specified resource.

Observable<ServiceResponse<Void>> deleteWithServiceResponseAsync(String resourceUri, String name)

Deletes existing diagnostic settings for the specified resource.

DiagnosticSettingsResourceInner get(String resourceUri, String name)

Gets the active diagnostic settings for the specified resource.

Observable<DiagnosticSettingsResourceInner> getAsync(String resourceUri, String name)

Gets the active diagnostic settings for the specified resource.

ServiceFuture<DiagnosticSettingsResourceInner> getAsync(String resourceUri, String name, final ServiceCallback<DiagnosticSettingsResourceInner> serviceCallback)

Gets the active diagnostic settings for the specified resource.

Observable<ServiceResponse<DiagnosticSettingsResourceInner>> getWithServiceResponseAsync(String resourceUri, String name)

Gets the active diagnostic settings for the specified resource.

DiagnosticSettingsResourceCollectionInner list(String resourceUri)

Gets the active diagnostic settings list for the specified resource.

Observable<DiagnosticSettingsResourceCollectionInner> listAsync(String resourceUri)

Gets the active diagnostic settings list for the specified resource.

ServiceFuture<DiagnosticSettingsResourceCollectionInner> listAsync(String resourceUri, final ServiceCallback<DiagnosticSettingsResourceCollectionInner> serviceCallback)

Gets the active diagnostic settings list for the specified resource.

Observable<ServiceResponse<DiagnosticSettingsResourceCollectionInner>> listWithServiceResponseAsync(String resourceUri)

Gets the active diagnostic settings list for the specified resource.

Constructor Details

DiagnosticSettingsInner

public DiagnosticSettingsInner(Retrofit retrofit, MonitorManagementClientImpl client)

Initializes an instance of DiagnosticSettingsInner.

Parameters:

retrofit - the Retrofit instance built from a Retrofit Builder.
client - the instance of the service client containing this operation class.

Method Details

createOrUpdate

public DiagnosticSettingsResourceInner createOrUpdate(String resourceUri, String name, DiagnosticSettingsResourceInner parameters)

Creates or updates diagnostic settings for the specified resource.

Parameters:

resourceUri - The identifier of the resource.
name - The name of the diagnostic setting.
parameters - Parameters supplied to the operation.

Returns:

the DiagnosticSettingsResourceInner object if successful.

Throws:

IllegalArgumentException - thrown if parameters fail the validation
ErrorResponseException - thrown if the request is rejected by server
RuntimeException - all other wrapped checked exceptions if the request fails to be sent

createOrUpdateAsync

public Observable createOrUpdateAsync(String resourceUri, String name, DiagnosticSettingsResourceInner parameters)

Creates or updates diagnostic settings for the specified resource.

Parameters:

resourceUri - The identifier of the resource.
name - The name of the diagnostic setting.
parameters - Parameters supplied to the operation.

Returns:

the observable to the DiagnosticSettingsResourceInner object

Throws:

IllegalArgumentException - thrown if parameters fail the validation

createOrUpdateAsync

public ServiceFuture createOrUpdateAsync(String resourceUri, String name, DiagnosticSettingsResourceInner parameters, final ServiceCallback serviceCallback)

Creates or updates diagnostic settings for the specified resource.

Parameters:

resourceUri - The identifier of the resource.
name - The name of the diagnostic setting.
parameters - Parameters supplied to the operation.
serviceCallback - the async ServiceCallback to handle successful and failed responses.

Returns:

the ServiceFuture object

Throws:

IllegalArgumentException - thrown if parameters fail the validation

createOrUpdateWithServiceResponseAsync

public Observable<>> createOrUpdateWithServiceResponseAsync(String resourceUri, String name, DiagnosticSettingsResourceInner parameters)

Creates or updates diagnostic settings for the specified resource.

Parameters:

resourceUri - The identifier of the resource.
name - The name of the diagnostic setting.
parameters - Parameters supplied to the operation.

Returns:

the observable to the DiagnosticSettingsResourceInner object

Throws:

IllegalArgumentException - thrown if parameters fail the validation

delete

public void delete(String resourceUri, String name)

Deletes existing diagnostic settings for the specified resource.

Parameters:

resourceUri - The identifier of the resource.
name - The name of the diagnostic setting.

Throws:

IllegalArgumentException - thrown if parameters fail the validation
ErrorResponseException - thrown if the request is rejected by server
RuntimeException - all other wrapped checked exceptions if the request fails to be sent

deleteAsync

public Observable deleteAsync(String resourceUri, String name)

Deletes existing diagnostic settings for the specified resource.

Overrides:

DiagnosticSettingsInner.deleteAsync(String resourceUri, String name)

Parameters:

resourceUri - The identifier of the resource.
name - The name of the diagnostic setting.

Returns:

the ServiceResponse object if successful.

Throws:

IllegalArgumentException - thrown if parameters fail the validation

deleteAsync

public ServiceFuture deleteAsync(String resourceUri, String name, final ServiceCallback serviceCallback)

Deletes existing diagnostic settings for the specified resource.

Parameters:

resourceUri - The identifier of the resource.
name - The name of the diagnostic setting.
serviceCallback - the async ServiceCallback to handle successful and failed responses.

Returns:

the ServiceFuture object

Throws:

IllegalArgumentException - thrown if parameters fail the validation

deleteWithServiceResponseAsync

public Observable<>> deleteWithServiceResponseAsync(String resourceUri, String name)

Deletes existing diagnostic settings for the specified resource.

Parameters:

resourceUri - The identifier of the resource.
name - The name of the diagnostic setting.

Returns:

the ServiceResponse object if successful.

Throws:

IllegalArgumentException - thrown if parameters fail the validation

get

public DiagnosticSettingsResourceInner get(String resourceUri, String name)

Gets the active diagnostic settings for the specified resource.

Parameters:

resourceUri - The identifier of the resource.
name - The name of the diagnostic setting.

Returns:

the DiagnosticSettingsResourceInner object if successful.

Throws:

IllegalArgumentException - thrown if parameters fail the validation
ErrorResponseException - thrown if the request is rejected by server
RuntimeException - all other wrapped checked exceptions if the request fails to be sent

getAsync

public Observable getAsync(String resourceUri, String name)

Gets the active diagnostic settings for the specified resource.

Parameters:

resourceUri - The identifier of the resource.
name - The name of the diagnostic setting.

Returns:

the observable to the DiagnosticSettingsResourceInner object

Throws:

IllegalArgumentException - thrown if parameters fail the validation

getAsync

public ServiceFuture getAsync(String resourceUri, String name, final ServiceCallback serviceCallback)

Gets the active diagnostic settings for the specified resource.

Parameters:

resourceUri - The identifier of the resource.
name - The name of the diagnostic setting.
serviceCallback - the async ServiceCallback to handle successful and failed responses.

Returns:

the ServiceFuture object

Throws:

IllegalArgumentException - thrown if parameters fail the validation

getWithServiceResponseAsync

public Observable<>> getWithServiceResponseAsync(String resourceUri, String name)

Gets the active diagnostic settings for the specified resource.

Parameters:

resourceUri - The identifier of the resource.
name - The name of the diagnostic setting.

Returns:

the observable to the DiagnosticSettingsResourceInner object

Throws:

IllegalArgumentException - thrown if parameters fail the validation

list

public DiagnosticSettingsResourceCollectionInner list(String resourceUri)

Gets the active diagnostic settings list for the specified resource.

Parameters:

resourceUri - The identifier of the resource.

Returns:

the DiagnosticSettingsResourceCollectionInner object if successful.

Throws:

IllegalArgumentException - thrown if parameters fail the validation
ErrorResponseException - thrown if the request is rejected by server
RuntimeException - all other wrapped checked exceptions if the request fails to be sent

listAsync

public Observable listAsync(String resourceUri)

Gets the active diagnostic settings list for the specified resource.

Parameters:

resourceUri - The identifier of the resource.

Returns:

the observable to the DiagnosticSettingsResourceCollectionInner object

Throws:

IllegalArgumentException - thrown if parameters fail the validation

listAsync

public ServiceFuture listAsync(String resourceUri, final ServiceCallback serviceCallback)

Gets the active diagnostic settings list for the specified resource.

Parameters:

resourceUri - The identifier of the resource.
serviceCallback - the async ServiceCallback to handle successful and failed responses.

Returns:

the ServiceFuture object

Throws:

IllegalArgumentException - thrown if parameters fail the validation

listWithServiceResponseAsync

public Observable<>> listWithServiceResponseAsync(String resourceUri)

Gets the active diagnostic settings list for the specified resource.

Parameters:

resourceUri - The identifier of the resource.

Returns:

the observable to the DiagnosticSettingsResourceCollectionInner object

Throws:

IllegalArgumentException - thrown if parameters fail the validation

Applies to