public SpatialAnchorsAccountKeysInner getKeys(String resourceGroupName, String spatialAnchorsAccountName) {
        return getKeysWithServiceResponseAsync(resourceGroupName, spatialAnchorsAccountName).toBlocking().single().body();
    }
public SpatialAnchorsAccountKeysInner getKeys ( String resourceGroupName , String spatialAnchorsAccountName ) { return getKeysWithServiceResponseAsync ( resourceGroupName , spatialAnchorsAccountName ) . toBlocking ( ) . single ( ) . body ( ) ; }
Get Both of the 2 Keys of a Spatial Anchors Account.

@param resourceGroupName Name of an Azure resource group.
@param spatialAnchorsAccountName Name of an Mixed Reality Spatial Anchors Account.
@throws IllegalArgumentException thrown if parameters fail the validation
@throws ErrorResponseException thrown if the request is rejected by server
@throws RuntimeException all other wrapped checked exceptions if the request fails to be sent
@return the SpatialAnchorsAccountKeysInner object if successful.