public Observable<ManagedInstanceKeyInner> createOrUpdateAsync(String resourceGroupName, String managedInstanceName, String keyName, ManagedInstanceKeyInner parameters) {
        return createOrUpdateWithServiceResponseAsync(resourceGroupName, managedInstanceName, keyName, parameters).map(new Func1<ServiceResponse<ManagedInstanceKeyInner>, ManagedInstanceKeyInner>() {
            @Override
            public ManagedInstanceKeyInner call(ServiceResponse<ManagedInstanceKeyInner> response) {
                return response.body();
            }
        });
    }
public Observable < ManagedInstanceKeyInner > createOrUpdateAsync ( String resourceGroupName , String managedInstanceName , String keyName , ManagedInstanceKeyInner parameters ) { return createOrUpdateWithServiceResponseAsync ( resourceGroupName , managedInstanceName , keyName , parameters ) . map ( new Func1 < ServiceResponse < ManagedInstanceKeyInner > , ManagedInstanceKeyInner > ( ) { @ Override public ManagedInstanceKeyInner call ( ServiceResponse < ManagedInstanceKeyInner > response ) { return response . body ( ) ; } } ) ; }
Creates or updates a managed instance key.

@param resourceGroupName The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.
@param managedInstanceName The name of the managed instance.
@param keyName The name of the managed instance key to be operated on (updated or created).
@param parameters The requested managed instance key resource state.
@throws IllegalArgumentException thrown if parameters fail the validation
@return the observable for the request