LogProfilesInner Class

  • java.lang.Object
    • com.microsoft.azure.management.monitor.implementation.LogProfilesInner

public class LogProfilesInner

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

Constructor Summary

Constructor Description
LogProfilesInner(Retrofit retrofit, MonitorManagementClientImpl client)

Initializes an instance of LogProfilesInner.

Method Summary

Modifier and Type Method and Description
LogProfileResourceInner createOrUpdate(String logProfileName, LogProfileResourceInner parameters)

Create or update a log profile in Azure Monitoring REST API.

Observable<LogProfileResourceInner> createOrUpdateAsync(String logProfileName, LogProfileResourceInner parameters)

Create or update a log profile in Azure Monitoring REST API.

ServiceFuture<LogProfileResourceInner> createOrUpdateAsync(String logProfileName, LogProfileResourceInner parameters, final ServiceCallback<LogProfileResourceInner> serviceCallback)

Create or update a log profile in Azure Monitoring REST API.

Observable<ServiceResponse<LogProfileResourceInner>> createOrUpdateWithServiceResponseAsync(String logProfileName, LogProfileResourceInner parameters)

Create or update a log profile in Azure Monitoring REST API.

void delete(String logProfileName)

Deletes the log profile.

Observable<Void> deleteAsync(String logProfileName)

Deletes the log profile.

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

Deletes the log profile.

Observable<ServiceResponse<Void>> deleteWithServiceResponseAsync(String logProfileName)

Deletes the log profile.

LogProfileResourceInner get(String logProfileName)

Gets the log profile.

Observable<LogProfileResourceInner> getAsync(String logProfileName)

Gets the log profile.

ServiceFuture<LogProfileResourceInner> getAsync(String logProfileName, final ServiceCallback<LogProfileResourceInner> serviceCallback)

Gets the log profile.

Observable<ServiceResponse<LogProfileResourceInner>> getWithServiceResponseAsync(String logProfileName)

Gets the log profile.

PagedList<LogProfileResourceInner> list()

List the log profiles.

Observable<Page<LogProfileResourceInner>> listAsync()

List the log profiles.

ServiceFuture<List<LogProfileResourceInner>> listAsync(final ServiceCallback<List<LogProfileResourceInner>> serviceCallback)

List the log profiles.

Observable<ServiceResponse<List<LogProfileResourceInner>>> listWithServiceResponseAsync()

List the log profiles.

LogProfileResourceInner update(String logProfileName, LogProfileResourcePatch logProfilesResource)

Updates an existing LogProfilesResource. To update other fields use the CreateOrUpdate method.

Observable<LogProfileResourceInner> updateAsync(String logProfileName, LogProfileResourcePatch logProfilesResource)

Updates an existing LogProfilesResource. To update other fields use the CreateOrUpdate method.

ServiceFuture<LogProfileResourceInner> updateAsync(String logProfileName, LogProfileResourcePatch logProfilesResource, final ServiceCallback<LogProfileResourceInner> serviceCallback)

Updates an existing LogProfilesResource. To update other fields use the CreateOrUpdate method.

Observable<ServiceResponse<LogProfileResourceInner>> updateWithServiceResponseAsync(String logProfileName, LogProfileResourcePatch logProfilesResource)

Updates an existing LogProfilesResource. To update other fields use the CreateOrUpdate method.

Constructor Details

LogProfilesInner

public LogProfilesInner(Retrofit retrofit, MonitorManagementClientImpl client)

Initializes an instance of LogProfilesInner.

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 LogProfileResourceInner createOrUpdate(String logProfileName, LogProfileResourceInner parameters)

Create or update a log profile in Azure Monitoring REST API.

Parameters:

logProfileName - The name of the log profile.
parameters - Parameters supplied to the operation.

Returns:

the LogProfileResourceInner object if successful.

Throws:

IllegalArgumentException - thrown if parameters fail the validation
CloudException - 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 logProfileName, LogProfileResourceInner parameters)

Create or update a log profile in Azure Monitoring REST API.

Parameters:

logProfileName - The name of the log profile.
parameters - Parameters supplied to the operation.

Returns:

the observable to the LogProfileResourceInner object

Throws:

IllegalArgumentException - thrown if parameters fail the validation

createOrUpdateAsync

public ServiceFuture createOrUpdateAsync(String logProfileName, LogProfileResourceInner parameters, final ServiceCallback serviceCallback)

Create or update a log profile in Azure Monitoring REST API.

Parameters:

logProfileName - The name of the log profile.
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 logProfileName, LogProfileResourceInner parameters)

Create or update a log profile in Azure Monitoring REST API.

Parameters:

logProfileName - The name of the log profile.
parameters - Parameters supplied to the operation.

Returns:

the observable to the LogProfileResourceInner object

Throws:

IllegalArgumentException - thrown if parameters fail the validation

delete

public void delete(String logProfileName)

Deletes the log profile.

Parameters:

logProfileName - The name of the log profile.

Throws:

IllegalArgumentException - thrown if parameters fail the validation
CloudException - 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 logProfileName)

Deletes the log profile.

Parameters:

logProfileName - The name of the log profile.

Returns:

the ServiceResponse object if successful.

Throws:

IllegalArgumentException - thrown if parameters fail the validation

deleteAsync

public ServiceFuture deleteAsync(String logProfileName, final ServiceCallback serviceCallback)

Deletes the log profile.

Parameters:

logProfileName - The name of the log profile.
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 logProfileName)

Deletes the log profile.

Parameters:

logProfileName - The name of the log profile.

Returns:

the ServiceResponse object if successful.

Throws:

IllegalArgumentException - thrown if parameters fail the validation

get

public LogProfileResourceInner get(String logProfileName)

Gets the log profile.

Parameters:

logProfileName - The name of the log profile.

Returns:

the LogProfileResourceInner 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 logProfileName)

Gets the log profile.

Parameters:

logProfileName - The name of the log profile.

Returns:

the observable to the LogProfileResourceInner object

Throws:

IllegalArgumentException - thrown if parameters fail the validation

getAsync

public ServiceFuture getAsync(String logProfileName, final ServiceCallback serviceCallback)

Gets the log profile.

Parameters:

logProfileName - The name of the log profile.
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 logProfileName)

Gets the log profile.

Parameters:

logProfileName - The name of the log profile.

Returns:

the observable to the LogProfileResourceInner object

Throws:

IllegalArgumentException - thrown if parameters fail the validation

list

public PagedList list()

List the log profiles.

Returns:

the PagedList<LogProfileResourceInner> object if successful.

listAsync

public Observable<>> listAsync()

List the log profiles.

Returns:

the observable to the List<LogProfileResourceInner> object

listAsync

public ServiceFuture<>> listAsync(final ServiceCallback<>> serviceCallback)

List the log profiles.

Parameters:

serviceCallback - the async ServiceCallback to handle successful and failed responses.

Returns:

the ServiceFuture object

listWithServiceResponseAsync

public Observable<><>>> listWithServiceResponseAsync()

List the log profiles.

Returns:

the observable to the List<LogProfileResourceInner> object

update

public LogProfileResourceInner update(String logProfileName, LogProfileResourcePatch logProfilesResource)

Updates an existing LogProfilesResource. To update other fields use the CreateOrUpdate method.

Parameters:

logProfileName - The name of the log profile.
logProfilesResource - Parameters supplied to the operation.

Returns:

the LogProfileResourceInner 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

updateAsync

public Observable updateAsync(String logProfileName, LogProfileResourcePatch logProfilesResource)

Updates an existing LogProfilesResource. To update other fields use the CreateOrUpdate method.

Parameters:

logProfileName - The name of the log profile.
logProfilesResource - Parameters supplied to the operation.

Returns:

the observable to the LogProfileResourceInner object

Throws:

IllegalArgumentException - thrown if parameters fail the validation

updateAsync

public ServiceFuture updateAsync(String logProfileName, LogProfileResourcePatch logProfilesResource, final ServiceCallback serviceCallback)

Updates an existing LogProfilesResource. To update other fields use the CreateOrUpdate method.

Parameters:

logProfileName - The name of the log profile.
logProfilesResource - 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

updateWithServiceResponseAsync

public Observable<>> updateWithServiceResponseAsync(String logProfileName, LogProfileResourcePatch logProfilesResource)

Updates an existing LogProfilesResource. To update other fields use the CreateOrUpdate method.

Parameters:

logProfileName - The name of the log profile.
logProfilesResource - Parameters supplied to the operation.

Returns:

the observable to the LogProfileResourceInner object

Throws:

IllegalArgumentException - thrown if parameters fail the validation

Applies to